Page 1 of 3

Update do nothing (V. 6.84.0)

Posted: Sun Apr 24, 2022 1:49 am
by ZeBison
Hi,

Update ended without doing anything...

Image

No error message, no file.id in folders and database still empty.

Re: Update do nothing (V. 6.84.0)

Posted: Sun Apr 24, 2022 6:44 pm
by wbartels
Hello ZeBison,

Sorry I can't reproduce your problem.

Can you send me a personal message with a temporarily username/password and URL?
Then I can debug the update process with a browser.
and database still empty
I assume you ment no albums and tracks where added.
For login the database must be created.

Thanks,

Willem

Re: Update do nothing (V. 6.84.0)

Posted: Mon Apr 25, 2022 2:50 am
by ZeBison
I found the problem: my *.wav files. Just added "$cfg['media_extension'][] = 'wav';" in update.php and it works... even if it stays stuck on structure.

Re: Update do nothing (V. 6.84.0)

Posted: Mon Apr 25, 2022 9:45 am
by wbartels
Thanks for the feedback. wav files are not supported at the moment.
I think that the easiest workaround is to lossless encode the wav files to flac.
Than you also safe approximately 40% of storage.
And it is possible to stream music to your browser (most browsers support mp3, m4a and flac directly in HTML audio).

If you still want to experiment I would add $cfg['media_extension'][] = 'wav'; to the config.inc.php file instead to update.php.

Re: Update do nothing (V. 6.84.0)

Posted: Mon Apr 25, 2022 9:52 am
by wbartels
PS
flac is 100% lossless, so you can always decode to wav again (same as zip for data).

Re: Update do nothing (V. 6.84.0)

Posted: Mon Apr 25, 2022 12:31 pm
by ZeBison
Yes, of course I added the "$cfg..." in config.inc.php (with all others), I don't know why I wrote update.php. :D

I'll think about flac option: it'll take time to encode 4000 files keeping the folders structure.

Re: Update do nothing (V. 6.84.0)

Posted: Mon Apr 25, 2022 2:32 pm
by wbartels
ZeBison wrote: Mon Apr 25, 2022 12:31 pm I'll think about flac option: it'll take time to encode 4000 files keeping the folders structure.
What operation system do you use?
With Linux I could write a small script for you.

Re: Update do nothing (V. 6.84.0)

Posted: Mon Apr 25, 2022 6:13 pm
by ZeBison
My server is on Ubuntu server 20.04

Re: Update do nothing (V. 6.84.0)

Posted: Mon Apr 25, 2022 8:56 pm
by wbartels
The same here, I also use Ubuntu server 20.04
Please test the script first because it wil also remove the original wav files!!!

Code: Select all

#!/bin/sh
find '/data/Music' -type d | sort | while IFS= read -r dir; do
    wav=$(ls "$dir" | grep -c '\.wav$')
    if [ $wav -eq 0 ]; then continue; fi
    echo "$dir"

    flac -5 --verify --replay-gain --force "$dir"/*.wav
    rm -f "$dir"/*.wav

    echo "---"
done

Re: Update do nothing (V. 6.84.0)

Posted: Tue Apr 26, 2022 12:15 am
by ZeBison
Wonderful! Works fine... actually running. Thanks a lot!

Re: Update do nothing (V. 6.84.0)

Posted: Tue Apr 26, 2022 12:47 pm
by ZeBison
Same as with wav: stucks on structure (all over the night).

Re: Update do nothing (V. 6.84.0)

Posted: Tue Apr 26, 2022 4:08 pm
by wbartels
First of all thanks very much for you donation!
I assume the donation is from you.

I have tested the update process with my temporary account.
There is something strange during the update process, see screenshot below.

Does the Apache webserver have enough file permission in de Music directory (www-data user)?
Are the *.id files now created?
Do you have made other changes to netjukebox besides of the config.inc.php file and layout?
Are you now using the flac files?

I don't think that's the problem here, but you can still check these out:
Have you also installed al required extensions GD2, ICONV and MYSQLI?
For ubuntu 20.04:

Code: Select all

sudo apt install apache2 mysql-server php7.4 php7.4-mysql php7.4-gd php7.4-xml
And the recommended additional ubuntu packages:

Code: Select all

sudo apt install lame vorbis-tools musepack-tools faad flac wavpack zip
Good luck!

Image

Re: Update do nothing (V. 6.84.0)

Posted: Tue Apr 26, 2022 5:57 pm
by wbartels
Maybe you could find some clue in the Apache error log:

Code: Select all

/var/log/apache2/error.log

Re: Update do nothing (V. 6.84.0)

Posted: Tue Apr 26, 2022 6:27 pm
by wbartels
In the netjukebox directory at least the subdirectory's "temp" and "cache" need full access for user www-data.
The temp directory is very important, here are the lock files created for update.php and others.

Once again good luck!

Re: Update do nothing (V. 6.84.0)

Posted: Tue Apr 26, 2022 6:30 pm
by ZeBison
Yes, all packages already installed and up to date.

.id files are here :
Image

Entire error.log :
[Tue Apr 26 00:00:12.885024 2022] [mpm_event:notice] [pid 1863:tid 140115482500160] AH00489: Apache/2.4.41 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1f configured -- resuming normal operations
[Tue Apr 26 00:00:12.885095 2022] [core:notice] [pid 1863:tid 140115482500160] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'zip' already loaded in Unknown on line 0
PHP Warning: Module 'gd' already loaded in Unknown on line 0
PHP Warning: Module 'zip' already loaded in Unknown on line 0