New installation failure

OS Name/Version: Ubuntu 22.04.2 LTS

Product Name/Version: New AMP install using install script

Problem Description: Error during install

Creating default instance...
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/local/lib/mono/4.5/mscorlib.dll' directory.
Failed to create default instance.
Removing generated nginx config...
Aborting...
Err:4 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-18-jdk amd64 18.0.2.1+1
 403  Forbidden [IP: 52.92.177.81 443]
Err:5 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-19-jdk amd64 19.0.2.0.0+7
 403  Forbidden [IP: 52.92.177.81 443]
Err:6 https://packages.adoptium.net/artifactory/deb jammy/main amd64 temurin-8-jdk amd64 8.0.362.0.0+9-1
 403  Forbidden [IP: 52.92.177.81 443]
 Fetched 167 MB in 39s (4,276 kB/s)

Directory /usr/local/lib/mono does not exist.

Steps to reproduce: Run install script

Actions taken to resolve so far: None

This looks like your IP is blocked from some major sites. Just guessing from the fact you got a 403 Forbidden error from adoptium.net. Can you browse to that site on your PC on the same network?

Looks like it was a transient error accessing an amazon aws server.

I also discovered that there is an issue with the mono repository. The install is using arch-i386 which causes an error. Changed it to arch=amd64 in the apt sources and it worked.

mono is now installed but now I get the following:

Creating default instance...
Cannot open assembly 'quick': No such file or directory.
Failed to create default instance.
Removing generated nginx config...
Aborting...

No errors shown in the log.

You shouldn’t have mono installed on the system at all, any AMP applications that rely on it should be run in containers ideally to avoid conflicts.

I didn’t have it (mono) installed. The AMP installer was trying to install it .

McMyAdmin never gave me this much trouble. I may just end up going back to it.

AMPs installer doesn’t try and install mono. AMP has no dependency on it or requirement for it to be installed. Installing it can cause conflicts with AMP. Did you have it leftover from an old McMyAdmin installation?

This is a new server, fresh OS install.

This is part of the output from my initial attempt at installing AMP

Creating default instance...
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/local/lib/mono/4.5/mscorlib.dll' directory.
Failed to create default instance.
Removing generated nginx config...
Aborting...

When I figured out the mono repository error and ran AMP install again it installed mono. If not the AMP installer, then something that the AMP installer calls.

What’s the full output of the getamp log? You can find them in /root/

Also is this a fresh OS install from an image you downloaded yourself, or a host/vendor provided image?

A standard run of GetAMP will quite categorically not install Mono - AMP has nothing to do with installing Mono on a system, so something else is going on.

This is on an Intel NUC located on my local DMZ. Ubuntu 22.04.2 LTS desktop distribution downloaded from ubuntu.com.

So I de-installed AMP, removed the directories it created and the apt repositories it added. Then re-ran the install.

As you can see there are no errors in the log it created.

But if you look at the terminal output you can see it complaining about a missing file from mono and the install aborts.

Amp install log

Fri May 19 05:30:03 PM PDT 2023
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:5 https://download.webmin.com/download/repository sarge InRelease
Hit:6 https://download.webmin.com/download/repository sarge Release
Hit:7 https://packages.redis.io/deb jammy InRelease
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
jq is already the newest version (1.6-2.1ubuntu3).
wget is already the newest version (1.21.2-2ubuntu1).
qrencode is already the newest version (4.1.1-1).
dirmngr is already the newest version (2.2.27-3ubuntu2.1).
git is already the newest version (1:2.34.1-1ubuntu1.9).
gpg is already the newest version (2.2.27-3ubuntu2.1).
gpg-agent is already the newest version (2.2.27-3ubuntu2.1).
software-properties-common is already the newest version (0.99.22.6).
unzip is already the newest version (6.0-26ubuntu3.1).
apt-transport-https is already the newest version (2.4.9).
dnsutils is already the newest version (1:9.18.12-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Adding Adoptium APT repository...
deb [signed-by=/usr/share/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb jammy main
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 https://packages.adoptium.net/artifactory/deb jammy InRelease [6,632 B]
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 https://packages.redis.io/deb jammy InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:7 https://packages.adoptium.net/artifactory/deb jammy/main amd64 Packages [4,558 B]
Get:8 https://packages.adoptium.net/artifactory/deb jammy/main i386 Packages [645 B]
Ign:9 https://download.webmin.com/download/repository sarge InRelease
Hit:10 https://download.webmin.com/download/repository sarge Release
Hit:11 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Fetched 11.8 kB in 1s (12.7 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
temurin-18-jdk is already the newest version (18.0.2.1+1).
temurin-19-jdk is already the newest version (19.0.2.0.0+7).
temurin-17-jdk is already the newest version (17.0.7.0.0+7).
temurin-8-jdk is already the newest version (8.0.372.0.0+7-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
certbot is already the newest version (1.21.0-1build1).
python3-certbot-nginx is already the newest version (1.21.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
nginx is already the newest version (1.18.0-6ubuntu14.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
--2023-05-19 17:30:50--  https://repo.cubecoders.com/archive.key
Resolving repo.cubecoders.com (repo.cubecoders.com)... 198.244.186.210, 2001:41d0:800:1e2b::c00b:c0de
Connecting to repo.cubecoders.com (repo.cubecoders.com)|198.244.186.210|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2270 (2.2K) [application/octet-stream]
Saving to: ‘/usr/share/keyrings/repo.cubecoders.com.gpg’

     0K ..                                                    100% 1.64G=0s

2023-05-19 17:30:51 (1.64 GB/s) - ‘/usr/share/keyrings/repo.cubecoders.com.gpg’ saved [2270/2270]

Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 https://packages.adoptium.net/artifactory/deb jammy InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 https://packages.redis.io/deb jammy InRelease
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:7 https://download.webmin.com/download/repository sarge InRelease
Hit:8 https://download.webmin.com/download/repository sarge Release
Hit:9 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Get:10 https://repo.cubecoders.com debian/ InRelease [1,381 B]
Get:12 https://repo.cubecoders.com debian/ Packages [571 B]
Fetched 1,952 B in 1s (1,705 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libevent-core-2.1-7 numactl socat tmux
The following NEW packages will be installed:
  ampinstmgr libevent-core-2.1-7 numactl socat tmux
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/113 MB of archives.
After this operation, 2,834 kB of additional disk space will be used.
Selecting previously unselected package libevent-core-2.1-7:amd64.
(Reading database ... 187577 files and directories currently installed.)
Preparing to unpack .../libevent-core-2.1-7_2.1.12-stable-1build3_amd64.deb ...
Unpacking libevent-core-2.1-7:amd64 (2.1.12-stable-1build3) ...
Selecting previously unselected package numactl.
Preparing to unpack .../numactl_2.0.14-3ubuntu2_amd64.deb ...
Unpacking numactl (2.0.14-3ubuntu2) ...
Selecting previously unselected package tmux.
Preparing to unpack .../tmux_3.2a-4ubuntu0.2_amd64.deb ...
Unpacking tmux (3.2a-4ubuntu0.2) ...
Selecting previously unselected package socat.
Preparing to unpack .../socat_1.7.4.1-3ubuntu4_amd64.deb ...
Unpacking socat (1.7.4.1-3ubuntu4) ...
Selecting previously unselected package ampinstmgr.
Preparing to unpack .../ampinstmgr_2.4.3.6_amd64.deb ...
Unpacking ampinstmgr (2.4.3.6) ...
Setting up numactl (2.0.14-3ubuntu2) ...
Setting up socat (1.7.4.1-3ubuntu4) ...
Setting up libevent-core-2.1-7:amd64 (2.1.12-stable-1build3) ...
Setting up tmux (3.2a-4ubuntu0.2) ...
Setting up ampinstmgr (2.4.3.6) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...

Terminal output of install

bash <(wget -qO- getamp.sh)

Please wait while GetAMP examines your system and network configuration...
 - Checking installed packages...
 - Checking environment...
 - Checking network configuration...
 - Detecting network type...

GetAMP v3.0.1
AMP QuickStart installation script for Debian, Red-Hat and Arch based GNU/Linux distributions
This installer will perform the following:

 * Install any pending system updates
 * Install any prerequisites and dependencies via your systems package manager
 * Add the CubeCoders repository to your system to keep AMP updated
 * Install AMP and create a default management instance on port 8080
 * Create any firewalls necessary to allow you to connect to AMP
 * Configure the default AMP instance to start on boot

Press CTRL+C to cancel installation.

It is safe to cancel this installation at any point. You can run the install
script again, and the script will skip any steps it has already completed.

Distribution        : ubuntu 22.04
Platform            : x86_64
Internal IP address : 10.1.30.11
External IP address : xx.xx.xx.xx
Network type        : NAT
Gateway IP address  : 10.1.30.1
Detected Firewall   : ufw
System Locale       : en_US.UTF-8
Package Manager     : apt-get

Enter new login details for use with AMP.
These are the login details you will use to log into AMPs web interface.

Username [admin]: 
Password: 
Confirm Password:

Will you be running Minecraft servers on this installation?
If selected, this installs the required versions of Java.
[Y/n] y

Will you be running applications that rely on SteamCMD? (Rust, Ark, CSGO, TF2, etc) on this installation?
If selected, this will install the required additional 32-bit libraries.
[Y/n] n

Would you like to isolate your AMP instances by running them inside Docker containers?
This provides an additional layer of protection at the expense of a minor performance impact.
It is strongly recommended if you are going to allow untrusted users access to AMP
but if it's just yourself or trusted users accessing it then it may not be necessary.
[y/N] n

Would you like AMP to be configured for use with HTTPS?

This will install nginx on your system and requires that you do not use any
other web servers such as Apache on this system.

This will create firewall rules to open ports 80 (HTTP) and 443 (HTTPS)
You also must own a domain name that resolves to xx.xx.xx.xx (Your external IP)

Do not choose this option if you do not already own a domain.

Using this facility requires that you read and accept the LetsEncrypt terms at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf

Enable HTTPS?
[y/N] y

Please specify which domain you wish to use.
You should use a subdomain that is only going to be used for AMP.
E.g. amp.mydomain.com
Domain: mc.mydomain.net
Please enter your email address (Optional)
LetsEncrypt will send important certificate notifications here.
Email: me@mydomain.net
GetAMP has detected that you are currently behind a NAT.
Please forward ports 80 and 443 TCP to 10.1.30.11 if you have not already done so.
Press any key to continue once you have done this.
Installation Summary:

AMP System user:                To be created
Instance Manager:               To be installed
HTTPS setup:                    Yes, via nginx with domain mc.mydomain.net
Install Java:                   Yes
Install 32-bit libraries:       No
Install Docker:                 No

Ready to install AMP. Press ENTER to continue or CTRL+C to cancel.


Installing AMP...
Creating system user...
Updating System...
Installing prerequisites...
Installing Java for Minecraft...
Installing nginx and certbot...
Adding component(s) 'universe' to all repositories.
Ign:1 https://download.webmin.com/download/repository sarge InRelease
Hit:2 https://download.webmin.com/download/repository sarge Release                                                                                                                
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy InRelease                                                                                                                          
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                                                                   
Hit:6 https://packages.adoptium.net/artifactory/deb jammy InRelease                                                                                         
Hit:7 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                            
Hit:8 https://packages.redis.io/deb jammy InRelease                                                    
Hit:9 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                                    
Hit:10 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease        
Reading package lists... Done
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 https://download.webmin.com/download/repository sarge InRelease                                                                                                              
Hit:3 https://packages.adoptium.net/artifactory/deb jammy InRelease                                                                                                                
Hit:4 https://download.webmin.com/download/repository sarge Release                                                                                
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                  
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                             
Hit:7 https://packages.redis.io/deb jammy InRelease                                                                          
Hit:8 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                                    
Hit:10 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease        
Reading package lists... Done
Checking settings... Domain mc.mydomain.net resolves correctly to xx.xx.xx.xx.
Adding CubeCoders DEB repository...
Installing instance manager...
 - Installing via package manager...
Adding firewall rules...
Adding firewall rule for port 443 (AMP Reverse Proxy) via ufw...
Skipping adding existing rule
Skipping adding existing rule (v6)
Adding firewall rule for port 80 (AMP Reverse Proxy) via ufw...
Skipping adding existing rule
Skipping adding existing rule (v6)
[Info] AMP Instance Manager v2.4.3.6 built 07/05/2023 12:05
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certificate not yet due for renewal
Deploying certificate
Successfully deployed certificate for mc.mydomain.net to /etc/nginx/conf.d/mc.mydomain.net.conf
Congratulations! You have successfully enabled HTTPS on https://mc.mydomain.net

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Info] Done!
Creating default instance...
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/local/lib/mono/4.5/mscorlib.dll' directory.
Failed to create default instance.
Removing generated nginx config...
Aborting...

Something went wrong during the installation. Would you like to upload your setup log for easy sharing?
This will upload /root/getamp-20230519-173003.log to the hastebin service and give you a URL you can share.

The log file may contain sensitive information such as username, any supplied domain names or your systems hostname
so if in doubt - check the file manually and upload it yourself.

Is /tmp/ mounted with the noexec flag?

/tmp is on the root partition

# df -k /tmp
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sdb2      171437320 20558012 142097948  13% /

/dev/sdb2 on / type ext4 (rw,relatime,errors=remount-ro)

You mentioned you’re using a desktop distribution rather than a server one. Is it possible mono is already installed and conflicting with AMP? Check by running mono -version in your shell. If it’s installed, remove it.

mono -version

Command ‘mono’ not found, but can be installed with:
apt install mono-runtime

What’s the output of ampinstmgr version?

[Info] AMP Instance Manager v2.4.3.6 built 07/05/2023 12:05
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV

Is this an x86_64 system or an aarch64 system?

Regardless, try the following:

su -l amp
ampinstmgr quickstart

Linux minecraft 5.19.0-41-generic #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

# su -l amp
  CubeCoders AMP  💻amp@minecraft  📁~  ampinstmgr quickstart
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/local/lib/mono/4.5/mscorlib.dll' directory.
  CubeCoders AMP  💻amp@minecraft  📁~  

And yes, that is what the shell prompt looks like.

Wait, are you doing this from a desktop session - or are you SSHed in from a remote system?

ssh. I normally run my server4s headless.

Do you have any pending package updates?