Snakeoil Forums
Snakeoil Gear Isolation Beta Series - Printable Version

+- Snakeoil Forums (https://forums.snakeoil-os.net)
+-- Forum: Snakeoil Testers (https://forums.snakeoil-os.net/Forum-Snakeoil-Testers)
+--- Forum: Test Builds (https://forums.snakeoil-os.net/Forum-Test-Builds)
+--- Thread: Snakeoil Gear Isolation Beta Series (/Thread-Snakeoil-Gear-Isolation-Beta-Series)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


RE: Snakeoil Gear Isolation Alpha Series - mkysimes - 25-Apr-2021

(24-Apr-2021, 09:31 PM)agent_kith Wrote:
(23-Apr-2021, 03:33 AM)mkysimes Wrote: Same for me. Only tried 20.04.2 LTS server as base. Did notice after install of Snakeoil and reboot there is no change in messaging on boot screen. In other words, if Snakeoil is running there is no indication on boot. Not sure if that's what's supposed to happen or not.
If you see the login prompt, hit the ENTER key a few times and you should see a prompt for your IP. If that doesn't show up then it means something is wrong.

Spent about half an hour trying to add more diagnostics things into the diagnostic file generation bit.. And then realise that's not gonna work because the WebApp itself isn't working!
[Image: bird.gif]

Can you or anybody with the forbidden problem SSH to your snakeoil machine, and run this?
 
Code:
netstat -tulpn|grep 80

Also, copy out the contents of /etc/lighttpd/lighttpd.conf and paste it here. I still can't find any obvious reasons why it's not working, but I have tweaked the installer to unpack and install the blobs during the installation. That should at least fix some potential problems.

The installer is close to be released officially now, just need to settle one final issue, and this forbidden problem.

Once the installer is out I can work on the kernel builder and also update the WebApp to the latest angular (I'm a gun Angular developer now and have lots of new tricks/ideas for the webapp). <- That will happen in 1.2.1 or later though.
Contents of netsat:

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1753/lighttpd
udp6       0      0 fe80::dea6:32ff:fe4:546 :::*                                1634/systemd-networ

Contents of lighttpd.conf:

server.modules = (
    "mod_indexfile",
    "mod_access",
    "mod_alias",
     "mod_redirect",
)

server.document-root        = "/var/www/"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80

# strict parsing and normalization of URL for consistency and security
# https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_http-parseoptsDetails
# (might need to explicitly set "url-path-2f-decode" = "disable"
#  if a specific application is encoding URLs inside url-path)
server.http-parseopts = (
  "header-strict"           => "enable",# default
  "host-strict"             => "enable",# default
  "host-normalize"          => "enable",# default
  "url-normalize-unreserved"=> "enable",# recommended highly
  "url-normalize-required"  => "enable",# recommended
  "url-ctrls-reject"        => "enable",# recommended
  "url-path-2f-decode"      => "enable",# recommended highly (unless breaks app)
 #"url-path-2f-reject"      => "enable",
  "url-path-dotseg-remove"  => "enable",# recommended highly (unless breaks app)
 #"url-path-dotseg-reject"  => "enable",
 #"url-query-20-plus"       => "enable",# consistency in query string
)

index-file.names            = ( "index.php", "index.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
include "/etc/lighttpd/conf-enabled/*.conf"

#server.compat-module-load   = "disable"
server.modules += (
    "mod_compress",
    "mod_dirlisting",
    "mod_staticfile",
)

proxy.server = (
  "/api" => ( (
    "host" => "127.0.0.1",
    "port" => 30511
  ) )
 )

Hopefully that helps  Wink


RE: Snakeoil Gear Isolation Alpha Series - agent_kith - 25-Apr-2021

(25-Apr-2021, 10:27 AM)mkysimes Wrote: Hopefully that helps  Wink
Everything looks legit. Unsure why things aren't working. Think Can you SSH to your machine, and run this?

Code:
sudo chown www-data:www-data /var/www/ -R
And see if the WebApp is working now?


RE: Snakeoil Gear Isolation Alpha Series - mkysimes - 25-Apr-2021

(25-Apr-2021, 11:34 AM)agent_kith Wrote:
(25-Apr-2021, 10:27 AM)mkysimes Wrote: Hopefully that helps  Wink
Everything looks legit. Unsure why things aren't working. Think Can you SSH to your machine, and run this?
 
Code:
sudo chown www-data:www-data /var/www/ -R
And see if the WebApp is working now?
Still 403 Forbidden


RE: Snakeoil Gear Isolation Alpha Series - Bromf - 25-Apr-2021

maybe a change in the underlying ubuntu server install and permissions ?...
When I install ubuntu server 20.04 it fails to add my default user... I have to use the recovery console and add my user and add to sudo ...
...and that is all the groups shown so any groups set by the Snakeoil installer fail and maybe that is the 403 permissions problem ?

Also the ubuntu server 20.04 installer defaults to  ip=localhost and does not recognise user or ip...so not a Snakeoil problem but a change to ubuntu server ?
Code:
blunder@localhost:~$ netstat -tulpn|grep 80
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      -
Code:
blunder@localhost:~$ sudo netstat -tulpn|grep 80
[sudo] password for blunder:
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      662/lighttpd



RE: Snakeoil Gear Isolation Alpha Series - agent_kith - 25-Apr-2021

(25-Apr-2021, 02:35 PM)Bromf Wrote: maybe a change in the underlying ubuntu server install and permissions ?...
When I install ubuntu server 20.04 it fails to add my default user... I have to use the recovery console and add my user and add to sudo ...
...and that is all the groups shown so any groups set by the Snakeoil installer fail and maybe that is the 403 permissions problem ?
Hmm. But my Server don't have that problem. The first installed user always have sudo rights.

I'm not entirely sure what the problem is still. But hopefully the next beta will give me more info. Trying to upload it now.. Will update u guys soon.

Minimserver issues havn't been looked at yet though. But almost everything reported stuffs should be fixed.


RE: Snakeoil Gear Isolation Beta Series - agent_kith - 25-Apr-2021

Beta 2 is out. Have re-jigged the installer to actually unpack and install the "blob" during installation instead of relying on a reboot, or an arbitrary wait time.

Hopefully this will complete the installation process and clear any 403 forbidden issues..

Anyway because my computer died earlier this month, and I had to get parts, and download tons of new things to reinstall my PC... Turns out I may run out of quota again this month. :( 250GB per month is somehow still not enough.. With 5 more days I don't think I will make it.. Never had to use more than 150 GB of internet before ever, and now for 2 months in a row I think I'm gonna hit the ceiling.  #FML..

Anyway, enjoy this build.


RE: Snakeoil Gear Isolation Beta Series - mkysimes - 25-Apr-2021

Can't wait to try it out Thumbs Up  Have stuff to do all today unfortunately but will install new version first chance and let you know how it goes!


RE: Snakeoil Gear Isolation Beta Series - Bromf - 26-Apr-2021

(25-Apr-2021, 07:21 PM)agent_kith Wrote: Beta 2 is out. Have re-jigged the installer to actually unpack and install the "blob" during installation instead of relying on a reboot, or an arbitrary wait time.

Hopefully this will complete the installation process and clear any 403 forbidden issues..

Anyway because my computer died earlier this month, and I had to get parts, and download tons of new things to reinstall my PC... Turns out I may run out of quota again this month. Sad 250GB per month is somehow still not enough.. With 5 more days I don't think I will make it.. Never had to use more than 150 GB of internet before ever, and now for 2 months in a row I think I'm gonna hit the ceiling.  #FML..

Anyway, enjoy this build.

Installs fine and now the 403 forbidden error is gone Cool but the Rest API is not loading...
Quote: 
REST server is not responding. Reboot computer manually if GUI is not back after 5 reconnect attempts.
Reconnect attempt: 20
rebooting does not solve it.

The initial 1.2.6 install gave this error but it was not present when I tried the install a second time after re-installing alsa-utils.
Code:
+ Install Snakeoil RestAPI server... OK
  + Installing Snakeoil blob, please be patient... chmod: cannot access '/usr/local/bin/curl': No such file or directory
### JSON Exception: * Line 1, Column 1 Syntax error: Malformed token
sh: 1: aplay: not found



RE: Snakeoil Gear Isolation Beta Series - Snoopy8 - 26-Apr-2021

Installed Beta 2 over Beta 1 on Intel NUC.  Everything went smoothly, no issues. Checked Mpd 0.22.3, LMS + Upmpdcli, and MinimServer, all ran with no problems.

Previously reported issue with MinimServer starting/ stopping now fixed. CPUSet can now be enabled/ disabled with no problems.

Minor issue with LMS Web on Android phone, and maybe this is a LMS issue?  Had to enable it as "Desktop site" before I could get to Settings on bottom right corner of page.

  Thumbs Up Clap ​​​​​​​ Beta 2 is working well.  Thank you...


RE: Snakeoil Gear Isolation Beta Series - agent_kith - 26-Apr-2021

(26-Apr-2021, 05:05 AM)Bromf Wrote: rebooting does not solve it.

The initial 1.2.6 install gave this error but it was not present when I tried the install a second time after re-installing alsa-utils.
There is no need to install alsa-utils. As Snakeoil comes with it's own ALSA. Having said that, install alsa-utils in theory wouldn't do anything because the Snakeoil version of alsa-utils should always be picked up first.

(26-Apr-2021, 05:05 AM)Bromf Wrote:
Code:
+ Install Snakeoil RestAPI server... OK
  + Installing Snakeoil blob, please be patient... chmod: cannot access '/usr/local/bin/curl': No such file or directory
Ah ha!!! Have you mounted a network share on /media/music? And it does not have write permissions? I'm unsure why that didn't error out (it should). Let me know if you have a network share mounted.

If yes, can you temporarily unmount the network share manually, then run the installer and see if u have any problems afterwards?