-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING: Error from ctags: ctags: Warning: cannot open input file: No such file or directory #3342
Comments
Is there anything interesting in indexer logs ? (other than the errors from ctags) Firstly, upgrade only one thing at a time. Try upgrading just Java and OpenGrok first. See if it breaks the indexer. Then upgrade Universal ctags. |
To get more info of what is happening run the indexer with Also, what is |
Also, does this happen with all projects under source root or just some of them ? |
opengrok18.0.log.gz
|
it looks like happen to all the files under source root for all projects |
opengrok19.0.log.gz |
opengrok7.0.log.gz |
I'll try --threads 1 now. |
I meant - is there something special about the file system holding this data ? |
The root / filesystem is on LVM devops@vpx-opengrok:/opengrok$ ls -l /opengrok/src /opengrok/src/NetXtreme: '/opengrok/src/Trunk:MxC': /opengrok/src/Yocto-Valkyrie: |
opengrok0.0.log.gz
|
There's nothing interesting in the log from what I can tell. You need to run |
how to run |
Basically, you run the indexer, wait for the |
I also was having this issue. I believe it is due to the |
It would be nice if you could collect more data and file a issue under https://github.com/universal-ctags/ctags (assuming this is not caused by the way how the snap package is constructed). |
It is due to snap packaging I have determined. Reading the page https://snapcraft.io/universal-ctags
|
Thank you for the info. |
uninstalling Snap Ctags , then installed it using APT , i cannot reproduce the problem any more, after doing that |
On Ubuntu 18.04 machine, I just upgrade:
Opengrok: from v1.3.11 to v1.5.5
ctags: from /usr/local/bin/ctags v5.8 (e87283aa) Mar 30 2020 to /snap/bin/universal-ctags v5.8 (e852ee0e) Oct 7 2020
java: from java-1.8.0-openjdk-amd64 to java-1.11.0-openjdk-amd64
Tomcat: 9.0.16-3ubuntu0.18.04.1
Git: 2.17.1
Then,
when I run index update:
#!/bin/bash -x
time java -server -Xms20G -Xmx20G \
-Djava.util.logging.config.file=/opengrok/etc/logging.properties \
-jar /opengrok/dist/lib/opengrok.jar \
-c /snap/bin/universal-ctags \
-s /opengrok/src -d /opengrok/data -H -P -S -G \
-v --progress \
--threads 6 --historyThreads 6 -m 15360 \
-W /opengrok/etc/configuration.xml -U http://localhost:8080/source
I got tons of WARNINGs (probably one WARNING per one source file under /opengrok/src)
about ctags cannot open input file (No such file or directory):
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/kernel/drivers/staging/rtl8712/rtl8712_efuse.h" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/zephyr/arch/riscv32/soc/riscv-privilege/miv/Kconfig.series" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/meta-openembedded/meta-multimedia/recipes-multimedia/dvb-apps/files/dvb-scan-table/dvb-c/ch-Rega-Sense" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/zephyr/arch/riscv32/soc/riscv-privilege/miv/Kconfig.soc" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/kernel/drivers/staging/rtl8712/rtl8712_event.h" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/kernel/drivers/base/component.c" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/zephyr/arch/riscv32/soc/riscv-privilege/miv/linker.ld" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/meta-openembedded/meta-multimedia/recipes-multimedia/dvb-apps/files/dvb-scan-table/dvb-c/ch-Video2000" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/zephyr/arch/riscv32/soc/riscv-privilege/miv/soc.h" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/kernel/sound/firewire/oxfw/oxfw.c" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/kernel/drivers/staging/rtl8712/rtl8712_fifoctrl_bitdef.h" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/kernel/fs/hfs/mdb.c" : No such file or directory
11:27:14 WARNING: Error from ctags: ctags: Warning: cannot open input file "/opengrok/src/Yocto-Valkyrie/meta-openembedded/meta-multimedia/recipes-multimedia/dvb-apps/files/dvb-scan-table/dvb-c/ch-Zuerich-upc-cablecom" : No such file or directory
but when I check the file path, the file does exist there:
-rw-rw-r-- 1 devops devops 21092 Jun 2 20:05 /opengrok/src/Yocto-Valkyrie/kernel/drivers/base/component.c
-rw-rw-r-- 1 devops devops 1614 Mar 30 2020 /opengrok/src/Yocto-Valkyrie/kernel/drivers/staging/rtl8712/rtl8712_efuse.h
-rw-rw-r-- 1 devops devops 2359 Mar 30 2020 /opengrok/src/Yocto-Valkyrie/kernel/drivers/staging/rtl8712/rtl8712_event.h
-rw-rw-r-- 1 devops devops 3269 Mar 30 2020 /opengrok/src/Yocto-Valkyrie/kernel/drivers/staging/rtl8712/rtl8712_fifoctrl_bitdef.h
-rw-rw-r-- 1 devops devops 10371 Aug 13 20:05 /opengrok/src/Yocto-Valkyrie/kernel/fs/hfs/mdb.c
-rw-rw-r-- 1 devops devops 10303 Apr 8 2020 /opengrok/src/Yocto-Valkyrie/kernel/sound/firewire/oxfw/oxfw.c
-rwxrwxr-x 1 devops devops 3733 Mar 30 2020 /opengrok/src/Yocto-Valkyrie/meta-openembedded/meta-multimedia/recipes-multimedia/dvb-apps/files/dvb-scan-table/dvb-c/ch-Rega-Sense
-rwxrwxr-x 1 devops devops 218 Mar 30 2020 /opengrok/src/Yocto-Valkyrie/meta-openembedded/meta-multimedia/recipes-multimedia/dvb-apps/files/dvb-scan-table/dvb-c/ch-Video2000
-rwxrwxr-x 1 devops devops 201 Mar 30 2020 /opengrok/src/Yocto-Valkyrie/meta-openembedded/meta-multimedia/recipes-multimedia/dvb-apps/files/dvb-scan-table/dvb-c/ch-Zuerich-upc-cablecom
-rw-rw-r-- 1 devops devops 257 May 8 18:53 /opengrok/src/Yocto-Valkyrie/zephyr/arch/riscv32/soc/riscv-privilege/miv/Kconfig.series
-rw-rw-r-- 1 devops devops 295 May 8 18:53 /opengrok/src/Yocto-Valkyrie/zephyr/arch/riscv32/soc/riscv-privilege/miv/Kconfig.soc
-rw-rw-r-- 1 devops devops 141 May 8 18:53 /opengrok/src/Yocto-Valkyrie/zephyr/arch/riscv32/soc/riscv-privilege/miv/linker.ld
-rw-rw-r-- 1 devops devops 3010 May 8 18:53 /opengrok/src/Yocto-Valkyrie/zephyr/arch/riscv32/soc/riscv-privilege/miv/soc.h
Are these ctags ERROR (opengrok WARNING) correct?
How to debug or fix these these ERROR/WARNING?
Does opengrok index update break?
The text was updated successfully, but these errors were encountered: