[SOLVED] Web interface seems to be not working. on 1.2
#1
Been testing on and off all day,  got LMS running pretty good.  But since building my full collection in LMS I rebooted and have no web server? 

I still get the snakeoilweb server,  but only a white and blank page

I suspect maybe there is a conflict with LMS's web server? ...

You mentioned needing to post instructions for LMS...  was it anything more complicated than just starting it.

thanks for this project ...  fun stuff
T
 Go to solution Reply

#2
(07-May-2021, 06:51 AM)Coacharnold Wrote: Been testing on and off all day,  got LMS running pretty good.  But since building my full collection in LMS I rebooted and have no web server? 

I still get the snakeoilweb server,  but only a white and blank page

I suspect maybe there is a conflict with LMS's web server? ...

You mentioned needing to post instructions for LMS...  was it anything more complicated than just starting it.

thanks for this project ...  fun stuff
T
Interesting..  Shouldn't conflict with LMS as it is using port 9090 or 9000 from memory. However, some plugins may be using port 80? The port the Snakeoil WebApp is using.

Can you SSH to your computer, and run the following commands? Give me the output here so I can take a look.
Code:
sudo systemctl status lighttpd
sudo netstat -tulpn | grep 80
Snakeoil Operating System - Music, your way!
Reply

#3
(07-May-2021, 07:01 AM)agent_kith Wrote:
(07-May-2021, 06:51 AM)Coacharnold Wrote: Been testing on and off all day,  got LMS running pretty good.  But since building my full collection in LMS I rebooted and have no web server? 

I still get the snakeoilweb server,  but only a white and blank page

I suspect maybe there is a conflict with LMS's web server? ...

You mentioned needing to post instructions for LMS...  was it anything more complicated than just starting it.

thanks for this project ...  fun stuff
T
Interesting..  Shouldn't conflict with LMS as it is using port 9090 or 9000 from memory. However, some plugins may be using port 80? The port the Snakeoil WebApp is using.

Can you SSH to your computer, and run the following commands? Give me the output here so I can take a look.
Code:
sudo system status lighttpd
sudo netstat -tulpn | grep 80

Ok ... so I think you mean sysctl  -- I get 

sudo sysctl status lighttpd
sysctl: cannot stat /proc/sys/status: No such file or directory
sysctl: cannot stat /proc/sys/lighttpd: No such file or directory

or maybe not ...it is  alive ....   i mean I do get a very minimal web interface,   I seem to be able to get to everything,  but the menu is completely gone,  so I have to input it from URL to get to different pages.

i get 

sudo netstat -tulpn | grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      771/lighttpd        
udp6       0      0 :::53804                :::* 


T

I should add a screenshot, as this is what I have ... mind you, it was a blue background,   Its like its half loading.

For what its worth,  LMS is working pretty good.



[Image: Screenshot-20210506-191726.png]
Reply

#4
(07-May-2021, 07:08 AM)Coacharnold Wrote: Ok ... so I think you mean sysctl  -- I get 
Sorry. Just woke up here. Big Grin I mean systemctl. So it's
Code:
sudo systemctl status lighttpd
 
(07-May-2021, 07:08 AM)Coacharnold Wrote: sudo netstat -tulpn | grep 80
Looks like the WebApp have crashed for some reason. What browser are you using? Can you press F12 to get to the debug menu, and go to the "Console" tab and see if there are any errors?


Note, I'll be off to work soonish but will try and pick this up later after (~10 hours from now). In the meantime, try this with Firefox or Chrome and see if the problem persists.

Edit: Looks like this is a Brave browser, which is based on Chromium, so should work. I'll download this browser later today to try it out.. Always cool to try different browsers.
Snakeoil Operating System - Music, your way!
Reply

#5
WOW ... end of the day here ..... but then I suppose you on the OTHER SIDE OF THE PLANET from me, LOL 

So i get the same output in chrome, so it's not the browser.  I'm trying to find something in the developer tools,  but I can't remember how to get in there,   I've remapped my f11 key for my pop up terminal (woops) 

here's  quick look at my HTOP ...LMS is still building the full text index so it seems to be using a lot of CPU ... I've got this connected to 6 NFS share drives on my data server so it is working hard:


[Image: Screenshot-20210506-195108.png]
Reply

#6
Here's what I get from lighttpd 

fausto@fausto-snakeoil:~$ sudo systemctl status lighttpd
[sudo] password for fausto: 
● lighttpd.service - Lighttpd Daemon
     Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor pres>
     Active: active (running) since Thu 2021-05-06 18:24:57 EDT; 21h ago
   Main PID: 771 (lighttpd)
      Tasks: 6 (limit: 2224)
     Memory: 4.8M
     CGroup: /system.slice/lighttpd.service
             ├─771 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
             ├─839 /usr/bin/php-cgi
             ├─972 /usr/bin/php-cgi
             ├─973 /usr/bin/php-cgi
             ├─974 /usr/bin/php-cgi
             └─975 /usr/bin/php-cgi

May 06 18:24:56 fausto-snakeoil systemd[1]: Starting Lighttpd Daemon...
May 06 18:24:57 fausto-snakeoil lighttpd[729]: 2021-05-06 18:24:56: configfile.>
May 06 18:24:57 fausto-snakeoil systemd[1]: Started Lighttpd Daemon.
lines 1-17/17 (END)
Reply

#7
Software side seems to be ok. So likely a WebApp issue.

F12 not working? If so, go to the browser menu, and look for anything that says "Web Developer" console. The console looks like this (Slight visual differences depending on the browser you're using, but they all have
the same functionality):

[Image: Web-Console.jpg]

Copy and paste the contents from "Console", and also "Network" so I can have a look. Alternatively, maybe run the installer again and see what happens.
Snakeoil Operating System - Music, your way!
Reply

#8
Here's a mess of what I get in the console ..  repeated a lot 

[Fri May  7 20:17:18 2021] Code: ff 48 85 c0 0f 84 99 00 00 00 41 80 3c 24 ff 0f 85 b4 00 00 00 48 8b 05 6a 21 0a 00 49 0f be 16 4c 89 f5 64 48 8b 08 48 89 d0 <f6> 44 51 01 20 74 18 0f 1f 44 00 00 48 0f be 55 01 48 83 c5 01 48
[Fri May  7 20:17:25 2021] snakeoil-rest[2977130]: segfault at e5 ip 00007f29cb2edc74 sp 00007f29b7b98540 error 4 in libc-2.33.so[7f29cb1d6000+16b000]
[Fri May  7 20:17:25 2021] Code: ff 48 85 c0 0f 84 99 00 00 00 41 80 3c 24 ff 0f 85 b4 00 00 00 48 8b 05 6a 21 0a 00 49 0f be 16 4c 89 f5 64 48 8b 08 48 89 d0 <f6> 44 51 01 20 74 18 0f 1f 44 00 00 48 0f be 55 01 48 83 c5 01 48
[Fri May  7 20:17:33 2021] snakeoil-rest[2977369]: segfault at e5 ip 00007f798925ac74 sp 00007f7975b05540 error 4 in libc-2.33.so[7f7989143000+16b000]
[Fri May  7 20:17:33 2021] Code: ff 48 85 c0 0f 84 99 00 00 00 41 80 3c 24 ff 0f 85 b4 00 00 00 48 8b 05 6a 21 0a 00 49 0f be 16 4c 89 f5 64 48 8b 08 48 89 d0 <f6> 44 51 01 20 74 18 0f 1f 44 00 00 48 0f be 55 01 48 83 c5 01 48

Here's what I get in NETSTAT ---   I re reran the script and got the web browser to work perfectly again .... however, it seems to have killed LMS...  can't get it back,  I says it's running when I look at the status,   but I can't get the web interface.

T

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:36173           0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:30511         0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:41977           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:44799           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:33060         0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:42183           0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:30511         127.0.0.1:43566         TIME_WAIT  
tcp        0      0 192.168.1.152:80        192.168.1.151:52610     ESTABLISHED
tcp        0      0 127.0.0.1:30511         127.0.0.1:43476         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43494         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43558         TIME_WAIT  
tcp        0      0 192.168.1.152:80        192.168.1.151:52608     TIME_WAIT  
tcp        0      0 192.168.1.152:979       192.168.1.18:2049       ESTABLISHED
tcp        0      0 127.0.0.1:30511         127.0.0.1:43540         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43514         TIME_WAIT  
tcp        0      0 192.168.1.152:80        192.168.1.151:52600     TIME_WAIT  
tcp        0      0 127.0.0.1:43598         127.0.0.1:30511         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43534         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43586         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43572         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43552         TIME_WAIT  
tcp        0      0 127.0.0.1:43614         127.0.0.1:30511         ESTABLISHED
tcp        0      0 127.0.0.1:30511         127.0.0.1:43574         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43542         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43478         TIME_WAIT  
tcp        0      0 192.168.1.152:80        192.168.1.151:52612     TIME_WAIT  
tcp        0      0 192.168.1.152:50082     192.168.1.201:631       TIME_WAIT  
tcp        0      0 192.168.1.152:49768     192.168.1.18:631        TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43576         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43480         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43506         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43528         TIME_WAIT  
tcp        0      0 192.168.1.152:53154     192.168.1.226:3483      ESTABLISHED
tcp        0      0 127.0.0.1:30511         127.0.0.1:43500         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43492         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43516         TIME_WAIT  
tcp        0      0 192.168.1.152:80        192.168.1.151:52614     TIME_WAIT  
tcp        0      0 192.168.1.152:80        192.168.1.151:52592     TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43570         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43614         ESTABLISHED
tcp        0      0 192.168.1.152:80        192.168.1.151:52594     ESTABLISHED
tcp        0      0 127.0.0.1:30511         127.0.0.1:43474         TIME_WAIT  
tcp        0      0 127.0.0.1:30511         127.0.0.1:43510         TIME_WAIT  

OK ....LMS wouldn't come up at all, so I re-installed LMS from the LMS update file that I grabbed earlier today (well after all the problems started) ...  rebooted the machine.  Got LMS to come up perfect,   but the snake-oil interface has been reduced the white minimal snake oil interface I posted earlier ...

any Ideas where to go next?

Not for nothing this version of LMS seems to be working really well.  The material skin interface theme is spectacular,  I've been using LMS for a while (even worked for a company selling LMS enabled devices) ...the material skin interface  is the best one yet, even better than my android remotes on my android browser..

T
Reply

#9
(08-May-2021, 09:49 AM)Coacharnold Wrote: Here's a mess of what I get in the console ..  repeated a lot 

[Fri May  7 20:17:18 2021] Code: ff 48 85 c0 0f 84 99 00 00 00 41 80 3c 24 ff 0f 85 b4 00 00 00 48 8b 05 6a 21 0a 00 49 0f be 16 4c 89 f5 64 48 8b 08 48 89 d0 <f6> 44 51 01 20 74 18 0f 1f 44 00 00 48 0f be 55 01 48 83 c5 01 48
Not entirely sure what the problem is... Not supposed to see the Rest server throw errors like this.

Perhaps try and switch to another player and see what happens.. What version of LMS are you using? The one given in the installer, or something else?

I need to know the steps you've done to get to these errors so I can re-create them here.
Snakeoil Operating System - Music, your way!
Reply

#10
Ok ... so here's the complete list of what I did to get where I am.  This is all the sets from my complete history,  so not much has been done to this system outside of this.

1 - lubuntu 21.04  clean install 

2- Install apache 
sudo apt-get install apache2 phpmyadmin lamp-server^ mail-server^ openssh-server^

3 - Install ssh

4 - install NFS server 

sudo apt install nfs-kernel-server
sudo apt install nfs-common


5 - run snake oil install script 

sudo ./snakeoil-installer-1.2.0-x86_64.sh 

6 - apache2 conflicts with snakoil web server - disable apache 2:

sudo systemctl stop apache2
sudo update-rc.d apache2 disable


7 - enable Logitech media server 

  184  /etc/init.d/logitechmediaserver start
  185  /etc/init.d/logitechmediaserver status
  186  /etc/init.d/logitechmediaserver enable


8 - to this point the REST server interface was working great.  I created several share folders in /media/share  and used Snakeoil to mount my NFS shares there for LMS.   At this point, I went to LMS, went through it's setup wizard and started the LMS library scan.   Sometime in the middle of that scan,  the REST server started to malfunction.

9 - DUring the process of playing with LMS after the library scan (while trying to troubleshoot the REST server with you)  I ran the LMS update script from LMS 
sudo dpkg -i /var/lib/squeezeboxserver/cache/updates/logitechmediaserver_8.1.1_amd64.deb

10 - I  reran the SnakeOil script and the REST server started to work again. LMS stopped working though. A check of it's status said it was running  (but still no web interface) 

11 - I re-ran the LMS .deb from above  and LMS now works great again at the cost of the REST server not working again.

That's where I am and pretty much everything I've done up to this point \
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVEDMPD player not working lutek71 7 234 27-Sep-2024, 11:54 AM
Last Post: Snoopy8
  [SOLVEDLMS not working with Bookworm Snoopy8 12 855 11-Jan-2024, 05:58 PM
Last Post: Snoopy8
  [SOLVEDCPUset not working in Ubuntu 22.04 Snoopy8 17 3,746 12-Dec-2023, 07:02 PM
Last Post: uglymusic
  Install not working Pi2Design Mercury V2 Snoopy8 1 502 01-Aug-2023, 10:03 AM
Last Post: agent_kith
  BubbleUPnP (Server) Not Working Snoopy8 2 1,011 24-Jun-2022, 08:37 PM
Last Post: agent_kith



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Howto setup resampling in Logitech Media...
Last Post: Coacharnold
18-Nov-2024 12:06 AM
» Replies: 7
» Views: 5818
Dropping Measurements, Hello High-End.
Last Post: agent_kith
26-Oct-2024 09:02 AM
» Replies: 12
» Views: 460
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1689
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 115
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 114
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 349
A network protocol designed for CAS
Last Post: hkphantomgtr
10-Oct-2024 09:48 PM
» Replies: 0
» Views: 93
CAS with "Single Core"
Last Post: hkphantomgtr
06-Oct-2024 08:32 AM
» Replies: 2
» Views: 126
MPD player not working
Last Post: Snoopy8
27-Sep-2024 11:54 AM
» Replies: 7
» Views: 234
LMS playing DFF files sampling rate
Last Post: Snoopy8
16-Sep-2024 07:45 PM
» Replies: 5
» Views: 163

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.