Getting error after fresh installation on UBUNTU / Debian

  • 202 Views
  • Last Post 2 weeks ago
striker666de posted this 5 weeks ago

I am trying to install the latest version on a fresh UBUNTU system. (18.04, BONIC). Unfortunately I get an error message from the installer. On a fresh Debian 9 system it did not work as well. Two weeks ago, it worked fine with AMP version 1.9.8.6.

Installed with 32-bit libraries, as well as with NGINX/LetsEncrypt and Minecraft libraries.

Server is up to date. in amplog-File are no errors of package manager or installed packages.

uname: Linux xxx.xx.com 4.15.0 #1 SMP Mon Mar 16 15:39:59 MSK 2020 x8664 x8664 x86_64 GNU/Linux Server Type: VPS (4 Core; 8 GB Ram)

I get the following error:

[Info] AMP Instance Manager v1.9.9.2 built 01/05/2020 17:18
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Notice] AMP Service port ranges have not been specified, using any available...
[Notice] Application Service port ranges have not been specified, using any available...
[Error] An item with the same key has already been added. Key: 127.0.0.1
[Error] Instance creation failed.
[Error]   at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x0015a] in <11e8c3ad554843aabf495f404ae51ab6>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <11e8c3ad554843aabf495f404ae51ab6>:0
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x0009e] in <216e17eb4fe74dabb013a9140bcd66d2>:0
  at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector) [0x00000] in <216e17eb4fe74dabb013a9140bcd66d2>:0
  at ModuleShared.SelectionSources.IPSelectionSourcev6 (System.Object context, ModuleShared.IApplicationWrapper app) [0x00071] in <87db2ba2a4b5452e8f6ad9c8751dc5d3>:0
  at InstanceManagerPlugin.LocalInstanceManager.IPAddressIsUsable (System.String IP) [0x00000] in <81b83dafd6ff4a25bf22961a7604bae4>:0
  at InstanceManagerPlugin.LocalInstanceManager.CreateInstance (InstanceManagerPlugin.AMPInstanceBase Spec, InstanceManagerPlugin.PostCreateActions AfterProvision, ModuleShared.RunningTask WithTask, System.Boolean SkipCache) [0x003f5] in <81b83dafd6ff4a25bf22961a7604bae4>:0
  at InstanceManagerCLI.Core.QuickStart (System.String Username, System.String Password, System.String IPBinding, System.Int32 Port, System.Collections.Generic.Dictionary`2[TKey,TValue] ProvisionSettings) [0x00200] in <4dd014a5b1a14a91bb05bc20f414d08e>:0
Created symlink /etc/systemd/system/multi-user.target.wants/ampfirewall.service → /etc/systemd/system/ampfirewall.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ampfirewall.timer → /etc/systemd/system/ampfirewall.timer.
Installation complete!</4dd014a5b1a14a91bb05bc20f414d08e></81b83dafd6ff4a25bf22961a7604bae4></81b83dafd6ff4a25bf22961a7604bae4></87db2ba2a4b5452e8f6ad9c8751dc5d3></216e17eb4fe74dabb013a9140bcd66d2></216e17eb4fe74dabb013a9140bcd66d2></11e8c3ad554843aabf495f404ae51ab6></11e8c3ad554843aabf495f404ae51ab6>

Order By: Standard | Newest | Votes
Mike posted this 5 weeks ago

If you run ip addr does the same IP address show up multiple times?

striker666de posted this 5 weeks ago

oh man, yes. I have two localhosts defined on my VPS Server. Im not able to change the auto generated stuff. The provider always resets the interface configuration.

is there any other solution ?

Here an working example:

auto lo
iface lo inet loopback

auto venet0
iface venet0 inet static
        address 127.0.0.1
        netmask 255.255.255.255
        broadcast 0.0.0.0
        up route add default dev venet0

iface venet0 inet6 static
        address ::2
        netmask 128
        up ip -6 r a default dev venet0
auto venet0:0
iface venet0:0 inet static
        address xx.xxx.xxx.xxx
        netmask 255.255.255.255

Mike posted this 4 weeks ago

The next update for AMP has a change in to accommodate this kind of weirdness. Should be out early next week.

  • Liked by
  • striker666de
  • crumnl
striker666de posted this 4 weeks ago

Thanks! Is it possible to install amp out of some nightly build? :)

Mike posted this 4 weeks ago

Not while using the automated installation I'm afraid.

crumnl posted this 4 weeks ago

idk if it works for you @striker666de but I couldn't install it either, ran against the same issue.

So I downloaded the nightly build wget https://cubecoders.com/Downloads/ampinstmgr_Nightly.zip unzipped it and after creating a copy the original, moved it to /opt/cubecoders/amp/ampinstmgr

And now it does work.

striker666de posted this 4 weeks ago

hm, quick install does not work on this way... After second try the system outputs:

[Notice] AMP Service port ranges have not been specified, using any available...

[Notice] Application Service port ranges have not been specified, using any available... useradd: user 'AMPUSER-ADS01' already exists [Info] Instance creation failed. Reason: "User creation is required for this instance, but the user creation process failed."

same on manual create instance

[Warning] Instance will be created under its own system user. Ideally you should use the --docker flag to create the instance in a container.
[Info] Testing internet connection...
[Info] Checking licence key...
[Info] Licence Type:  AMP Professional
[Info] Current Usage: 3
[Info] Creating Instance: 'M01'
[Info] Performing Step: Creating Environment
[Info] Performing Step: Downloading AMP
[Info] Using cached archive: /root/.ampdata/instances/AMPCache-1992.zip
[Info] Performing Step: Unpacking
[Info] Performing Step: Configuring AMP
[Error] Configuration Failed: AMP configuration failed with return code 1
[Info] Instance creation failed. AMP configuration failed with return code 1

Quick Install:

root@h2885560:~# ampinstmgr --QuickStart
[Info] AMP Instance Manager v1.9.9.2 built 08/05/2020 03:04
[Info] Release spec: Nightly - built by CUBECODERS/buildbot on CCL-DEV
Please enter your chosen admin username for ADS
>admin

Enter your admin password for ADS
>********

Please confirm value for Password
>********

[Notice] AMP Service port ranges have not been specified, using any available...
[Notice] Application Service port ranges have not been specified, using any available...
[Info] No cache exists for 1992
[Info] Downloading AMP from https://cubecoders.com/Downloads/AMP_Latest.zip...

[##################################################] ETA 00:00:00 @11.36 MB/sec

[Info] Complete
[Error] Configuration Failed: AMP configuration failed with return code 1
[Info] Instance creation failed. Reason: "AMP configuration failed with return code 1"

Mike posted this 4 weeks ago

That's because you're trying to do it as root which is a no-no, only getamp can run as root. Ampinstmgr needs to be run as the 'amp' user.

striker666de posted this 4 weeks ago

hm. ok, does not work. maybe i tried to much. Please let me know when the new version is official available. Thanks for the great support.

Mike posted this 4 weeks ago

A version with a fix for this was made available a couple of days ago :)

  • Liked by
  • striker666de
striker666de posted this 4 weeks ago

oh, cool. i will test it. thank you

striker666de posted this 3 weeks ago

Ok, now the installation will work.

Only the minecraft first start will not work... Manual start with amp user will work as expected... i had append the java memory to 6144MB but the monitor at the status page will bump up to +2000MB higher than the given memory here.

the htop at the server shows only peak an peak of 500-700MB mem... Tried with other Minecraft versions and mod-versions, always same behaviour....

any idea?

16:09:21
Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD'
main/WARN 16:09:22
Ambiguity between arguments [teleport, destination]: and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
Ambiguity between arguments [teleport, location]: and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
Ambiguity between arguments [teleport, location]: and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
Ambiguity between arguments [teleport, targets]: and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
Ambiguity between arguments [teleport, targets, location]: and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
main/INFO 16:09:22
[STDERR]: java.lang.OutOfMemoryError: unable to create new native thread
[STDERR]: at java.lang.Thread.start0(Native Method)
[STDERR]: at java.lang.Thread.start(Thread.java:717)
[STDERR]: at xw$1.<init>(SourceFile:81)
[STDERR]: at xw.<init>(SourceFile:77)
[STDERR]: at net.minecraft.server.Main.main(SourceFile:116)
Console 16:09:22
Exception in thread "main"
16:15:23
Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:717)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1376)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.rollover(RollingFileManager.java:378)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.rollover(RollingFileManager.java:278)
at org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy.initialize(OnStartupTriggeringPolicy.java:83)
at org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy.initialize(CompositeTriggeringPolicy.java:53)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.initialize(RollingFileManager.java:127)
at org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender$Builder.build(RollingRandomAccessFileAppender.java:122)
at org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender$Builder.build(RollingRandomAccessFileAppender.java:52)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:952)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:892)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:508)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:232)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:244)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:545)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:617)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:634)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:229)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
at net.minecraft.server.Main.<clinit>(SourceFile:35)</clinit></init></init>

Mike posted this 3 weeks ago

You got an out of memory error. You need to increase the java heap size.

striker666de posted this 2 weeks ago

already did over the AMP interface... But if im set it to 8gb, then the instance will bump up to 10gb usage and will throw an out of memory error...

if im set it to 4gb, then it will bump up to 6g.... does not matter how much gb is will try, it will always bump um to +25% of setted limitation...

if im starting minecraft manualy with params it does not happen. Where can i see / edit the java arguments that amp will use?

Mike posted this 2 weeks ago

On the support tab.

striker666de posted this 2 weeks ago

thanks.. If im logging in with "sudo -l amp" and will start the same executable with same options it will work... After clicking "start" under state, it will throw an out of memory exception...

its an fresh installed server, if you want i can give you temporarly access...

Field Value OS Linux Platform Ubuntu 18.04.4 LTS System Type x8664 Virtualization OpenVZ Module MinecraftModule Loaded Plugins FileManagerPlugin, EmailSenderPlugin, WebRequestPlugin, LocalFileBackupPlugin Application Name AMP Application Version 1.9.9.4 Release Stream Release Build Date 13/05/2020 00:17 InstanceID 86f3c2aa-7ae7-4897-83f6-3c7665b9f16f Last Executable /usr/bin/java Last Arguments -Xmx3096M -jar minecraftserver.jar nogui

Close