-
Notifications
You must be signed in to change notification settings - Fork 7
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
Nothing happen after starting the script and adding new files #59
Comments
no idea ? or maybe is there a way to help understanding where could be the problem ? |
hello, I tryied the debug option and now I have this when I launch the command line: [...] Then I open my folder on windows and just reading the folder make it appears (Thumbs.db file are updated when reading on windows) and it is great because it means the python script is working: 2024-01-27 21:13:09,311 DEBUG Calling 'synoindex -a /volume1/photo/photo_toto/synchro_portable/sd_card_camera/Thumbs.db' also after adding some files, I have: 2024-01-27 21:26:16,932 DEBUG Calling 'synoindex -a /volume1/photo/photo_toto/synchro_portable/IMG_20220108_151401 - Copie - Copie - Copie.jpg' I can also see in DSM 6.X in the GUI that there is some quick indexing currently done (on these files) but I can't see them on photostation or moment. there is a problem elsewhere or maybe the synoindex command no more works on DSM 6.X ? |
I don't think this is related and also I use DSM 6.X it is strange because I have the feeling it is working when I type directly this in ssh (mobaxterm for instance) : sudo python3.8 -m synoindexwatcher /volume1/photo/photo_armand/synchro_portable/ but if I type this command with "&" at the end using the task manager: sudo python3.8 -m synoindexwatcher /volume1/photo/photo_armand/synchro_portable/ & it seems it doesn't work. I can also check if process exist using the command: ps -aux | grep synoindexwatcher using mobaxterm I can see the process maybe there is a problem with taskmanager or with the & at the end of the command ? |
in fact my complete command has several path like this : sudo python3.8 -m synoindexwatcher path1 path2 path3 path4, etc. and I got the following error message: 2024-01-29 07:48:55,756 ERROR No inode watchers left (see https://github.com/letorbi/synoindexwatcher#faq) does the command complete anyway ? if can't set several path, then can I launch the script several path, one for each path ? |
using sysctl -w fs.inotify.max_user_watches=204800 resolve the problem. but the other problem I have is that the process is killed when I quit the terminal. even if I add "&" at the end of my command. |
problem seems to be resolved now because if I launch the process from DSM task manager then the process is kept alive... I will keep informed but currently it is working. |
the & will only put your process in the background. It will die if you leave the shell (quit the terminal). |
Hello,
Using DSM6:
I launch manually the following script in ssh:
sudo python3.8 -m synoindexwatcher /volume1/photo/photo_toto/synchro_portable/sd_card_camera
Password:
2024-01-02 21:35:39,080 INFO Adding watch for path: /volume1/photo/photo_toto/synchro_portable/sd_card_camera
2024-01-02 21:35:39,324 INFO Waiting for media file changes...
and then if I add new files in the sd_card_camera folder, nothing happen.
I tried with several file creation including :
XXX@YYY:/volume1/photo/photo_toto/synchro_portable/sd_card_camera$ touch test2.txt
please note that it worked month/weeks ago maybe a package on my side broke the script ? I used task manager to start the script on startup.
The text was updated successfully, but these errors were encountered: