Thank you for your donation!


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


Help With CSS Changes and Gulp
#1
Question 
Thank you in advance for any help you can provide.

I have a 1600x480 screen and I am trying to modify the CSS to have a more useful display. I am running a pi 3b with Moode 8.1.2 64bit on a fresh install. The only setting changes were to set wifi settings, turn on the local display, and turn on SSH. 

I am trying to follow the directions at: https://github.com/moode-player/docs/blo...-end-stuff

As I understand it, Gulp will minify the CSS files (and other files), so any changes need to be run through a build/deploy sequence through Gulp to make this happen.

I am logging into the pi via Putty pi/moodeaudio and performing the following commands:

Code:
~ $ cd ~
~ $ sudo apt-get update
~ $ sudo apt-get -y install npm
~ $ git clone https://github.com/moode-player/moode.git
~ $ cd moode
~/moode $ npm ci
~/moode $ node_modules/.bin/gulp watch --build

Note that "npm ci" gives the following error when running:
Quote:npm WARN deprecated uuid@2.0.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

After this is complete (all seems fine, except as noted above), I can navigate to localhost:3000 and I get the output in my browser in the attachment. I'm not sure what I am supposed to see here, but this doesn't look helpful. I can also go to localhost:3001, but that appears to be a bunch of settings that are similarly unhelpful for something like changing CSS.

I am then using Notepad+++ with the SSH pulgin to navigate to home/pi/moode/www/css to locate the files cloned from the repository. If I edit a file like "moode.css" hit save (overwriting the files in the same directory), I can see serial updates in Putty. It looks like Gulp 'saw' the saved change and is rebuilding the mini-fied files.

This is where I am stuck, a restart of the pi doesn't show the new CSS changes. The files at home/pi/moode/www/css still show my changes, but no update on the display (local or via localhost).

I have also tried the directions at 2.1:

Code:
~ $ cd ~
~ $ sudo apt-get update
~ $ sudo apt-get -y install npm
~ $ git clone https://github.com/moode-player/moode.git
~ $ cd moode
~/moode $ npm ci
~/moode $ node_modules/.bin/gulp build
~/moode $ node_modules/.bin/gulp deploy --test
~/moode $ sudo mv /var/www /var/www.org
~/moode $ sudo node_modules/.bin/gulp deploy
~/moode $ moodeutl -r

Note that after following the instructions in 2.2, I believe I can start with running "npm ci" and skip the earlier steps. If I do this, the UI on the local screen shows "401 Unauthorized" until I also run:

Code:
~moode $ node\_modules/.bin/gulp build
~moode $ sudo node\_modules/.bin/gulp deploy --force
~moode $ moodeutl -r

The pi will then show the UI, but it will not be any of the files I edited at home/pi/moode/www/css.


Attached Files Thumbnail(s)
   
Reply
#2
(09-15-2022, 01:23 AM)jener8tionx Wrote: Thank you in advance for any help you can provide.

I have a 1600x480 screen and I am trying to modify the CSS to have a more useful display. I am running a pi 3b with Mood 8.1.2 64bit on a fresh install. The only setting changes were to set wifi settings, turn on the local display, and turn on SSH. 

I am trying to follow the directions at: https://github.com/moode-player/docs/blo...-end-stuff

As I understand it, Gulp will minify the CSS files (and other files), so any changes need to be run through a build/deploy sequence through Gulp to make this happen.

I am logging into the pi via Putty pi/moodeaudio and performing the following commands:

Code:
~ $ cd ~
~ $ sudo apt-get update
~ $ sudo apt-get -y install npm
~ $ git clone https://github.com/moode-player/moode.git
~ $ cd moode
~/moode $ npm ci
~/moode $ node_modules/.bin/gulp watch --build

Note that "npm ci" gives the following error when running:
Quote:npm WARN deprecated uuid@2.0.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

After this is complete (all seems fine, except as noted above), I can navigate to localhost:3000 and I get the output in my browser in the attachment. I'm not sure what I am supposed to see here, but this doesn't look helpful. I can also go to localhost:3001, but that appears to be a bunch of settings that are similarly unhelpful for something like changing CSS.

I am then using Notepad+++ with the SSH pulgin to navigate to home/pi/moode/www/css to locate the files cloned from the repository. If I edit a file like "moode.css" hit save (overwriting the files in the same directory), I can see serial updates in Putty. It looks like Gulp 'saw' the saved change and is rebuilding the mini-fied files.

This is where I am stuck, a restart of the pi doesn't show the new CSS changes. The files at home/pi/moode/www/css still show my changes, but no update on the display (local or via localhost).

I have also tried the directions at 2.1:

Code:
~ $ cd ~
~ $ sudo apt-get update
~ $ sudo apt-get -y install npm
~ $ git clone https://github.com/moode-player/moode.git
~ $ cd moode
~/moode $ npm ci
~/moode $ node_modules/.bin/gulp build
~/moode $ node_modules/.bin/gulp deploy --test
~/moode $ sudo mv /var/www /var/www.org
~/moode $ sudo node_modules/.bin/gulp deploy
~/moode $ moodeutl -r

Note that after following the instructions in 2.2, I believe I can start with running "npm ci" and skip the earlier steps. If I do this, the UI on the local screen shows "401 Unauthorized" until I also run:

Code:
~moode $ node\_modules/.bin/gulp build
~moode $ sudo node\_modules/.bin/gulp deploy --force
~moode $ moodeutl -r

The pi will then show the UI, but it will not be any of the files I edited at home/pi/moode/www/css.

I am not familiar with having the dev-env on the final PI. Moreover I wasn't successful having Gulp to deploy on my remote PI, so I adopted an traditional, manual deploy process:

1. install the development environment on my  Linux laptop
2. grab the sources from the GIT repository
3. make my changes locally (almost everywhere)
4. run build and deploy commands
5. manually copy the files on the running PI (I use an automatic script, which you can see below)
6. hit F5 on my browser to see the changes in effect.


Code:
#!/bin/bash

# this script must be called on the moode device, as it will get the files from a remote development machine and install them locally

function main()
{
   ### update the PHP engine
   sudo scp <you>@<your_machine>:/var/www/inc/playerlib.php /var/www/inc/

   ### update JS code and maps
   sudo scp <you>@<your_machine>:/var/www/js/* /var/www/js/
   sudo scp -r <you>@<your_machine>:/var/www/maps/js/* /var/www/maps/js/
}

main "$@";

you just need to replace <you>@<your_machine> with the actuall thing; the source and destination paths are the same on (well, almost) every machine.
Also, you may want to add other folders to be updated, such as /var/www/css or the like...

Cheers, Al.
Reply
#3
try using
Code:
~/moode $ sudo node_modules/.bin/gulp build --force
~/moode $ sudo node_modules/.bin/gulp deploy



the dev runs a cache under the build dir for some reason.
Reply
#4
Thank you. I tried a few more things, and this is what I determined:

1. I cant get the gulp watch to work. It hangs at "[Browsersync] Reloading Browsers..."

I can make it build and deploy manually with "node_modules/.bin/gulp build" followed by "sudo node_modules/.bin/gulp deploy" and a server restart, "moodeutl -r"


2. I had errors in my CSS causing my changes to not take effect due to higher priority declarations. I will have to study this some more to better understand how CSS deals with specificity.

It looks like my changes are working. Now I just have to mess with it a bit to get a layout that works for me.
Reply
#5
Nice to see you all are trying the development tools  Smile

@jener8tionx :

If you want to use the gulp watch mode local on the pi you need to arrange the following:
  1. make sure the host moode.test is in you host file (and point to 127.0.0.1)
  2. make sure the pi can start a webbrowser on the remote console (ssh session).
For point 2 I use under Window MobaXTerm as ssh client. MobaXTerm has a X server buildin, which will allow the Pi to start a browser and use you X server on Windows 10 for rendering.

@Nutul :
You indicate you did have problems with the remote deploy.
To be sure you setup the correct remote target in the package.json ?:
Code:
 "remote": {
   "host": "yourmoodedevice",
   "user": "pi",
   "password": "moodeaudio"
 },
The gulp script is just like your own script using scp for copying the files.

@grumbleweed :

Yes there is a cache. Use the first time the clean target or --force option to start fresh. Minifying and creating source maps cost time ... a lot of time if you doing multiple development cycles after each other. In that case the cache will save to you time.


And to all:
Keep an eye on which branch/tag your are using for personal development. The head of develop, can break you own system, because it can need a db upgrade or need additional packages.
The savest is to checkout a branch based on the tag of your current running version.
Reply
#6
Thank you again. I have an odd issue that I think may be related to to my Gulp usage (but admittedly, I don't know why this would be an issue). Once I run Gulp, I cannot get cover art thumbnails to generate. There are no files in /var/local/www/imagesw/thmcache even though there is cover art for the album.

If I add a library before using Gulp (like a normal person would), then everything works fine and the thumbnails are generated. I have run the log and it looks like "Job regen_thumcache" just hangs.

Screenshots:

   
   
   

Thank you all again for holding my hand through this.
Reply
#7
Post the console output from the Gulp build.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
(09-18-2022, 12:51 AM)Tim Curtis Wrote: Post the console output from the Gulp build.

Here you go.

Code:
pi@moode:~ $ cd moode
pi@moode:~/moode $ npm ci
npm WARN deprecated uuid@2.0.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

added 888 packages, and audited 889 packages in 2m

54 vulnerabilities (10 moderate, 35 high, 9 critical)

To address issues that do not require attention, run:
 npm audit fix

To address all issues possible (including breaking changes), run:
 npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
pi@moode:~/moode $ node_modules/.bin/gulp build
[21:31:38] Using gulpfile ~/moode/gulpfile.js
[21:31:38] Starting 'build'...
[21:31:38] Starting 'sass'...
[21:31:38] Finished 'sass' after 11 ms
[21:31:38] Starting 'genindexdev'...
[21:31:39] Finished 'genindexdev' after 795 ms
[21:31:39] Starting 'genindex'...
[21:31:41] Finished 'genindex' after 2.35 s
[21:31:41] Starting 'bundle'...
[21:31:41] Starting 'cache'...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
[21:31:50] maps/css/moode.min.css.map 51.2 kB
[21:31:50] css/moode.min.css 30.3 kB
[21:31:50] all files 81.5 kB
[21:31:50] Finished 'cache' after 9.06 s
[21:31:50] Starting 'maps'...
[21:31:51] Finished 'maps' after 679 ms
[21:31:51] Starting '<anonymous>'...
[21:31:51] index.html 11.1 kB
[21:31:52] css/main.min.css 1.44 kB
[21:31:56] css/styles.min.css 228 kB
[21:31:56] js/config.min.js 18.9 kB
[21:31:58] js/main.min.js 130 kB
[21:32:02] js/lib.min.js 560 kB
[21:32:03] all files 949 kB
[21:32:03] Finished '<anonymous>' after 12 s
[21:32:03] Finished 'bundle' after 22 s
[21:32:03] Starting 'artwork'...
[21:32:03] Finished 'artwork' after 97 ms
[21:32:03] Starting '<anonymous>'...
[21:32:03] Finished '<anonymous>' after 6.55 ms
[21:32:03] Finished 'build' after 25 s
pi@moode:~/moode $ sudo node_modules/.bin/gulp deploy
[21:32:13] Using gulpfile /home/pi/moode/gulpfile.js
[21:32:13] Starting 'deploy'...
[21:32:13] Starting 'deployfront'...
[21:32:16] Finished 'deployfront' after 2.53 s
[21:32:16] Starting 'deployback'...
[21:32:16] Starting 'patchheader'...
[21:32:17] header.php 12.2 kB
[21:32:17] Finished 'patchheader' after 1.42 s
[21:32:17] Starting 'patchfooter'...
[21:32:18] footer.min.php 8 kB
[21:32:18] Finished 'patchfooter' after 1.11 s
[21:32:18] Starting 'patchindex'...
[21:32:19] index.php 1.16 kB
[21:32:19] Finished 'patchindex' after 72 ms
[21:32:19] Starting 'patchconfigs'...
[21:32:19] apl-config.php 4.22 kB
[21:32:19] bkp-config.php 9.06 kB
[21:32:19] blu-config.php 8.55 kB
[21:32:19] cdsp-config.php 15.1 kB
[21:32:19] chp-config.php 22.3 kB
[21:32:19] eqg-config.php 4.37 kB
[21:32:19] eqp-config.php 5.39 kB
[21:32:19] gpio-config.php 6 kB
[21:32:19] inp-config.php 3.23 kB
[21:32:19] lib-config.php 13.4 kB
[21:32:19] mpd-config.php 15.5 kB
[21:32:19] net-config.php 11.8 kB
[21:32:19] snd-config.php 42.7 kB
[21:32:19] spo-config.php 6.08 kB
[21:32:19] sqe-config.php 2.25 kB
[21:32:19] sys-config.php 26.4 kB
[21:32:19] trx-config.php 17.9 kB
[21:32:19] upp-config.php 4.21 kB
[21:32:19] all files 219 kB
[21:32:19] Finished 'patchconfigs' after 266 ms
[21:32:19] Starting 'minifyhtml'...
[21:32:20] indextpl.min.html 141 kB
[21:32:20] Finished 'minifyhtml' after 1.02 s
[21:32:20] Starting '<anonymous>'...
[21:32:24] Finished '<anonymous>' after 3.78 s
[21:32:24] Finished 'deployback' after 7.68 s
[21:32:24] Starting '<anonymous>'...
[21:32:24] Finished '<anonymous>' after 2.6 ms
[21:32:24] Finished 'deploy' after 10 s
pi@moode:~/moode $
Reply
#9
I was able to recreate the issue on a fresh install (Using 2022-07-08-moode-r812-arm64-lite.img).

After flashing the drive I did the following:

1. Set up wifi, turned on local display, turned on SSH, restart.
2. Connected to NAS via SAMBA and created library. Thumbnails are generating correctly.
3. Regenerated thumbnails. Check with 'moodeutl -l' and regen_thumcache runs correctly.
4. In SSH completed the following:
Code:
~ $ sudo apt-get update
~ $ sudo apt-get -y install npm
~ $ git clone https://github.com/moode-player/moode.git
5. Regenerated thumbnails. Check with 'moodeutl -l' and regen_thumcache runs correctly.
6. In SSH completed the following:
Code:
~ $ cd moode
~/moode $ npm ci
7. Regenerated thumbnails. Check with 'moodeutl -l' and regen_thumcache runs correctly.
8. In SSH completed the following:
Code:
~/moode $ node_modules/.bin/gulp build
~/moode $ sudo node_modules/.bin/gulp deploy
For clarity, I did not edit any of the files in /moode/.

9. Regenerated thumbnails. Check with 'moodeutl -l' and regen_thumcache hangs.

Here is the terminal output showing the last good thumbnail regen, the Gulp build/deploy, and then hanging:
Code:
20220918 115235 thumb-gen: flac: Zend media exception: Not a valid FLAC bitstream
20220918 115246 thumb-gen: Done: 610 folders scanned, 610 thumbs created, 0 already in cache.
pi@moode:~/moode $ node_modules/.bin/gulp build
[11:57:18] Using gulpfile ~/moode/gulpfile.js
[11:57:18] Starting 'build'...
[11:57:18] Starting 'sass'...
[11:57:18] Finished 'sass' after 6.35 ms
[11:57:18] Starting 'genindexdev'...
[11:57:19] Finished 'genindexdev' after 726 ms
[11:57:19] Starting 'genindex'...
[11:57:22] index.html 185 kB
[11:57:22] Finished 'genindex' after 3 s
[11:57:22] Starting 'bundle'...
[11:57:22] Starting 'cache'...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
[11:57:38] maps/js/jquery-1.8.2.min.js.map 439 kB
[11:57:38] js/jquery-1.8.2.min.js 93.1 kB
[11:57:39] maps/js/jquery.countdown.min.js.map 55.7 kB
[11:57:39] js/jquery.countdown.min.js 13.4 kB
[11:57:39] maps/js/custom_checkbox_and_radio.min.js.map 3.22 kB
[11:57:39] js/custom_checkbox_and_radio.min.js 884 B
[11:57:55] maps/js/jquery-ui/jquery-ui.min.js.map 766 kB
[11:57:55] js/jquery-ui/jquery-ui.min.js 225 kB
[11:57:55] maps/js/jquery.scrollTo.min.js.map 11.8 kB
[11:57:55] js/jquery.scrollTo.min.js 2.05 kB
[11:57:55] maps/js/custom_radio.min.js.map 2 kB
[11:57:55] js/custom_radio.min.js 405 B
[11:57:56] maps/js/jquery-ui/jquery.ui.core.min.js.map 15.4 kB
[11:57:56] js/jquery-ui/jquery.ui.core.min.js 4.26 kB
[11:57:58] maps/js/jquery.touchSwipe.min.js.map 97.7 kB
[11:57:58] js/jquery.touchSwipe.min.js 10.2 kB
[11:57:58] maps/js/jquery.tagsinput.min.js.map 21.3 kB
[11:57:58] js/jquery.tagsinput.min.js 6.4 kB
[11:57:59] maps/js/jquery-ui/jquery.ui.widget.min.js.map 26.3 kB
[11:57:59] js/jquery-ui/jquery.ui.widget.min.js 6.44 kB
[11:57:59] maps/js/jquery.lazyload.min.js.map 14.8 kB
[11:57:59] js/jquery.lazyload.min.js 3.38 kB
[11:57:59] maps/js/jquery.placeholder.min.js.map 8.12 kB
[11:57:59] js/jquery.placeholder.min.js 2.1 kB
[11:58:00] maps/js/jquery-ui/jquery.ui.mouse.min.js.map 8.12 kB
[11:58:00] js/jquery-ui/jquery.ui.mouse.min.js 2.78 kB
[11:58:00] maps/js/jquery.md5.min.js.map 17.1 kB
[11:58:00] js/jquery.md5.min.js 3.72 kB
[11:58:00] maps/js/i18n/_messages.en.min.js.map 4.5 kB
[11:58:00] js/i18n/_messages.en.min.js 1.68 kB
[11:58:01] maps/js/jquery-ui/jquery.ui.position.min.js.map 28.1 kB
[11:58:01] js/jquery-ui/jquery.ui.position.min.js 6.22 kB
[11:58:01] maps/js/jquery.adaptive-backgrounds.min.js.map 18 kB
[11:58:01] js/jquery.adaptive-backgrounds.min.js 4.59 kB
[11:58:01] maps/js/application.min.js.map 2.66 kB
[11:58:01] js/application.min.js 667 B
[11:58:03] maps/js/jquery-ui/jquery.ui.datepicker.min.js.map 129 kB
[11:58:03] js/jquery-ui/jquery.ui.datepicker.min.js 36 kB
[11:58:04] maps/js/jquery.knob.min.js.map 42.1 kB
[11:58:04] js/jquery.knob.min.js 10.9 kB
[11:58:04] maps/js/scripts-configs.min.js.map 17.9 kB
[11:58:04] js/scripts-configs.min.js 6.34 kB
[11:58:13] maps/css/bootstrap.min.css.map 155 kB
[11:58:13] css/bootstrap.min.css 81.6 kB
[11:58:14] maps/js/jquery-ui/jquery.ui.slider.min.js.map 32 kB
[11:58:14] js/jquery-ui/jquery.ui.slider.min.js 9.82 kB
[11:58:14] maps/js/bootstrap-contextmenu.min.js.map 10.2 kB
[11:58:14] js/bootstrap-contextmenu.min.js 2.51 kB
[11:58:15] maps/js/jquery-ui/jquery.ui.tooltip.min.js.map 18.5 kB
[11:58:15] js/jquery-ui/jquery.ui.tooltip.min.js 4.69 kB
[11:58:17] maps/js/scripts-library.min.js.map 108 kB
[11:58:17] js/scripts-library.min.js 40.3 kB
[11:58:19] maps/js/jquery-ui/jquery.ui.effect.min.js.map 56.1 kB
[11:58:19] js/jquery-ui/jquery.ui.effect.min.js 12.9 kB
[11:58:20] maps/js/scripts-panels.min.js.map 97.3 kB
[11:58:20] js/scripts-panels.min.js 38.4 kB
[11:58:22] maps/js/bootstrap.min.js.map 71.5 kB
[11:58:22] js/bootstrap.min.js 28.3 kB
[11:58:23] maps/js/bootstrap-select.min.js.map 39.9 kB
[11:58:23] js/bootstrap-select.min.js 11.6 kB
[11:58:23] maps/js/jquery.pnotify.min.js.map 53.6 kB
[11:58:23] js/jquery.pnotify.min.js 14.2 kB
[11:58:23] maps/js/notify.min.js.map 7.64 kB
[11:58:23] js/notify.min.js 2.82 kB
[11:58:23] maps/css/jquery.countdown.min.css.map 1.29 kB
[11:58:23] css/jquery.countdown.min.css 718 B
[11:58:24] maps/js/playerlib-nomin.min.js.map 5.02 kB
[11:58:24] js/playerlib-nomin.min.js 1.27 kB
[11:58:28] maps/js/playerlib.min.js.map 270 kB
[11:58:28] js/playerlib.min.js 99.5 kB
[11:58:28] maps/js/links.min.js.map 2.99 kB
[11:58:28] js/links.min.js 500 B
[11:58:29] maps/css/bootstrap-select.min.css.map 7.66 kB
[11:58:29] css/bootstrap-select.min.css 4.47 kB
[11:58:32] maps/css/flat-ui.min.css.map 86.6 kB
[11:58:32] css/flat-ui.min.css 45.7 kB
[11:58:33] maps/css/jquery.pnotify.default.min.css.map 2.54 kB
[11:58:33] css/jquery.pnotify.default.min.css 1.31 kB
[11:58:33] maps/css/fontawesome-moode.min.css.map 14.1 kB
[11:58:33] css/fontawesome-moode.min.css 7.72 kB
[11:58:37] maps/css/panels.min.css.map 91.2 kB
[11:58:37] css/panels.min.css 56.9 kB
[11:58:39] maps/css/moode.min.css.map 49.3 kB
[11:58:39] css/moode.min.css 29.4 kB
[11:58:39] all files 3.85 MB
[11:58:40] Finished 'cache' after 1.28 min
[11:58:40] Starting 'maps'...
[11:58:40] Finished 'maps' after 789 ms
[11:58:40] Starting '<anonymous>'...
[11:58:41] index.html 11.1 kB
[11:58:41] css/main.min.css 1.44 kB
[11:58:45] css/styles.min.css 227 kB
[11:58:46] js/config.min.js 18.9 kB
[11:58:47] js/main.min.js 130 kB
[11:58:52] js/lib.min.js 560 kB
[11:58:52] all files 948 kB
[11:58:52] Finished '<anonymous>' after 12 s
[11:58:52] Finished 'bundle' after 1.48 min
[11:58:52] Starting 'artwork'...
[11:58:52] Finished 'artwork' after 88 ms
[11:58:52] Starting '<anonymous>'...
[11:58:52] Finished '<anonymous>' after 5.7 ms
[11:58:52] Finished 'build' after 1.55 min
pi@moode:~/moode $ sudo node_modules/.bin/gulp deploy
[11:59:12] Using gulpfile /home/pi/moode/gulpfile.js
[11:59:12] Starting 'deploy'...
[11:59:12] Starting 'deployfront'...
[11:59:15] Finished 'deployfront' after 2.3 s
[11:59:15] Starting 'deployback'...
[11:59:15] Starting 'patchheader'...
[11:59:17] header.php 12.2 kB
[11:59:17] Finished 'patchheader' after 1.93 s
[11:59:17] Starting 'patchfooter'...
[11:59:18] footer.min.php 8 kB
[11:59:18] Finished 'patchfooter' after 1.15 s
[11:59:18] Starting 'patchindex'...
[11:59:18] index.php 1.16 kB
[11:59:18] Finished 'patchindex' after 57 ms
[11:59:18] Starting 'patchconfigs'...
[11:59:18] apl-config.php 4.22 kB
[11:59:18] bkp-config.php 9.06 kB
[11:59:18] blu-config.php 8.55 kB
[11:59:18] cdsp-config.php 15.1 kB
[11:59:18] chp-config.php 22.3 kB
[11:59:18] eqg-config.php 4.37 kB
[11:59:18] eqp-config.php 5.39 kB
[11:59:18] gpio-config.php 6 kB
[11:59:18] inp-config.php 3.23 kB
[11:59:18] lib-config.php 13.4 kB
[11:59:18] mpd-config.php 15.5 kB
[11:59:18] net-config.php 11.8 kB
[11:59:18] snd-config.php 42.7 kB
[11:59:18] spo-config.php 6.08 kB
[11:59:18] sqe-config.php 2.25 kB
[11:59:18] sys-config.php 26.4 kB
[11:59:18] trx-config.php 17.9 kB
[11:59:18] upp-config.php 4.21 kB
[11:59:18] all files 219 kB
[11:59:18] Finished 'patchconfigs' after 273 ms
[11:59:18] Starting 'minifyhtml'...
[11:59:19] indextpl.min.html 141 kB
[11:59:19] Finished 'minifyhtml' after 1.03 s
[11:59:19] Starting '<anonymous>'...
[11:59:26] Finished '<anonymous>' after 6.37 s
[11:59:26] Finished 'deployback' after 11 s
[11:59:26] Starting '<anonymous>'...
[11:59:26] Finished '<anonymous>' after 2.36 ms
[11:59:26] Finished 'deploy' after 13 s
pi@moode:~/moode $ moodeutl -r
Servers restarted
pi@moode:~/moode $ moodeutl -l
20220918 115949 worker: --
20220918 115949 worker: -- Start moOde 8 series
20220918 115949 worker: --
20220918 115949 worker: Successfully daemonized
20220918 115956 worker: File check (OK)
20220918 115957 worker: Session vacuumed
20220918 115957 worker: Session loaded
20220918 115957 worker: Debug logging (OFF)
20220918 115957 worker: --
20220918 115957 worker: -- Audio debug
20220918 115957 worker: --
20220918 115957 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty
20220918 115957 worker: MPD config: (0:snd_rpi_hifiberry_digi | mixer:(PCM) | card:0)
20220918 115957 worker: ALSA mixer actual (PCM)
20220918 115957 worker: ALSA PCM volume set to (amixer: Unable to find simple control 'PCM',0)
20220918 115957 worker: --
20220918 115957 worker: -- System
20220918 115957 worker: --
20220918 115959 worker: Host      (moode)
20220918 115959 worker: moOde     (8.2.0 2022-09-16)
20220918 115959 worker: RaspiOS   (11.3)
20220918 115959 worker: Kernel    (5.15.32-v8+ #1538)
20220918 115959 worker: Platform  (Pi-3B 1.2 1GB)
20220918 115959 worker: ARM arch  (aarch64, 64-bit)
20220918 115959 worker: MPD ver   (0.23.5)
20220918 115959 worker: CPU gov   (ondemand)
20220918 115959 worker: USB boot  (not enabled yet)
20220918 115959 worker: File sys  (expanded)
20220918 115959 worker: HDMI port (On)
20220918 115959 worker: Sys LED0  (On)
20220918 115959 worker: Sys LED1  (On)
20220918 115959 worker: --
20220918 115959 worker: -- Network
20220918 115959 worker: --
20220918 115959 worker: eth0 adapter exists
20220918 115959 worker: eth0 check for address (No)
20220918 115959 worker: eth0 address not assigned
20220918 115959 worker: wlan0 adapter exists
20220918 115959 worker: wlan0 country (US)
20220918 115959 worker: wlan0 trying configured SSID (Buster)
20220918 115959 worker: wlan0 connected SSID is (Buster)
20220918 115959 worker: IP addr (192.168.50.242)
20220918 120000 worker: Netmask (255.255.255.0)
20220918 120000 worker: Gateway (192.168.50.1)
20220918 120000 worker: Pri DNS (192.168.50.1)
20220918 120000 worker: Domain  ()
20220918 120000 worker: wlan0 power save disabled
20220918 120000 worker: apd0 router mode ()
20220918 120000 worker: --
20220918 120000 worker: -- Software update
20220918 120000 worker: --
20220918 120000 worker: Automatic check (Off)
20220918 120000 worker: --
20220918 120000 worker: -- Audio config
20220918 120000 worker: --
20220918 120000 worker: MPD conf update skipped (USB device)
20220918 120000 worker: ALSA card number (0)
20220918 120000 worker: MPD audio output (snd_rpi_hifiberry_digi)
20220918 120000 worker: Audio formats (S16_LE, S24_LE)
20220918 120000 worker: ALSA mixer name (PCM)
20220918 120000 worker: MPD mixer type (software)
20220918 120000 worker: Hdwr volume controller not detected
20220918 120000 worker: ALSA output mode (Default: plughw)
20220918 120000 worker: ALSA loopback (Off)
20220918 120000 worker: Reset renderer active flags
20220918 120000 worker: CamillaDSP (off)
20220918 120000 worker: --
20220918 120000 worker: -- File sharing
20220918 120000 worker: --
20220918 120000 worker: SMB file sharing ()
20220918 120000 worker: NFS file sharing ()
20220918 120000 worker: --
20220918 120000 worker: -- MPD startup
20220918 120000 worker: --
20220918 120001 worker: MPD started
20220918 120004 worker: MPD accepting connections
20220918 120004 worker: MPD output 1 ALSA Default (On)
20220918 120004 worker: MPD output 2 ALSA Bluetooth (Off)
20220918 120004 worker: MPD output 3 HTTP Server (Off)
20220918 120004 worker: MPD crossfade (off)
20220918 120004 worker: MPD ignore CUE files (yes)
20220918 120004 worker: --
20220918 120004 worker: -- Music sources
20220918 120004 worker: --
20220918 120004 worker: USB sources (none attached)
20220918 120004 worker: NAS sources (mountall initiated)
20220918 120004 worker: --
20220918 120004 worker: -- Feature availability
20220918 120004 worker: --
20220918 120004 worker: Source select (available)
20220918 120004 worker: Source select (source: MPD)
20220918 120004 worker: Source select (output: snd_rpi_hifiberry_digi)
20220918 120004 worker: Bluetooth (available)
20220918 120004 worker: Airplay renderer (available)
20220918 120004 worker: Spotify renderer (available)
20220918 120004 worker: Squeezelite (available)
20220918 120004 worker: RoonBridge renderer (not installed)
20220918 120004 worker: Multiroom sender (available)
20220918 120004 worker: Multiroom receiver (available)
20220918 120004 worker: UPnP renderer (available)
20220918 120004 worker: DLNA server (available)
20220918 120004 worker: GPIO button handler (available)
20220918 120004 worker: Stream recorder (n/a)
20220918 120004 worker: --
20220918 120004 worker: -- Other
20220918 120004 worker: --
20220918 120004 worker: USB volume knob (Off)
20220918 120004 worker: Shellinabox SSH started
20220918 120004 worker: USB auto-mounter (udisks-glue)
20220918 120004 worker: Saved MPD vol level (0)
20220918 120004 worker: Preamp volume level (0)
20220918 120004 worker: MPD volume level (0) restored
20220918 120004 worker: ALSA volume level (None)
20220918 120004 worker: Auto-play (Off)
20220918 120004 worker: LocalUI started
20220918 120004 worker: CoverView toggle (-off)
20220918 120004 worker: Maintenance interval (120 minutes)
20220918 120004 worker: Screen saver activation (Never)
20220918 120004 worker: Session permissions (OK)
20220918 120004 worker: Watchdog started
20220918 120004 worker: Ready
20220918 120040 worker: Job regen_thmcache
pi@moode:~/moode $ moodeutl -l
20220918 115949 worker: --
20220918 115949 worker: -- Start moOde 8 series
20220918 115949 worker: --
20220918 115949 worker: Successfully daemonized
20220918 115956 worker: File check (OK)
20220918 115957 worker: Session vacuumed
20220918 115957 worker: Session loaded
20220918 115957 worker: Debug logging (OFF)
20220918 115957 worker: --
20220918 115957 worker: -- Audio debug
20220918 115957 worker: --
20220918 115957 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty
20220918 115957 worker: MPD config: (0:snd_rpi_hifiberry_digi | mixer:(PCM) | card:0)
20220918 115957 worker: ALSA mixer actual (PCM)
20220918 115957 worker: ALSA PCM volume set to (amixer: Unable to find simple control 'PCM',0)
20220918 115957 worker: --
20220918 115957 worker: -- System
20220918 115957 worker: --
20220918 115959 worker: Host      (moode)
20220918 115959 worker: moOde     (8.2.0 2022-09-16)
20220918 115959 worker: RaspiOS   (11.3)
20220918 115959 worker: Kernel    (5.15.32-v8+ #1538)
20220918 115959 worker: Platform  (Pi-3B 1.2 1GB)
20220918 115959 worker: ARM arch  (aarch64, 64-bit)
20220918 115959 worker: MPD ver   (0.23.5)
20220918 115959 worker: CPU gov   (ondemand)
20220918 115959 worker: USB boot  (not enabled yet)
20220918 115959 worker: File sys  (expanded)
20220918 115959 worker: HDMI port (On)
20220918 115959 worker: Sys LED0  (On)
20220918 115959 worker: Sys LED1  (On)
20220918 115959 worker: --
20220918 115959 worker: -- Network
20220918 115959 worker: --
20220918 115959 worker: eth0 adapter exists
20220918 115959 worker: eth0 check for address (No)
20220918 115959 worker: eth0 address not assigned
20220918 115959 worker: wlan0 adapter exists
20220918 115959 worker: wlan0 country (US)
20220918 115959 worker: wlan0 trying configured SSID (Buster)
20220918 115959 worker: wlan0 connected SSID is (Buster)
20220918 115959 worker: IP addr (192.168.50.242)
20220918 120000 worker: Netmask (255.255.255.0)
20220918 120000 worker: Gateway (192.168.50.1)
20220918 120000 worker: Pri DNS (192.168.50.1)
20220918 120000 worker: Domain  ()
20220918 120000 worker: wlan0 power save disabled
20220918 120000 worker: apd0 router mode ()
20220918 120000 worker: --
20220918 120000 worker: -- Software update
20220918 120000 worker: --
20220918 120000 worker: Automatic check (Off)
20220918 120000 worker: --
20220918 120000 worker: -- Audio config
20220918 120000 worker: --
20220918 120000 worker: MPD conf update skipped (USB device)
20220918 120000 worker: ALSA card number (0)
20220918 120000 worker: MPD audio output (snd_rpi_hifiberry_digi)
20220918 120000 worker: Audio formats (S16_LE, S24_LE)
20220918 120000 worker: ALSA mixer name (PCM)
20220918 120000 worker: MPD mixer type (software)
20220918 120000 worker: Hdwr volume controller not detected
20220918 120000 worker: ALSA output mode (Default: plughw)
20220918 120000 worker: ALSA loopback (Off)
20220918 120000 worker: Reset renderer active flags
20220918 120000 worker: CamillaDSP (off)
20220918 120000 worker: --
20220918 120000 worker: -- File sharing
20220918 120000 worker: --
20220918 120000 worker: SMB file sharing ()
20220918 120000 worker: NFS file sharing ()
20220918 120000 worker: --
20220918 120000 worker: -- MPD startup
20220918 120000 worker: --
20220918 120001 worker: MPD started
20220918 120004 worker: MPD accepting connections
20220918 120004 worker: MPD output 1 ALSA Default (On)
20220918 120004 worker: MPD output 2 ALSA Bluetooth (Off)
20220918 120004 worker: MPD output 3 HTTP Server (Off)
20220918 120004 worker: MPD crossfade (off)
20220918 120004 worker: MPD ignore CUE files (yes)
20220918 120004 worker: --
20220918 120004 worker: -- Music sources
20220918 120004 worker: --
20220918 120004 worker: USB sources (none attached)
20220918 120004 worker: NAS sources (mountall initiated)
20220918 120004 worker: --
20220918 120004 worker: -- Feature availability
20220918 120004 worker: --
20220918 120004 worker: Source select (available)
20220918 120004 worker: Source select (source: MPD)
20220918 120004 worker: Source select (output: snd_rpi_hifiberry_digi)
20220918 120004 worker: Bluetooth (available)
20220918 120004 worker: Airplay renderer (available)
20220918 120004 worker: Spotify renderer (available)
20220918 120004 worker: Squeezelite (available)
20220918 120004 worker: RoonBridge renderer (not installed)
20220918 120004 worker: Multiroom sender (available)
20220918 120004 worker: Multiroom receiver (available)
20220918 120004 worker: UPnP renderer (available)
20220918 120004 worker: DLNA server (available)
20220918 120004 worker: GPIO button handler (available)
20220918 120004 worker: Stream recorder (n/a)
20220918 120004 worker: --
20220918 120004 worker: -- Other
20220918 120004 worker: --
20220918 120004 worker: USB volume knob (Off)
20220918 120004 worker: Shellinabox SSH started
20220918 120004 worker: USB auto-mounter (udisks-glue)
20220918 120004 worker: Saved MPD vol level (0)
20220918 120004 worker: Preamp volume level (0)
20220918 120004 worker: MPD volume level (0) restored
20220918 120004 worker: ALSA volume level (None)
20220918 120004 worker: Auto-play (Off)
20220918 120004 worker: LocalUI started
20220918 120004 worker: CoverView toggle (-off)
20220918 120004 worker: Maintenance interval (120 minutes)
20220918 120004 worker: Screen saver activation (Never)
20220918 120004 worker: Session permissions (OK)
20220918 120004 worker: Watchdog started
20220918 120004 worker: Ready
20220918 120040 worker: Job regen_thmcache
pi@moode:~/moode $ moodeutl -l
20220918 115949 worker: --
20220918 115949 worker: -- Start moOde 8 series
20220918 115949 worker: --
20220918 115949 worker: Successfully daemonized
20220918 115956 worker: File check (OK)
20220918 115957 worker: Session vacuumed
20220918 115957 worker: Session loaded
20220918 115957 worker: Debug logging (OFF)
20220918 115957 worker: --
20220918 115957 worker: -- Audio debug
20220918 115957 worker: --
20220918 115957 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty
20220918 115957 worker: MPD config: (0:snd_rpi_hifiberry_digi | mixer:(PCM) | card:0)
20220918 115957 worker: ALSA mixer actual (PCM)
20220918 115957 worker: ALSA PCM volume set to (amixer: Unable to find simple control 'PCM',0)
20220918 115957 worker: --
20220918 115957 worker: -- System
20220918 115957 worker: --
20220918 115959 worker: Host      (moode)
20220918 115959 worker: moOde     (8.2.0 2022-09-16)
20220918 115959 worker: RaspiOS   (11.3)
20220918 115959 worker: Kernel    (5.15.32-v8+ #1538)
20220918 115959 worker: Platform  (Pi-3B 1.2 1GB)
20220918 115959 worker: ARM arch  (aarch64, 64-bit)
20220918 115959 worker: MPD ver   (0.23.5)
20220918 115959 worker: CPU gov   (ondemand)
20220918 115959 worker: USB boot  (not enabled yet)
20220918 115959 worker: File sys  (expanded)
20220918 115959 worker: HDMI port (On)
20220918 115959 worker: Sys LED0  (On)
20220918 115959 worker: Sys LED1  (On)
20220918 115959 worker: --
20220918 115959 worker: -- Network
20220918 115959 worker: --
20220918 115959 worker: eth0 adapter exists
20220918 115959 worker: eth0 check for address (No)
20220918 115959 worker: eth0 address not assigned
20220918 115959 worker: wlan0 adapter exists
20220918 115959 worker: wlan0 country (US)
20220918 115959 worker: wlan0 trying configured SSID (Buster)
20220918 115959 worker: wlan0 connected SSID is (Buster)
20220918 115959 worker: IP addr (192.168.50.242)
20220918 120000 worker: Netmask (255.255.255.0)
20220918 120000 worker: Gateway (192.168.50.1)
20220918 120000 worker: Pri DNS (192.168.50.1)
20220918 120000 worker: Domain  ()
20220918 120000 worker: wlan0 power save disabled
20220918 120000 worker: apd0 router mode ()
20220918 120000 worker: --
20220918 120000 worker: -- Software update
20220918 120000 worker: --
20220918 120000 worker: Automatic check (Off)
20220918 120000 worker: --
20220918 120000 worker: -- Audio config
20220918 120000 worker: --
20220918 120000 worker: MPD conf update skipped (USB device)
20220918 120000 worker: ALSA card number (0)
20220918 120000 worker: MPD audio output (snd_rpi_hifiberry_digi)
20220918 120000 worker: Audio formats (S16_LE, S24_LE)
20220918 120000 worker: ALSA mixer name (PCM)
20220918 120000 worker: MPD mixer type (software)
20220918 120000 worker: Hdwr volume controller not detected
20220918 120000 worker: ALSA output mode (Default: plughw)
20220918 120000 worker: ALSA loopback (Off)
20220918 120000 worker: Reset renderer active flags
20220918 120000 worker: CamillaDSP (off)
20220918 120000 worker: --
20220918 120000 worker: -- File sharing
20220918 120000 worker: --
20220918 120000 worker: SMB file sharing ()
20220918 120000 worker: NFS file sharing ()
20220918 120000 worker: --
20220918 120000 worker: -- MPD startup
20220918 120000 worker: --
20220918 120001 worker: MPD started
20220918 120004 worker: MPD accepting connections
20220918 120004 worker: MPD output 1 ALSA Default (On)
20220918 120004 worker: MPD output 2 ALSA Bluetooth (Off)
20220918 120004 worker: MPD output 3 HTTP Server (Off)
20220918 120004 worker: MPD crossfade (off)
20220918 120004 worker: MPD ignore CUE files (yes)
20220918 120004 worker: --
20220918 120004 worker: -- Music sources
20220918 120004 worker: --
20220918 120004 worker: USB sources (none attached)
20220918 120004 worker: NAS sources (mountall initiated)
20220918 120004 worker: --
20220918 120004 worker: -- Feature availability
20220918 120004 worker: --
20220918 120004 worker: Source select (available)
20220918 120004 worker: Source select (source: MPD)
20220918 120004 worker: Source select (output: snd_rpi_hifiberry_digi)
20220918 120004 worker: Bluetooth (available)
20220918 120004 worker: Airplay renderer (available)
20220918 120004 worker: Spotify renderer (available)
20220918 120004 worker: Squeezelite (available)
20220918 120004 worker: RoonBridge renderer (not installed)
20220918 120004 worker: Multiroom sender (available)
20220918 120004 worker: Multiroom receiver (available)
20220918 120004 worker: UPnP renderer (available)
20220918 120004 worker: DLNA server (available)
20220918 120004 worker: GPIO button handler (available)
20220918 120004 worker: Stream recorder (n/a)
20220918 120004 worker: --
20220918 120004 worker: -- Other
20220918 120004 worker: --
20220918 120004 worker: USB volume knob (Off)
20220918 120004 worker: Shellinabox SSH started
20220918 120004 worker: USB auto-mounter (udisks-glue)
20220918 120004 worker: Saved MPD vol level (0)
20220918 120004 worker: Preamp volume level (0)
20220918 120004 worker: MPD volume level (0) restored
20220918 120004 worker: ALSA volume level (None)
20220918 120004 worker: Auto-play (Off)
20220918 120004 worker: LocalUI started
20220918 120004 worker: CoverView toggle (-off)
20220918 120004 worker: Maintenance interval (120 minutes)
20220918 120004 worker: Screen saver activation (Never)
20220918 120004 worker: Session permissions (OK)
20220918 120004 worker: Watchdog started
20220918 120004 worker: Ready
20220918 120040 worker: Job regen_thmcache
20220918 120305 worker: Job regen_thmcache
pi@moode:~/moode $
You can see that I ran the regen, waited a bit and then ran it again a minute or so later to show that it failed.
Reply
#10
I do my Gulp builds on a Mac using the commands below and then from one or more Pi's  I mount an SMB share on my Mac and then copy the updated files into the Pi's for testing. I think it's sort of like what @Nutul does.

Code:
sudo node_modules/.bin/gulp build && sudo node_modules/.bin/gulp deploy --test

Check permissions and timestanmps on the files deployed to /var/www/ they should be 0755 and the timestamps should reflect the time the Gulp build was run.

Try running /var/www/util/thumb-gen.php from the command line and see if there are any errors.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: