11-03-2022, 12:05 AM
(11-02-2022, 10:16 AM)Tim Curtis Wrote: What's in the startup log after you regenerate the thumbnail cache?
Code:moodeutl -l
There should be a block of log records with stats about the process.
Example:
Code:20221101 184037 worker: Watchdog started
20221101 184037 worker: Ready
20221102 061421 worker: Job regen_thmcache
20221102 061421 thumb-gen: Start
20221102 061421 thumb-gen: Priority: Embedded cover
20221102 061421 thumb-gen: Res,Qual: 600px,60
20221102 061421 thumb-gen: Px ratio: 1
20221102 061421 thumb-gen: Th width: 600
20221102 061421 thumb-gen: Thm qual: 60
20221102 061421 thumb-gen: Scanning: NAS, SDCARD, VFAT128
20221102 061502 thumb-gen: Done: 356 folders scanned, 356 thumbs created, 0 already in cache.
The log displays worker: Job regen_thmcache, but doesn't Start.
20221103 073528 worker: Watchdog started
20221103 073528 worker: Ready
20221103 073549 worker: Job install_update
20221103 073549 updater: Downloading package [update-moode.zip]
20221103 073559 updater: Start 2022-10-23 update for moOde
20221103 073559 updater: ** Step 1-9: Remove package hold
20221103 073600 updater: ** Step 2-9: Update package list
20221103 073605 updater: ** Step 3-9: Install timesyncd
20221103 073607 updater: ** Step 4-9: Install moode-player=8.2.2-1moode1
20221103 073610 updater: ** Step 5-9: Install camillagui=1.0.0-1moode4
20221103 073612 updater: ** Step 6-9: Install shairport-sync=4.1.0~git20221009.e7c6c4b-1moode1
20221103 073614 updater: ** Step 7-9: Apply package hold
20221103 073614 updater: ** Step 8-9: Post-install cleanup
20221103 073614 updater: ** Step 9-9: Sync changes to disk
20221103 073614 updater: Finish 2022-10-23 update for moOde
20221103 073615 updater: Update installed, restart required
20221103 073630 worker: Job regen_thmcache
pi@moode:~ $
I also found the rotenc.service doesn't start after gulp build-deploy:
pi@moode:~ $ sudo systemctl status rotenc
● rotenc.service - Moode Rotary Encoder Driver
Loaded: loaded (/lib/systemd/system/rotenc.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-11-03 07:50:21 CST; 2min 31s ago
Process: 4441 ExecStart=/var/www/daemon/rotenc.py 100 2 3 6 5 (code=exited, status=203/EXEC)
Main PID: 4441 (code=exited, status=203/EXEC)
CPU: 2ms
Nov 03 07:50:21 moode systemd[4441]: rotenc.service: Failed to locate executable /var/www/daemon/rotenc.py: Permission denied
Nov 03 07:50:21 moode systemd[4441]: rotenc.service: Failed at step EXEC spawning /var/www/daemon/rotenc.py: Permission denied
Nov 03 07:50:21 moode systemd[1]: Started Moode Rotary Encoder Driver.
Nov 03 07:50:21 moode systemd[1]: rotenc.service: Main process exited, code=exited, status=203/EXEC
Nov 03 07:50:21 moode systemd[1]: rotenc.service: Failed with result 'exit-code'.
I've tried to switch ON / OFF the Roatry encoder in Audio configuration settings page --> reboot --> still failed.
At the end, I run the script to bring it back:
python3 /var/www/daemon/rotenc.py
so currently I just make a bash to run the script when system starting.