Today I abandoned logic and tried the time tested pressing buttons at random strategy. I added a new subdirectory to the music directory and copied a couple of files into it. It was visible. I created a new share that pointed to the existing directory. That wasn't visible. Then I tried adding advanced permissions to the music directory. That worked even though I'd previously given the LMS userid read and write permissions. I'm sure that there's a perfectly logical explanation and I'm just in the stage of technological development where this looks like magic to me. The odd thing is that the other shares on the NAS are all completely visible to LMS. I know I've never explicitly added advanced permissions to them nor given the LMS userid any rights to them. I'm willing to accept this as a solution because it works. My brain just rebels at "because" as the reason that it works.1
BTW, I enabled the view UPNP/DLNA plugin and that would have been my fallback position. The DLNA server on the NAS is visible.
Results 991 to 1,000 of 1049
-
2022-05-15, 09:28 #991
- Join Date
- May 2022
- Posts
- 10
File visibility solved
-
2022-05-15, 13:57 #992
- Join Date
- May 2017
- Location
- Netherlands
- Posts
- 775
The only thing I know is, that my music files and directories have me as user and are set read/excused by everyone ( 0755 ). And LMS can see them all.
Important thing is, set them according to Linux user management right. If you're not familary with it, Google should be you're best friend.
Verstuurd vanaf mijn Nokia 5.3 met Tapatalk
maintainer of QLogitechMediaServer, QOptware-NG and QAutoSub.
Qnap TS-453a, with LogitechMediaSever 8.0.0 Nightly ( with spotty, youtube, Radio Paradise a.m. )
Several raspberry with hifiberry amp+ and picoreplayer.
Love logitechmediaserver for it flexibel way, to play music from different sources.
Thanks for the DONATIONS
-
2022-05-15, 14:21 #993
- Join Date
- May 2022
- Posts
- 10
File permissions
I'm familiar with NIX file permissions. I've never looked for a Qnap command line. The Qnap GUI seems to implement chmod, more or less. There's no execute permission but there's read, write, and read plus write. I've configured the music share for the squeezeboxserver userid for read plus write. The admin userid (root I'm guessing) is set up for read plus write. I hadn't looked into ssh which may give me command line access.
-
2022-05-16, 23:22 #994
- Join Date
- May 2017
- Location
- Netherlands
- Posts
- 775
================== QLogitechMediaServer version 2.25.04 ================================= 15-05-2022
!Bugfix release, fixen error -N -G
Optimized chroot file-system.
For those who send me a donation, thank you makes my work appreciated!
maintainer of QLogitechMediaServer, QOptware-NG and QAutoSub.
Qnap TS-453a, with LogitechMediaSever 8.0.0 Nightly ( with spotty, youtube, Radio Paradise a.m. )
Several raspberry with hifiberry amp+ and picoreplayer.
Love logitechmediaserver for it flexibel way, to play music from different sources.
Thanks for the DONATIONS
-
2022-05-17, 08:22 #995
- Join Date
- May 2022
- Posts
- 10
file visibility gone again
I've lost the ability to see files in my audio file share again. Both the music folder view and the disks and folders view show an empty directory after a remove library and rescan. I can see the DLNA server that's running on the NAS and access it through Squeezelite. I've tried all the x-41 versions from 2.10.02 through 2.25.04 on my TS-231P. I have made sure that the squeezeboxserver user profile is active and has rw access to the music folder and all its subdirectories. I've double checked it from the command line using ssh. The only problem I can see in the scan logs is that there appears to be a missing table in the sqlite DB. Here's the LMS server log file portion from the most recent scan:
[22-05-17 07:51:28.2924] main::init (390) Starting Logitech Media Server (v8.2.1, 1649774087, Tue 12 Apr 2022 05:27:02 PM CEST) perl 5.024004 - arm-linux-gnueabihf-thread-multi-64int
[22-05-17 07:51:30.3425] main::checkDataSource (1121) Warning: Schema updated or no media found in the database, initiating scan.
[22-05-17 07:51:39.6403] Slim::Utils::SQLiteHelper:ostConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table
[22-05-17 07:51:39.7170] Slim::Schema::forceCommit (2177) Warning: Trying to commit transactions before DB is initialized!
[22-05-17 08:10:00.5091] Slim::Utils::SQLiteHelper:ostConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table
[22-05-17 08:10:00.5861] Slim::Schema::forceCommit (2177) Warning: Trying to commit transactions before DB is initialized!
-
2022-05-17, 09:11 #996
- Join Date
- May 2017
- Location
- Netherlands
- Posts
- 775
First off all the user squeezeboxserver, has no need to be set up as user on the music share.
The most simple way is, go in a SSH shell, and I'm the root of you're musicshare do chmod -R 0755. Restart LMS, and it should work.
Verstuurd vanaf mijn Nokia 5.3 met Tapatalk
maintainer of QLogitechMediaServer, QOptware-NG and QAutoSub.
Qnap TS-453a, with LogitechMediaSever 8.0.0 Nightly ( with spotty, youtube, Radio Paradise a.m. )
Several raspberry with hifiberry amp+ and picoreplayer.
Love logitechmediaserver for it flexibel way, to play music from different sources.
Thanks for the DONATIONS
-
2022-05-17, 11:08 #997
- Join Date
- May 2022
- Posts
- 10
I logged in using SSH and did the chmod as you suggested on my music share, /share/audio. The permissions after the chmod as reported by ls -l are rwxrwx--- for files and drwxrwx--- for directories. I checked subdirectories to make sure the recursion worked. I restarted LMS and did a rescan. Again, nothing was visible in the /audio directory in both the Music Folder view and the Discs and Folders view. Both report the directory as empty. The scan reported discovering no files or subdirectories in the /audio share. Again the server log reported the missing table error:
[22-05-17 10:06:00.1641] Slim::Utils::SQLiteHelper:ostConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table
[22-05-17 10:06:00.2249] Slim::Schema::forceCommit (2177) Warning: Trying to commit transactions before DB is initialized!
Out of curiosity I installed LMS on my desktop machine, Win 11, and it sees and plays the NAS share.
-
2022-05-17, 12:19 #998
- Join Date
- Feb 2009
- Posts
- 508
Is it safe now to upgrade to QLogitechMediaServer version 2.25.04 on QTS 5.0?
Or are there still problems?
-
2022-05-17, 13:09 #999
Something hasn't worked on your chmod command - 0755 should give you permissions of rwxrwxr-x not rwxrwx---
Are you by chance logging into the QNAP using a different User to the default Admin?
It's good security practice to create a new user and use that for general use on the QNAP and disable the default Admin account, however, there is no sudoers group on a QNAP so you can't make your new user an elevated user, some commands such as chmod need that elevation and won't work from such users even of you've made them an Administrator.
So if you've done this to your QNAP, the simplest way to get round this is to re-enable the default Admin account and login using that to complete your elevated command - don't forget to disable the default Admin account when you've finished.
Kev
-
2022-05-18, 02:54 #1000
Thanks, it now runs without any error messages, and for some reason that runs much faster! Fantastic!
There are two instances of cosmetics bugs where some characters do not show as intended, assume some formatting issue.
- Before the Waiting message...
- At the prompt when the script is ready
See my console output below...
Code:[admin@QNAP2 LogitechMediaServer]$ ./QLogitechMediaServer.sh start Preparing the system to run LogitechMediaServer. Fixing owner/rights for squeezeboxserver on SlimServer/ ! Fixing owner/rights for squeezeboxserver on SlimServer/ the old way ! Starting LogitechMediaServer in the Background. \e[41mWaiting for LogitechMediaServer to become ready, can take a few minutes!\e LogitechMediaServer 8.2.1-1649774087 is started in the Background on [30206] ! In a few seconds you can access the LogitechMediaServer webgui through http://192.168.6.3:9001 ! [admin@QNAP2 LogitechMediaServer]$ it!\e[0m
NAS: QNAP TS-459U+ QTS 4.2.6 (4x 2TB, RAID5)
Services: LMS 8.3.0 by QLMS 2.30.01 QLMS at QNAP club
Squeezebox: 6x Receiver, 3x Boom, 2x SB3 Classic, 1x Touch
Controller: Control by Material skin or iPeng, Local music or Spotify by Spotty