arashi@localhost:~> cat /usr/lib/os-release NAME="openSUSE Leap" VERSION="15.2" ID="opensuse-leap" ID_LIKE="suse opensuse" VERSION_ID="15.2" PRETTY_NAME="openSUSE Leap 15.2" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:15.2" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/"
arashi@localhost:~> ampinstmgr --version [Info] AMP Instance Manager v220.127.116.11 built 03/02/2021 00:33 [Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
I manually installed AMP on OpenSUSE Leap using instructions at https://cubecoders.com/AMPInstall
OpenSUSE uses RPM packages, so I installed the repo using the URL from the CentOS tab.
My problem is, when I went to make a new AMP instance using the WebUI, I can't seem to access the instance (Double-clicking or hitting the 'Manage Instance' button just brings up a blank AMP login page (https://ibb.co/mDQVZrB)
Here's the AMP console log:
02/07/2021 22:21:44 22:21:44 Loaded ADSModule version 18.104.22.168 by CubeCoders Limited Loaded FileManagerPlugin version 22.214.171.124 by CubeCoders Limited Loaded EmailSenderPlugin version 126.96.36.199 by CubeCoders Limited Loaded WebRequestPlugin version 188.8.131.52 by CubeCoders Limited Loaded LocalFileBackupPlugin version 184.108.40.206 by CubeCoders Limited Loaded CommonCorePlugin version 220.127.116.11 by CubeCoders Limited ADSModule requests dependency InstanceManagerPlugin... Loaded InstanceManagerPlugin version 18.104.22.168 by CubeCoders Limited ADSModule requests dependency SystemUserManagerPlugin... Loaded SystemUserManagerPlugin version 22.214.171.124 by CubeCoders Limited Loaded steamcmdplugin version 126.96.36.199 by CubeCoders Limited Metrics server started OK on port 12820 22:21:45 Using keypair with fingerprint kUxpcqgHo551sjPYBzQ4Ig5NS60ABbF0i1xU81tzlp8= SFTP Server started on 0.0.0.0:2223 Websockets are enabled. Webserver started on http://0.0.0.0:8080 RouterTimer@10Hz with 2 jobs started Checking for AMP updates... 22:21:46 AMP is up-to-date. :arashi 22:21:53 Managed remote instance YachtClubMC at http://localhost:8081/ Authentication token for arashi requested by ManageInstance on behalf of arashi :Anonymous 22:21:54 Failure to make API call to YachtClubMC (http://localhost:8081/) - retried 10 times : Connection refused HttpRequestException  (HttpRequestException) : Connection refused at ADSModule.WebMethods.MakeInstanceRequest (m.Http.IHttpRequest request, String REQ_RAWJSON, String requesturi) at ADSModule.WebMethods.Servers (m.Http.IHttpRequest request, String id, String REQ_RAWJSON) SocketException  (SocketException) : Connection refused
I figured it might be a "security" issue, so googled how to check AppArmor log.
arashi@localhost:~> sudo journalctl -fx [sudo] password for root: -- Logs begin at Sat 2021-02-06 21:52:18 PST. -- Feb 06 22:00:15 localhost systemd: amptasks.service: Failed to determine group credentials: No such process Feb 06 22:00:15 localhost systemd: amptasks.service: Failed at step GROUP spawning /opt/cubecoders/amp/ampinstmgr: No such process -- Subject: Process /opt/cubecoders/amp/ampinstmgr could not be executed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The process /opt/cubecoders/amp/ampinstmgr could not be executed and failed. -- -- The error number returned by this process is 3. Feb 06 22:00:15 localhost systemd: amptasks.service: Main process exited, code=exited, status=216/GROUP Feb 06 22:00:15 localhost systemd: Failed to start AMP Instance Manager Pending Tasks. -- Subject: Unit amptasks.service has failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit amptasks.service has failed. -- -- The result is failed. Feb 06 22:00:15 localhost systemd: amptasks.service: Unit entered failed state. Feb 06 22:00:15 localhost systemd: amptasks.service: Failed with result 'exit-code'.
/opt/cubecoders/amp/ampinstmgr seems to exist, and is properly symlinked to
AMP is also not 'protected' by AppArmor anyway.
arashi@localhost:~> sudo aa-unconfined [sudo] password for root: 3331 /home/amp/.ampdata/instances/ADS01/AMP_Linux_x86_64 not confined 3340 /home/amp/.ampdata/instances/YachtClubMC/AMP_Linux_x86_64 not confined 4982 /home/amp/.ampdata/instances/nightly/AMP_Linux_x86_64 not confined
Steps to reproduce:
- Install OpenSUSE Leap.
- Install AMP manually, NOT using
- Install dependencies:
sudo zypper in tmux socat unzip git wget
- Add AMP user:
sudo useradd -d /home/amp -m amp -s /bin/bash -G tty
- Add firewall rule with firewalld:
sudo firewall-cmd --add-port=8080/tcp --permanent
- Add AMP repo to zypper
sudo zypper ar -f https://repo.cubecoders.com/ "CubeCoders AMP"
- Install amp with package manager (zypper)
sudo zypper in ampinstmgr
- First time setup:
- Hit standalone button
- Install dependencies:
- Make new AMP instance (Minecraft Java) using button in WebUI
- Attempt to access that instance using either double-clicking or 'Manage Instance' button
Actions taken to resolve so far:
Security.EnablePassthruAuth=True in AMPConfig.conf of problem instance, didn't fix problem
Tested WebUI on two different systems using different versions of Firefox (85.0 and 83.0), but don't think that matters