Update do nothing (V. 6.84.0)

General discussion about netjukebox
ZeBison
User
Posts: 19
Joined: Sun Apr 24, 2022 12:48 am

Update do nothing (V. 6.84.0)

Post by ZeBison »

Hi,

Update ended without doing anything...

Image

No error message, no file.id in folders and database still empty.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update do nothing (V. 6.84.0)

Post 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
ZeBison
User
Posts: 19
Joined: Sun Apr 24, 2022 12:48 am

Re: Update do nothing (V. 6.84.0)

Post 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.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update do nothing (V. 6.84.0)

Post 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.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update do nothing (V. 6.84.0)

Post by wbartels »

PS
flac is 100% lossless, so you can always decode to wav again (same as zip for data).
ZeBison
User
Posts: 19
Joined: Sun Apr 24, 2022 12:48 am

Re: Update do nothing (V. 6.84.0)

Post 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.
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update do nothing (V. 6.84.0)

Post 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.
ZeBison
User
Posts: 19
Joined: Sun Apr 24, 2022 12:48 am

Re: Update do nothing (V. 6.84.0)

Post by ZeBison »

My server is on Ubuntu server 20.04
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update do nothing (V. 6.84.0)

Post 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
ZeBison
User
Posts: 19
Joined: Sun Apr 24, 2022 12:48 am

Re: Update do nothing (V. 6.84.0)

Post by ZeBison »

Wonderful! Works fine... actually running. Thanks a lot!
ZeBison
User
Posts: 19
Joined: Sun Apr 24, 2022 12:48 am

Re: Update do nothing (V. 6.84.0)

Post by ZeBison »

Same as with wav: stucks on structure (all over the night).
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update do nothing (V. 6.84.0)

Post 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
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update do nothing (V. 6.84.0)

Post by wbartels »

Maybe you could find some clue in the Apache error log:

Code: Select all

/var/log/apache2/error.log
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Update do nothing (V. 6.84.0)

Post 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!
ZeBison
User
Posts: 19
Joined: Sun Apr 24, 2022 12:48 am

Re: Update do nothing (V. 6.84.0)

Post 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
Locked