-
Notifications
You must be signed in to change notification settings - Fork 30
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
mediamon not working after reboot #14
Comments
You could use Synology Task Scheduler |
Thanks=) i try it. Make new task for root on start system: After reboot get 2 strings "Starting" on log file. But mediamon not see new media files. |
Sounds like mediamon is starting but then shutting down right away instead of continuing to run. I won't have time to look into this soon but if anyone figures out what's going on, I'd be happy to merge a pull request to fix! |
Same issue there. If mediamon is run from Task Scheduler do not index new files, if it's run from command line it work fine. Please help Many Thanks Marco |
Hi. Working fine if started manually from the command line, but can't get it started at boot after copying S99mediamon.sh to /usr/local/etc/rc.d/ with 755 permissions. I've tried to create a boot task with task manager but got this error back in email : EDIT : I'm not a coder so i don't know if that help to solve the issue or if it's just a basic error.
|
The problem is that pyinotify typically doesn't work correctly with UTF-8 filenames. so you've the same issue as described at Issue with automatic start #11 Here the important text from the post: The issue is that I have some filenames that are not UTF-8 encoded, but my filesystem is UTF-8 (use python command “sys.getfilesystemencoding()” to get your filesystem encoding). Here is what I did: I have put:
instead of
IMPORTANT: after some Synology updates it could happen that this workaround will be overwritten again and you've to do it again :-/ |
Thanks, i do it. If i run mediamon manually on ssh - it's working. |
You could also create a Python3 virtual environment, install pyinotify there and modify it:
Now edit the file Then make certain that the venv gets started before mediamon gets executed. Just add the |
Guys, I defeated this problem. There is works FINE now! (At least I have it worked) In S99mediamon.sh I just replace this There is NO need to install pyinotify as tjuerges wrote in previous comment and NO need to modify the file pyinotify.py as Technosoft2000 wrote. |
Good find, indeed, @vovka36 ! 🍻 It appears that there is already the pyinotify module installed on the system. Hence the additional installation together with a venv is not needed. |
dont work( if i run on putty get message: and on log file (it's new and good) if i restart nas and download new video with Transmission - dont see this video on Video station. |
@fedotov371 wich version of DSM you use? |
@vovka36 I'll try to do something else tomorrow. |
Yes, it's work fine. @vovka36 Good joob, comrade:) |
DSM 6.2.1-23824 Update 2
Hello guys, i have the problem.
If i write on ssh:
/usr/local/etc/rc.d/S99mediamon.sh start
Mediamon working and for each new media file have "synoindex" on log file.
If i write on ssh:
ps -fHu root
Get:
python3 /volume1/homes/admin/mediamon.py
After reboot my synology nas in /var/log/mediamon.log have a new string "Starting", but mediamon not see new media files. If i write on ssh: "ps -fHu root" - don't see task mediamon. If i run mediamon manually on ssh - it's working. After reboot - not working, but in log have string "Starting".
Why mediamon need run manually every time after reboot nas?
The text was updated successfully, but these errors were encountered: