Update do nothing (V. 6.84.0)
Update do nothing (V. 6.84.0)
Hi,
Update ended without doing anything...
No error message, no file.id in folders and database still empty.
Update ended without doing anything...
No error message, no file.id in folders and database still empty.
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: Update do nothing (V. 6.84.0)
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.
For login the database must be created.
Thanks,
Willem
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.
I assume you ment no albums and tracks where added.and database still empty
For login the database must be created.
Thanks,
Willem
Re: Update do nothing (V. 6.84.0)
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.
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: Update do nothing (V. 6.84.0)
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.
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.
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: Update do nothing (V. 6.84.0)
PS
flac is 100% lossless, so you can always decode to wav again (same as zip for data).
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)
Yes, of course I added the "$cfg..." in config.inc.php (with all others), I don't know why I wrote update.php.
I'll think about flac option: it'll take time to encode 4000 files keeping the folders structure.
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)
My server is on Ubuntu server 20.04
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: Update do nothing (V. 6.84.0)
The same here, I also use Ubuntu server 20.04
Please test the script first because it wil also remove the original wav files!!!
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)
Wonderful! Works fine... actually running. Thanks a lot!
Re: Update do nothing (V. 6.84.0)
Same as with wav: stucks on structure (all over the night).
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: Update do nothing (V. 6.84.0)
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:
And the recommended additional ubuntu packages:
Good luck!
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
Code: Select all
sudo apt install lame vorbis-tools musepack-tools faad flac wavpack zip
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: Update do nothing (V. 6.84.0)
Maybe you could find some clue in the Apache error log:
Code: Select all
/var/log/apache2/error.log
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: Update do nothing (V. 6.84.0)
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!
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)
Yes, all packages already installed and up to date.
.id files are here :
Entire error.log :
.id files are here :
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