Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


PeppySpectrum with MoOde
#21
if the directory somehow got deleted try recreating it.

sudo mkdir /var/local/www/imagesw/thmcache
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#22
(11-02-2022, 01:19 AM)Tim Curtis Wrote: if the directory somehow got deleted try recreating it.

sudo mkdir /var/local/www/imagesw/thmcache

The thmcache folder is there, but it is empty, I've tried:
- remove and recreate thmcache folder --> regenerate album cover thumbnail cache --> no success.
- remove thmcache folder --> reboot --> the folder is created automatically --> regenerate album cover thumbnail cache --> no success.

I am not sure is it my gulp commands wrong ?
- firs time build
  sudo apt-get update
  sudo apt-get -y install npm
  git clone https://github.com/moode-player/moode.git
  cd moode
  npm ci

  node_modules/.bin/gulp build
  sudo node_modules/.bin/gulp deploy
  moodeutl -r

- next time (rebuild when css changes)
  node_modules/.bin/gulp build
  sudo node_modules/.bin/gulp deploy
  moodeutl -r


Attached Files Thumbnail(s)
       
Reply
#23
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.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#24
(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.

I remember I had an issue related to read-permissions a while ago... try see what the HDD mounted folder permissions look like, from a shell:

ls -la

you should at least see rwxr-xr-x
If not so, you can easily change that with:
chmod 0755 <the directory itself> (and maybe prepending "sudo" to the command, cannot remember), meanwhile, if this appears to be your issue, we might need to investigate WHY sometimes, or always, external HDDs get mounted without READ permissions...


Cheers, Al.
Reply
#25
(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.
Reply
#26
(11-02-2022, 11:47 AM)Nutul Wrote:
(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.

I remember I had an issue related to read-permissions a while ago... try see what the HDD mounted folder permissions look like, from a shell:

ls -la

you should at least see rwxr-xr-x
If not so, you can easily change that with:
chmod 0755 <the directory itself> (and maybe prepending "sudo" to the command, cannot remember), meanwhile, if this appears to be your issue, we might need to investigate WHY sometimes, or always, external HDDs get mounted without READ permissions...


Cheers, Al.

Thank you, Al.

The USD-HDD is mounted with no problem, and the albumart can be displayed when playing, just no thumbnail for play queue / tag view / album view.

pi@moode:~ $ ls -la /media/
total 16
drwxr-xr-x  3 root root 4096 Nov  3 07:35 .
drwxr-xr-x 18 root root 4096 Oct  8 02:52 ..
drwxr-xr-x  1 root root 8192 Sep 24 08:06 128G

pi@moode:~ $ ls -la /media/128G
total 120
drwxr-xr-x 1 root root  8192 Sep 24 08:06  .
drwxr-xr-x 3 root root  4096 Nov  3 07:35  ..
drwxr-xr-x 1 root root  4096 Nov  5  2021 'ABC - 原音探究(RebornII)'
drwxr-xr-x 1 root root 24576 Nov  5  2021 'Audiophile Speaker Set-Up - Great Sampling Tracks Included (2018) [DSD128]'
drwxr-xr-x 1 root root  4096 Nov  5  2021 'Celine Dion - All the Way...A Decade of Song'
drwxr-xr-x 1 root root     0 Sep 24 09:33  DSD1024
drwxr-xr-x 1 root root     0 Sep  2 14:11  DSD512
drwxr-xr-x 1 root root     0 May  2  2022 'Eagles - Hell Freezes Over (1994) [DVD-audio ISO 24-192]'
drwxr-xr-x 1 root root     0 Jul 18 14:28  ISO
drwxr-xr-x 1 root root  4096 Jan 20  2022 'Koji Tamaki - Wine Red No Kokoro'
drwxr-xr-x 1 root root  4096 Nov  5  2021 'Orientale (渡边方子) [Meister Music]'
drwxr-xr-x 1 root root  4096 Apr 18  2022  peppy_screensaver
drwxr-xr-x 1 root root  4096 Nov  5  2021 'Sarah Brightman - La Luna'
drwxr-xr-x 1 root root     0 Nov  9  2021 'System Volume Information'
drwxr-xr-x 1 root root  4096 Nov  5  2021 'The Absolute Sound 2004'
drwxr-xr-x 1 root root  8192 Nov  5  2021 'The Nordic Sound Sampler DXD'
drwxr-xr-x 1 root root  4096 Nov  5  2021 'WHAM! - MAKE IT BIG'
drwxr-xr-x 1 root root  4096 Nov  5  2021 '半月 Half Moon'
drwxr-xr-x 1 root root  8192 Nov  5  2021  大耳朵試音碟
drwxr-xr-x 1 root root  4096 Nov  5  2021 '姚斯婷.天使 Angle_MP3'
drwxr-xr-x 1 root root  4096 Nov  5  2021  孫露-情调私语
drwxr-xr-x 1 root root     0 May  2  2022  朱哲琴-阿姐鼓
drwxr-xr-x 1 root root  4096 Nov  5  2021 '沈丹- 四季歌'
drwxr-xr-x 1 root root  4096 Nov  5  2021 '维瓦尔第:四季 (11.2MHz DSD)'
drwxr-xr-x 1 root root  4096 May  7 17:42 '老虎鱼SACD测试碟-1 closer to the music'
drwxr-xr-x 1 root root  4096 May  7 17:32 '聆听中国 赵聪'
drwxr-xr-x 1 root root     0 Nov  5  2021 '自然私语·晨鸟 (11.2Mhz DSD)'
drwxr-xr-x 1 root root  4096 Nov  5  2021 '赵鹏 - 一生守候'
drwxr-xr-x 1 root root  4096 Nov  5  2021 '鈴木 勲 - 入魂のアヴェ・マリア   DSF'
pi@moode:~ $
Reply
#27
Try with a fresh image and Gulp. It looks like some sort of corruption has occurred.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#28
(11-03-2022, 12:14 AM)franktw956 Wrote:
(11-02-2022, 11:47 AM)Nutul Wrote:
(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.

I remember I had an issue related to read-permissions a while ago... try see what the HDD mounted folder permissions look like, from a shell:

ls -la

you should at least see rwxr-xr-x
If not so, you can easily change that with:
chmod 0755 <the directory itself> (and maybe prepending "sudo" to the command, cannot remember), meanwhile, if this appears to be your issue, we might need to investigate WHY sometimes, or always, external HDDs get mounted without READ permissions...


Cheers, Al.

Thank you, Al.

The USD-HDD is mounted with no problem, and the albumart can be displayed when playing, just no thumbnail for play queue / tag view / album view.

pi@moode:~ $ ls -la /media/
total 16
drwxr-xr-x  3 root root 4096 Nov  3 07:35 .
drwxr-xr-x 18 root root 4096 Oct  8 02:52 ..
drwxr-xr-x  1 root root 8192 Sep 24 08:06 128G

pi@moode:~ $ ls -la /media/128G
total 120
drwxr-xr-x 1 root root  8192 Sep 24 08:06  .
drwxr-xr-x 3 root root  4096 Nov  3 07:35  ..
drwxr-xr-x 1 root root  4096 Nov  5  2021 'ABC - 原音探究(RebornII)'
drwxr-xr-x 1 root root 24576 Nov  5  2021 'Audiophile Speaker Set-Up - Great Sampling Tracks Included (2018) [DSD128]'
drwxr-xr-x 1 root root  4096 Nov  5  2021 'Celine Dion - All the Way...A Decade of Song'
drwxr-xr-x 1 root root     0 Sep 24 09:33  DSD1024
drwxr-xr-x 1 root root     0 Sep  2 14:11  DSD512
drwxr-xr-x 1 root root     0 May  2  2022 'Eagles - Hell Freezes Over (1994) [DVD-audio ISO 24-192]'
drwxr-xr-x 1 root root     0 Jul 18 14:28  ISO
drwxr-xr-x 1 root root  4096 Jan 20  2022 'Koji Tamaki - Wine Red No Kokoro'
drwxr-xr-x 1 root root  4096 Nov  5  2021 'Orientale (渡边方子) [Meister Music]'
drwxr-xr-x 1 root root  4096 Apr 18  2022  peppy_screensaver
drwxr-xr-x 1 root root  4096 Nov  5  2021 'Sarah Brightman - La Luna'
drwxr-xr-x 1 root root     0 Nov  9  2021 'System Volume Information'
drwxr-xr-x 1 root root  4096 Nov  5  2021 'The Absolute Sound 2004'
drwxr-xr-x 1 root root  8192 Nov  5  2021 'The Nordic Sound Sampler DXD'
drwxr-xr-x 1 root root  4096 Nov  5  2021 'WHAM! - MAKE IT BIG'
drwxr-xr-x 1 root root  4096 Nov  5  2021 '半月 Half Moon'
drwxr-xr-x 1 root root  8192 Nov  5  2021  大耳朵試音碟
drwxr-xr-x 1 root root  4096 Nov  5  2021 '姚斯婷.天使 Angle_MP3'
drwxr-xr-x 1 root root  4096 Nov  5  2021  孫露-情调私语
drwxr-xr-x 1 root root     0 May  2  2022  朱哲琴-阿姐鼓
drwxr-xr-x 1 root root  4096 Nov  5  2021 '沈丹- 四季歌'
drwxr-xr-x 1 root root  4096 Nov  5  2021 '维瓦尔第:四季 (11.2MHz DSD)'
drwxr-xr-x 1 root root  4096 May  7 17:42 '老虎鱼SACD测试碟-1 closer to the music'
drwxr-xr-x 1 root root  4096 May  7 17:32 '聆听中国 赵聪'
drwxr-xr-x 1 root root     0 Nov  5  2021 '自然私语·晨鸟 (11.2Mhz DSD)'
drwxr-xr-x 1 root root  4096 Nov  5  2021 '赵鹏 - 一生守候'
drwxr-xr-x 1 root root  4096 Nov  5  2021 '鈴木 勲 - 入魂のアヴェ・マリア   DSF'
pi@moode:~ $

It looks like you cannot get the thumbnails generated, or they get generated with a different hash from that calculated by moOde when needed...
could it be that those japanese characters mess-up the md5 algorithm? Or, more simply, they produce different hashes (on PHP side vs. JS side) due to html escaping? Just wandering around here...

Cheers, Al.
Reply
#29
(11-03-2022, 12:34 AM)Nutul Wrote: It looks like you cannot get the thumbnails generated, or they get generated with a different hash from that calculated by moOde when needed...
could it be that those japanese characters mess-up the md5 algorithm? Or, more simply, they produce different hashes (on PHP side vs. JS side) due to html escaping? Just wandering around here...

Cheers, Al.

Starting over a fresh installation, everything is good before gulp build-deploy, but after changing css and rebuild, the thumbnail is gone and rotary encoder not function.

The thumbnail generator [VIEW STATUS] stocked in...Regenerating thumbnail cache...


Attached Files Thumbnail(s)
           
Reply
#30
(11-03-2022, 07:01 AM)franktw956 Wrote: but after changing css and rebuild

I'd suspect the culprit is in here then. What did you change?
----------------
Robert
Reply


Forum Jump: