running the easy installer for Roon server on Ubuntu latest version. I am getting these errors on step 3 (curl is ok, chmod is ok, sudo step (
sudo ./roonserver-installer-linuxx64.sh
./roonserver-installer-linuxx64.sh: 1: cannot open html: No such file
./roonserver-installer-linuxx64.sh: 2: Syntax error: redirection unexpected
Did you download the installer script fresh or are you trying to reuse an old version? Did have a look at the contents of ./roonserver-installer-linuxx64.sh
to see if its content is plausible? The file starts with: #!/bin/bash
.
Yes its the latest version from the help pages. I am not that fluent in linux amd there are a lot of lines in the script but i will take a look - thanks
Maybe still this issue?
No, the Roon Server installer script got changed to use wget
if available (and it should be available on Ubuntu).
Weird, because the error looks much like the redirection error with the curl -O
Just for due diligence, have you verified that wget
is installed?
yes wget is installed and i have replaced curl with that - same error result
Are these the steps?
Roon Server x86_64
$ curl -O https://download.roonlabs.com/builds/roonserver-installer-linuxx64.sh
$ chmod +x roonserver-installer-linuxx64.sh
$ sudo ./roonserver-installer-linuxx64.sh
If so, please share output from:
sudo snap list
If curl
is listed, do this.
sudo snap remove curl && sudo apt install curl --yes
Then delete the downloaded script from the download location, and start over.
If you could, please let us know the above results, thank you!
Many thanks for all the help and comments. I am posting my results in detail in case it can help others. It seems like curl is not happy with the redirects on the Roon site.
I was using these commands:
$ curl -O https://download.roonlabs.com/builds/roonserver-installer-linuxx64.sh
$ chmod +x roonserver-installer-linuxx64.sh
$ sudo ./roonserver-installer-linuxx64.sh
I removed and reinstalled curl as suggested. Using newly installed curl gives this when run:
( I have removed the <> around the html so that it displays better here)
html
head>301 Moved Permanently</head
body
center>
301 Moved Permanently
</centerhr>nginx</center
/body
/html
Using wget instead gives:
–2024-10-01 09:11:33-- https://download.roonlabs.com/builds/roonserver-installer-linuxx64.sh
Resolving download.roonlabs.com (download.roonlabs.com)… 35.231.208.158
Connecting to download.roonlabs.com (download.roonlabs.com)|35.231.208.158|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://download.roonlabs.net/builds/roonserver-installer-linuxx64.sh [following]
–2024-10-01 09:11:33-- https://download.roonlabs.net/builds/roonserver-installer-linuxx64.sh
Resolving download.roonlabs.net (download.roonlabs.net)… 104.22.14.70, 104.22.15.70, 172.67.14.113, …
Connecting to download.roonlabs.net (download.roonlabs.net)|104.22.14.70|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 16871 (16K) [text/x-sh]
Saving to: ‘roonserver-installer-linuxx64.sh’
roonserver-installe 100%[===================>] 16.48K --.-KB/s in 0.001s
2024-10-01 09:11:34 (17.2 MB/s) - ‘roonserver-installer-linuxx64.sh’ saved
Following this the install failed as a cifs feature was missing.
This was solved by installing cifs-utils and rerunning the Roon installer. This completed successfully and I can see Roon running in top.
Now to switch over from my previous server – fingers crossed.
It has been previously reported (for Fedora 40 IIRC) that curl -L -O
works. Maybe this is the “new” standard now not only for Fedora? Responsible persons should check the documentation and change the “curl
command line” if necessary (or replace it with wget
altogether).
It’s because Roon changed the location and curl -O doesn’t follow redirects. -L is needed for this. From the curl man page:
-L, --location
(HTTP) If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option makes curl redo the request on the new place.