Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Senior Member DJanGo's Avatar
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    2,371
    Quote Originally Posted by phanter View Post
    @ DJanGo

    I set the permisson manually like you described.
    Code:
    sudo chown squeezeboxserver:nogroup /var/log/squeezeboxserver
    And the Folder permissions to /var/log/squeezeboxserver looks like:
    -rw-r--r-- 1 squeezeboxserver nogroup
    ?

    Please do a
    Code:
    touch /var/log/squeezeboxserver/server.log
    chown -R squeezeboxserver:nogroup /var/log/squeezeboxserver/
    \edit
    make sure your output matches this:
    Code:
     ls -l /var/log/|grep sque
    drwxr-xr-x 2 squeezeboxserver lms     4096 Nov  5 19:41 squeezeboxserver
    /edit
    Last edited by DJanGo; 2017-11-05 at 12:17.

  2. #12
    Junior Member
    Join Date
    Nov 2017
    Posts
    9
    Code:
    root@DMW-NAS:/var/log/squeezeboxserver# touch /var/log/squeezeboxserver/server.log
    root@DMW-NAS:/var/log/squeezeboxserver# chown -R squeezeboxserver:nogroup /var/log/squeezeboxserver/
    root@DMW-NAS:/var/log/squeezeboxserver# ls -l /var/log/squeezeboxserver
    insgesamt 0
    -rw-r--r-- 1 squeezeboxserver nogroup 0 Nov  5 20:16 server.log
    Still no input in the log file, but process "should" be running.
    Code:
    root@DMW-NAS:/var/log/squeezeboxserver# sudo systemctl status logitechmediaserver.service
    ● logitechmediaserver.service - LSB: Startup script for the Logitech Media Server
       Loaded: loaded (/etc/init.d/logitechmediaserver)
       Active: active (exited) since So 2017-11-05 20:10:55 CET; 6min ago
      Process: 14750 ExecStop=/etc/init.d/logitechmediaserver stop (code=exited, status=0/SUCCESS)
      Process: 14760 ExecStart=/etc/init.d/logitechmediaserver start (code=exited, status=0/SUCCESS)
    
    Nov 05 20:10:55 DMW-NAS logitechmediaserver[14760]: Making sure that Logitech Media Server is not...r.
    Nov 05 20:10:55 DMW-NAS systemd[1]: Started LSB: Startup script for the Logitech Media Server.
    Hint: Some lines were ellipsized, use -l to show in full.

  3. #13
    Senior Member
    Join Date
    Feb 2013
    Posts
    368
    Quote Originally Posted by phanter View Post
    Code:
    root@DMW-NAS:/var/log/squeezeboxserver# touch /var/log/squeezeboxserver/server.log
    root@DMW-NAS:/var/log/squeezeboxserver# chown -R squeezeboxserver:nogroup /var/log/squeezeboxserver/
    root@DMW-NAS:/var/log/squeezeboxserver# ls -l /var/log/squeezeboxserver
    insgesamt 0
    -rw-r--r-- 1 squeezeboxserver nogroup 0 Nov  5 20:16 server.log
    Still no input in the log file, but process "should" be running.
    Code:
    root@DMW-NAS:/var/log/squeezeboxserver# sudo systemctl status logitechmediaserver.service
    ● logitechmediaserver.service - LSB: Startup script for the Logitech Media Server
       Loaded: loaded (/etc/init.d/logitechmediaserver)
       Active: active (exited) since So 2017-11-05 20:10:55 CET; 6min ago
      Process: 14750 ExecStop=/etc/init.d/logitechmediaserver stop (code=exited, status=0/SUCCESS)
      Process: 14760 ExecStart=/etc/init.d/logitechmediaserver start (code=exited, status=0/SUCCESS)
    
    Nov 05 20:10:55 DMW-NAS logitechmediaserver[14760]: Making sure that Logitech Media Server is not...r.
    Nov 05 20:10:55 DMW-NAS systemd[1]: Started LSB: Startup script for the Logitech Media Server.
    Hint: Some lines were ellipsized, use -l to show in full.
    I suggested starting LMS in debug mode earlier in this thread to see if it gives any clues as to what is happening on your system. If there was nothing abnormal in the /etc/apt/ logs ( user squeezeboxserver created, all requires files installed etc.) then it's not obviously a bad install.

    Make sure LMS is stopped via systemctl. then as root, what happens when you execute this command?

    Code:
    root@omv-vm:~# /usr/sbin/squeezeboxserver --user squeezeboxsever --group nogproup --debug
    Last edited by Krisbee; 2017-11-06 at 05:52. Reason: omission

  4. #14
    Junior Member
    Join Date
    Nov 2017
    Posts
    9
    Krisbee

    Output of the command. Seems to have some problems with the socket and user:

    Code:
    /usr/sbin/squeezeboxserver --user squeezeboxsever --group nogproup --debug
    Async::HTTP: Unable to load IO::Socket::SSL, will try connecting to SSL servers in non-SSL mode
    [17-11-06 17:21:05.8619] main::init (387) Starting Logitech Media Server (v7.9.1, 1509357021, Mon Oct 30 10:54:02 UTC 2017) perl 5.020002 - x86_64-linux-gnu-thread-multi
    [17-11-06 17:21:05.8669] main::changeEffectiveUserAndGroup (1012) Warning: User squeezeboxsever not found.

  5. #15
    Senior Member DJanGo's Avatar
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    2,371
    /edit
    wait...
    Code:
    /usr/sbin/squeezeboxserver --user squeezeboxsever --group nogproup --debug
    Thats a typo!!!
    Must be
    Code:
    /usr/sbin/squeezeboxserver --user squeezeboxserver --group nogroup --debug
    \edit


    Quote Originally Posted by phanter View Post
    Warning: User squeezeboxsever not found.

    [junk]
    --------------------------------------------------------------------------
    Really??
    User should be squeezeboxserver.


    Code:
     awk -F: '{ print $1 }' /etc/passwd |grep "squ"
    Is there a matching user squeezeboxserver ???

    Is there a file:
    /var/lib/dpkg/info/logitechmediaserver.postinst
    If yes - run it as root
    Code:
    sudo  /var/lib/dpkg/info/logitechmediaserver.postinst
    Is there a match in the userlist after you run the postinstaller?
    [/junk]
    Last edited by DJanGo; 2017-11-06 at 12:01.

  6. #16
    Junior Member
    Join Date
    Nov 2017
    Posts
    9
    Oh man .... Copy and paste without thinking..
    Never thought of that. Yes the user is set correctly.
    this is the final output..

    Code:
    /var/lib/dpkg/info# /usr/sbin/squeezeboxserver --user squeezeboxserver --group nogroup --debug
    Async::HTTP: Unable to load IO::Socket::SSL, will try connecting to SSL servers in non-SSL mode
    [17-11-06 20:07:04.7325] main::init (387) Starting Logitech Media Server (v7.9.1, 1509357021, Mon Oct 30 10:54:02 UTC 2017) perl 5.020002 - x86_64-linux-gnu-thread-multi
    [17-11-06 20:07:05.1518] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:05.2775] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [17-11-06 20:07:05.6283] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:05.7695] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [17-11-06 20:07:06.4962] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:06.6065] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    Can't call method "log" on an undefined value at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender.pm line 189.
    Can't call method "log" on an undefined value at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender.pm line 189.

  7. #17
    Senior Member DJanGo's Avatar
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    2,371
    Please take another look at your logfile folder.

    Remember i told you to touch a server.log file and chown it to the right user.

    Is this file (compare the output) changed eg timestamp or deleted?

    Thing is - if lms want to log something and cannot - it stops.

    Whats about installing from scratch with a real debian and add your NAS solution via apt-get?

  8. #18
    Junior Member
    Join Date
    Nov 2017
    Posts
    9
    Yeah it was changed. Last time i did the debug command line you guys gave me.

    It is the same output like the notification after the debug session:

    Code:
    [17-11-06 20:04:44.9599] main::init (387) Starting Logitech Media Server (v7.9.1, 1509357021, Mon Oct 30 10:54:02 UTC 2017) perl 5.020002 - x86_64-linux-gnu-thread-multi
    [17-11-06 20:04:49.8268] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:04:50.0020] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [17-11-06 20:04:51.3697] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:04:51.5319] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [17-11-06 20:07:04.7327] main::init (387) Starting Logitech Media Server (v7.9.1, 1509357021, Mon Oct 30 10:54:02 UTC 2017) perl 5.020002 - x86_64-linux-gnu-thread-multi
    [17-11-06 20:07:05.1520] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:05.2777] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [17-11-06 20:07:05.6319] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:05.7697] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [17-11-06 20:07:06.4964] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:06.6067] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    Yeah it think it is the best solution. Like I said. After six times of installing OMV on the same system. Four times i had no problems at all. But two times i had this strange issue... I try to figure out why.
    When I have some spare time, I will reinstall the system.. again.

  9. #19
    Senior Member
    Join Date
    Feb 2013
    Posts
    368
    Quote Originally Posted by phanter View Post
    Oh man .... Copy and paste without thinking..
    Never thought of that. Yes the user is set correctly.
    this is the final output..

    Code:
    /var/lib/dpkg/info# /usr/sbin/squeezeboxserver --user squeezeboxserver --group nogroup --debug
    Async::HTTP: Unable to load IO::Socket::SSL, will try connecting to SSL servers in non-SSL mode
    [17-11-06 20:07:04.7325] main::init (387) Starting Logitech Media Server (v7.9.1, 1509357021, Mon Oct 30 10:54:02 UTC 2017) perl 5.020002 - x86_64-linux-gnu-thread-multi
    [17-11-06 20:07:05.1518] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:05.2775] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [17-11-06 20:07:05.6283] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:05.7695] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    [17-11-06 20:07:06.4962] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
    [17-11-06 20:07:06.6065] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
    Can't call method "log" on an undefined value at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender.pm line 189.
    Can't call method "log" on an undefined value at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender.pm line 189.
    Apologies for the typo, but now you're getting closer. AFAIK the LMS package doesn't contain any log files, it just creates a directory for LMS to use for its logs once it is running.

    Code:
    root@omv-vm:~# dpkg -c logitechmediaserver_7.9.1~1509357021_amd64.deb | grep var
    drwxr-xr-x root/root         0 2017-10-30 10:54 ./var/
    drwxr-xr-x root/root         0 2017-10-30 10:54 ./var/log/
    drwxr-xr-x root/root         0 2017-10-30 10:54 ./var/log/squeezeboxserver/
    drwxr-xr-x root/root         0 2017-10-30 10:54 ./var/lib/
    drwxr-xr-x root/root         0 2017-10-30 10:54 ./var/lib/squeezeboxserver/
    drwxr-xr-x root/root         0 2017-10-30 10:54 ./var/lib/squeezeboxserver/prefs/
    drwxr-xr-x root/root         0 2017-10-30 10:54 ./var/lib/squeezeboxserver/cache/
    drwxr-xr-x root/root         0 2017-10-30 10:54 ./var/lib/squeezeboxserver/Plugins/
    -rw-r--r-- root/root       464 2017-10-30 10:53 ./usr/share/squeezeboxserver/HTML/EN/html/vars.js
    lrwxrwxrwx root/root         0 2017-10-30 10:57 ./usr/share/squeezeboxserver/Plugins -> /var/lib/squeezeboxserver/Plugins
    The install should have created it (/var/log/squeezeboxserver/) with the correct squeezboxserver:nogroup permissions. Perhaps you've looked already, but as DJanGo says, LMS needs to write its log files in that directory as soon as it starts. This should all happen without user intervention, I would have thought /var/log/squeezeboxserver was the key directory to check for owner & perms.

  10. #20
    Junior Member
    Join Date
    Nov 2017
    Posts
    9
    Big thanks to you guys! @ Krisbee and DJanGo

    I did a fresh install. Longest install of my life..
    Over ten hours. Fresh install of debian and then OMV. Now it works. But i hope it was the last time i have to install it.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •