Linux installer malfunctioning (ref#5YH81N)

What’s happening?

· Something else

How can we help?

· None of the above

Other options

· Other

Describe the issue

Linux installer not working

Describe your network setup

Ubiquiti, server is wired via 1G ethernet

OK, looks like the .sh file is not right (see screenshot). Download on desktop, copy over to server. Run script:
Errors.

Welcome to the RoonServer installer

This installer sets up RoonServer to run on linux with the following settings:

  • RoonServer will be installed in /opt/RoonServer
  • RoonServer’s data will be stored in /var/roon/RoonServer
  • RoonServer will be configured to run as a system service
  • RoonServer will run as root

These settings are suitable for turning a dedicated or semi-dedicated device
into an appliance that runs RoonServer

If you want customize how RoonServer is installed, see:

http://kb.roonlabs.com/LinuxInstall


Do you want to install RoonServer on this machine? [Y/n] y

Downloading RoonServer_linuxx64.tar.bz2 to /tmp/tmp.U7PjO2dkyh/RoonServer_linuxx64.tar.bz2

Unknown option ‘show-progress’


The RoonServer installer did not complete successfully.

If you are not sure how to proceed, please check out:

Update: Tried under Ubuntu Server and same issues as above.

All dependencies were installed as well FYI

Tried loading the RoonServer_linuxx64.tar.bz2 file locally, same issue. Might try manual install, but would prefer not to :smiley:

The curl command should be curl -L -O – but you might have that already.
Once you have the script you have to delete ‘show-progress’ from the wget command.
Also, do you have bzip installed?

Indeed, -L should be included. Thanks

bzip is already installed by default

I will edit the .sh file and look for show-progress

The only mention of show-progress is:

echo ""
    echo "Downloading $PACKAGE_FILE to $TMPDIR/$PACKAGE_FILE"
    echo ""
    set +e
    which wget >/dev/null; WHICH_WGET=$?
    set -e
    if [ $WHICH_WGET = 0 ]; then
        wget --show-progress -O "$TMPDIR/$PACKAGE_FILE" "$PACKAGE_URL"
    else
        curl -L -# -o "$TMPDIR/$PACKAGE_FILE" "$PACKAGE_URL"
    fi

I edited that line to remove --show-progress -O

Ran the script with proper permissions. Appears it’s not liking the location of the tar package? The code in the script seems correct to get the randomized location.

Do you want to install RoonServer on this machine? [Y/n] y

Downloading RoonServer_linuxx64.tar.bz2 to /tmp/tmp.0aGIFZUMq4/RoonServer_linuxx64.tar.bz2

Failed to parse URI '/tmp/tmp.0aGIFZUMq4/RoonServer_linuxx64.tar.bz2'
RoonServer_linuxx64. 100% [================================================================================================>]  108.59M  107.18MB/s
                          [Files: 1  Bytes: 108.59M [86.12MB/s] Redirects: 0  Todo: 0  Errors: 0                            ]

Unpacking RoonServer_linuxx64.tar.bz2...tar: RoonServer_linuxx64.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

--------------------------------------------------------------------------------------

The RoonServer installer did not complete successfully.

Do you have bzip2 installed?

You should only remove “show-progress” not the “-O” - I believe the “-O” tells wget where to place the retrieved file.

1 Like

Yes, bzip2 and bzip3 are installed. Seems it’s not wanting to load bzip or something… I’ll dig more into it later.

Last metadata expiration check: 0:41:57 ago on Sat 15 Jun 2024 09:40:29 AM CDT.
Package bzip2-1.0.8-18.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

I tried installing in an Ubuntu VM and eventually got it to work… so I might have to abandon my Fedora plans and just use Ubuntu… I still want to investigate why Fedora isn’t allowing sudo access to /tmp though

That is weird. I’m running a Fedora Server and I can read/write to/from /tmp as just a normal user. And if you sudo, you should definitely have access.

That was it. Thanks Doug! I got overzealous in vim and removed that -O by accident.

I think the official Linux installer should maybe update the instructions to:

curl -L -O http://download.roonlabs.com/builds/roonserver-installer-linuxx64.sh

If I try it in Ubuntu or Fedora without the -L flag it gives me the 301 error code in the screenshot since it has a redirect? I assume the redirect is http to https… so maybe just update the command to be https

FYI, the output:

STATUS: SUCCESS


Copying Files...Done
Failed to stop roonserver.service: Unit roonserver.service not loaded.

Installing /etc/systemd/system/roonserver.service

Enabling service roonserver...
Created symlink /etc/systemd/system/multi-user.target.wants/roonserver.service → /etc/systemd/system/roonserver.service.
Service Enabled

Starting service roonserver...
Service Started

--------------------------------------------------------------------------------------

All Done! RoonServer should be running on your machine now.

sudo systemctl status roonserver.service
× roonserver.service - RoonServer
     Loaded: loaded (/etc/systemd/system/roonserver.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: exit-code) since Sat 2024-06-15 14:26:10 CDT; 2s ago
   Duration: 2ms
    Process: 1221 ExecStart=/opt/RoonServer/start.sh (code=exited, status=203/EXEC)
   Main PID: 1221 (code=exited, status=203/EXEC)
        CPU: 1ms

Jun 15 14:26:10 localhost.localdomain systemd[1]: Started roonserver.service - RoonServer.
Jun 15 14:26:10 localhost.localdomain systemd[1]: roonserver.service: Main process exited, code=exited, status=203/EXEC
Jun 15 14:26:10 localhost.localdomain systemd[1]: roonserver.service: Failed with result 'exit-code'.

1 Like

Argh! I liked that last thing before I saw that it had failed!

I remember this same thing happening to me. I’ll do some research and get back to you on how I fixed it.

Ok, the first thing you have to do is edit the line in /etc/selinux/config that says

SELINUX=enforcing

to read

SELINUX=permissive

and that should allow roonserver to start up. But you still won’t be able to get at it from a remote.

The simplest way to get around this is to shutdown the firewall. You can do it with these two commands

sudo systemctl stop firewalld
sudo systemctl disable firewalld

If you want to keep the firewall running, though, it’s a whole different set of commands. I’ll have to do a little more research to remember those.

Refresh my memory, though – you’re running the server on Fedora, right?

Thanks! As for the Fedora Server instance, I got stuck when it said it stopped and couldn’t figure out what was going on. I never got to firewall settings, but there is a handy post in the Installer page: Android Roon Remote looses connection to Core (daily) - #46 by CRo

I ended up just doing an Ubuntu Server install and it worked almost right away, with no firewall settings needed so far… I prefer Fedora over Debian/Ubuntu, but if it’s working I will just leave it as is and maybe mess with Fedora Server issues in a VM or some other old metal just to see if I can get it working.

Only issue now is that when I updated Roon to v2.0 in Bottles on Fedora desktop, I can’t get it to work at all after selecting an audio output source (it crashes immediately). Tried different runners with no luck… but that’s a different topic from this one. Works in Windows native though.

I wish I could help you on this one, but I’ve never worked with Ubuntu Server – it’s a project I have in mind for the future, though.

And honestly, I don’t know what “Bottles” is.

Glad you got it working, though!

As a last update:

  1. Ubuntu Server is up and running, library scanned, backed up and so far so good… Will keep it that way for now
  2. I did not try the Fedora Server PERMISSIVE option yet. But since my Ubuntu instance is working for now, I will call this ticket closed and revisit that at a later date.
  3. Bottles is a pretty frontend to run Wine (and Steam/Proton layers) on Linux. I ended up getting Roon x64 Windows working after some messing around.

Thanks again, Doug! Happy listening :smiley:

1 Like