Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html

2021-04-03 Thread Wim De Winter


Seems like the default systemd unit entry in my case was uncorrect. This
is the entry I now have and it's working!
Code:

[Unit]
  Description=Logitech Media Server Daemon
  After=network-online.target
  Wants=network-online.target
  
  [Service]
  User=logitechms
  Group=logitechms
  PIDFile=/var/run/lms.pid
  WorkingDirectory=/opt/logitechmediaserver
  ExecStart=/opt/logitechmediaserver/slimserver.pl \
--prefsdir /opt/logitechmediaserver/prefs \
--cachedir /opt/logitechmediaserver/cache \
--logdir /opt/logitechmediaserver/Logs \
--httpaddr 192.168.178.21 \
--httpport 9000 \
--noimage --novideo
  
  [Install]
  WantedBy=multi-user.target



Found out about it here:
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

Thank you Michael and Paul for your time and assistance!



Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606
View this thread: http://forums.slimdevices.com/showthread.php?t=108599

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html

2021-04-03 Thread Wim De Winter


So here's what I did, and this seems to have solved the problem. In
system settings>system administration>systemd, I looked up
logitechmediaserver in the tab called units and added
Code:

--httpaddr 192.168.178.21

to the unit file. The unit file now looks like this:
Code:

[Unit]
  Description=Logitech Media Server Daemon
  After=network.target
  
  [Service]
  User=logitechms
  Group=logitechms
  PIDFile=/var/run/lms.pid
  WorkingDirectory=/opt/logitechmediaserver
  ExecStart=/opt/logitechmediaserver/slimserver.pl \
--prefsdir /opt/logitechmediaserver/prefs \
--cachedir /opt/logitechmediaserver/cache \
--logdir /opt/logitechmediaserver/Logs \
--noimage --novideo --httpaddr 192.168.178.21
  
  [Install]
  WantedBy=multi-user.target
  

I'll reboot and let you know if this solution works for me.



Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606
View this thread: http://forums.slimdevices.com/showthread.php?t=108599

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html

2021-04-02 Thread Wim De Winter


Hey Paul, thanks for your answer!Paul Webster wrote: 
> 192.168.x.y and 10.x.y.z addresses are especially interesting to someone
> outside your network because they are reserved for private networks.
> So you don't really have to obscure them here. No problem doing so but
> it makes it a bit harder trying to guess what might have happened.
> 
> Take a look at your DHCP provider(s) to see where the IP addresses come
> from.
> Perhaps you have 2 on your LAN and they have different netmask settings.
The second address (starting with 100.x.y.z by the way) is active when I
use my VPN. It is switched on in network manager for general, standard
use. Is there a way to let slimserver not use it? Or best to run the
wizard again, but this time with VPN switched off?



Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606
View this thread: http://forums.slimdevices.com/showthread.php?t=108599

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html

2021-04-02 Thread Wim De Winter


Hi Michael,

Thanks for the swift reply!

Short answer: that's how it ended up after installation.

Long answer: (installation process):

After some online search couldn't quite find Arch/Manjaro specific
install instructions, so went ahead and installed this package:
https://aur.archlinux.org/packages/logitechmediaserver.

After installation did 
Code:

systemctl enable logitechmediaserver

 and 
Code:

systemctl start logitechmediaserver

 opened firefox and entered 
Code:

xxx.yyy.zzz.ab:9000

 as described here:
https://wiki.slimdevices.com/index.php/Linux_Installation_Guide.html and
got the error code 
Code:

403 Forbidden: settings/server/wizard.html 

After some internet search stumbled upon this thread, entered 
Code:

xxx.yyy.zzz.ab:9000/server.log

 and thus found out about the IP adress rrr.sss.ttt.cd, used
Code:

rrr.sss.ttt.cd:9000

  and could use the setup wizard that way.

I stopped using numerical IP adresses and use localhost:9000 instead.
That always seems to work. But my worry is that the connection between
my two radio players and LMS will remain unstable. Reconnecting after
reboot of the system hosting LMS seems necessary.

The server.log of the last session:

Code:

[21-04-02 17:22:37.7405] main::init (388) Starting Logitech Media Server 
(v8.1.1, ARCH-AUR-GIT.8.1.1, do 01 apr 2021 20:53:30 CEST) perl 5.032001 - 
x86_64-linux-thread-multi
  [21-04-02 17:22:38.0338] Slim::Utils::IPDetect::_init (138) Warning: Couldn't 
call connect() - falling back to 127.0.0.1
  [21-04-02 17:22:41.9426] Slim::Web::Cometd::handler (421) errorNeedsClient: 
00:04:20:2e:5c:e1, status, -, 10, menu:menu, useContextMenu:1, subscribe:600
  [21-04-02 17:22:42.8151] Slim::Web::Cometd::handler (421) errorNeedsClient: 
00:04:20:2c:64:25, status, -, 10, menu:menu, useContextMenu:1, subscribe:600
  [21-04-02 17:27:15.6191] Slim::Web::HTTP::generateHTTPResponse (1022) Access 
to settings pages is restricted to the local network or localhost: 
xxx.yyy.zzz.ab -> rrr.sss.ttt.cd (settings/index.html)
  [21-04-02 17:37:02.9317] Slim::Web::HTTP::generateHTTPResponse (1022) Access 
to settings pages is restricted to the local network or localhost: 
xxx.yyy.zzz.ab -> rrr.sss.ttt.cd (settings/index.html)
  



By the way, the IP address rrr.sss.ttt.cd is slightly different
("ttt.cd" changes) after rebooting the system hosting LMS, but is
unchanged after just restarting LMS without rebooting the system, so it
most likely is a network problem.



Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606
View this thread: http://forums.slimdevices.com/showthread.php?t=108599

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html

2021-04-02 Thread Wim De Winter


Hi all,

I know, old thread, but

I am using slimserver v8.1.1, ARCH-AUR-GIT.8.1.1 on manjaro and just
can't get it to work properly. I can access it on my local machine with
my local IP address eg xxx.yyy.zzz.ab, but can access the settings only
by using the IP address as can be found in the server.log file eg
rrr.sss.ttt.cd. Furthermore, the use of my two patched radios and
squeezer is unstable.

log file:

Code:

[21-04-02 10:51:55.7267] Slim::Web::HTTP::generateHTTPResponse (1022) 
Access to settings pages is restricted to the local network or localhost: 
xxx.yyy.zzz.ab -> rrr.sss.ttt.cd (settings/index.html)



How do I set --httpaddr to xxx.yyy.zzz.ab in Manjaro Linux? I am unable
to find the appropriate config files for slimserver.

thanks!



Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606
View this thread: http://forums.slimdevices.com/showthread.php?t=108599

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter