Instance failed to start

  • 1.1K Views
  • Last Post 4 weeks ago
  • Topic Is Solved
Sterminous posted this 4 weeks ago

To create instance I used command

./ampinstmgr -c srcds Gmod 0.0.0.0 8084 [License key] [password] +Core.Login.Username Sterminous +srcdsModule.SRCDS.ServerType Gmod +srcdsModule.SRCDS.Players 30 +srcdsModule.SRCDS.TickRate 66

Code from console

[root@cp AMP]# ./ampinstmgr -s Gmod
[Info] AMP Instance Manager v1.6.8.0 built 17/05/2018 19:03
[Debug] Release spec: Release - built by CUBECODERS/BuildBot on CCL-DEV
[Debug] Starting process /sbin/ldconfig
[Debug] Working Directory: /root/AMP
[Debug] Arguments: -p
[Debug] Started process with ID 6970
[Debug] Starting process /usr/bin/uname
[Debug] Working Directory: /root/AMP
[Debug] Arguments: -m
[Debug] Started process with ID 6971
[Debug] Loading instances from /root/.ampdata/instances.json...
[Debug] Loaded 1 instances.
[Info] Starting Instance: 'Gmod'
[Debug] Running /usr/bin/tmux -f /dev/null new-session -s "AMP_Gmod" -d "cd '/root/.ampdata/instances/Gmod' --; /root/.ampdata/instances/Gmod/AMP_Linux_x86_64 "
[Debug] Starting process /usr/bin/tmux
[Debug] Working Directory: /root/.ampdata/instances/Gmod
[Debug] Arguments: -f /dev/null new-session -s "AMP_Gmod" -d "cd '/root/.ampdata/instances/Gmod' --; /root/.ampdata/instances/Gmod/AMP_Linux_x86_64 "
[Debug] Starting process as user 'AMPUSER-Gmod'
[Debug] Started process with ID 6972
[Info] Waiting for AMP instance to start...
[Error] Failed to start AMP. Exit code was 1
[Info] This instance failed to start. Run './ampinstmgr LastLog Gmod' to view it's most recent log

LastLog Gmod:

[Info] AMP Instance Manager v1.6.8.0 built 17/05/2018 19:03
[Debug] Release spec: Release - built by CUBECODERS/BuildBot on CCL-DEV
[Debug] Starting process /sbin/ldconfig
[Debug] Working Directory: /root/AMP
[Debug] Arguments: -p
[Debug] Started process with ID 7239
[Debug] Starting process /usr/bin/uname
[Debug] Working Directory: /root/AMP
[Debug] Arguments: -m
[Debug] Started process with ID 7240
[Debug] Loading instances from /root/.ampdata/instances.json...
[Debug] Loaded 1 instances.
[Info] The AMP_Logs directory for this instance does not exist.

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

You're logged in as root rather than a proper AMP user. The install guide requires that you create and log in as a non-root user to use AMP.

Sterminous posted this 4 weeks ago

Now I'm getting that error. I reinstalled it properly this time and I'm trying to make ADS-Instance.

[Debug] Running command line: "ping -c 4 -I 0.0.0.0 google.com" from "/home/AMP/AMP"
ping: socket: Operation not permitted
[Info] Instance creation failed. The specified IP binding address (0.0.0.0) does not have a functioning internet connection (couldn't ping google.com) - please check the network settings for this address and try again.

Mike posted this 4 weeks ago

Try picking a specific IP address to bind AMP to rather than using 0.0.0.0. Although something may be wrong with your machine if you can't ping google from 0.0.0.0

Sterminous posted this 4 weeks ago

Thing is, when I ping it with root access, it works. I tried to ping command with the AMP account, got the same error "Operation not permitted" and with root account it works.

Sterminous posted this 4 weeks ago

Ping thing I got fixed, I had to reinstall iputils.

But now that same original problem is back, when I try to start that instance

[AMP@cp AMP]$ ./ampinstmgr -s ADS-Instance
[Info] AMP Instance Manager v1.6.8.0 built 17/05/2018 19:03
[Debug] Release spec: Release - built by CUBECODERS/BuildBot on CCL-DEV
[Debug] Starting process /sbin/ldconfig
[Debug] Working Directory: /home/AMP/AMP
[Debug] Arguments: -p
[Debug] Started process with ID 28776
[Debug] Starting process /usr/bin/uname
[Debug] Working Directory: /home/AMP/AMP
[Debug] Arguments: -m
[Debug] Started process with ID 28777
[Debug] Loading instances from /home/AMP/.ampdata/instances.json...
[Debug] Loaded 1 instances.
[Info] Starting Instance: 'ADS-Instance'
[Debug] Running /usr/bin/tmux -f /dev/null new-session -s "AMP_ADS-Instance" -d "cd '/home/AMP/.ampdata/instances/ADS-Instance' --; /home/AMP/.ampdata/instances/ADS-Instance/AMP_Linux_x86_64 "
[Debug] Starting process /usr/bin/tmux
[Debug] Working Directory: /home/AMP/.ampdata/instances/ADS-Instance
[Debug] Arguments: -f /dev/null new-session -s "AMP_ADS-Instance" -d "cd '/home/AMP/.ampdata/instances/ADS-Instance' --; /home/AMP/.ampdata/instances/ADS-Instance/AMP_Linux_x86_64 "
[Debug] Started process with ID 28778
[Info] Waiting for AMP instance to start...
[Error] Failed to start AMP. Exit code was 0
[Info] This instance failed to start. Run './ampinstmgr LastLog ADS-Instance' to view it's most recent log.

LastLog

[AMP@cp AMP]$ ./ampinstmgr LastLog ADS-Instance
[Info] AMP Instance Manager v1.6.8.0 built 17/05/2018 19:03
[Debug] Release spec: Release - built by CUBECODERS/BuildBot on CCL-DEV
[Debug] Starting process /sbin/ldconfig
[Debug] Working Directory: /home/AMP/AMP
[Debug] Arguments: -p
[Debug] Started process with ID 28963
[Debug] Starting process /usr/bin/uname
[Debug] Working Directory: /home/AMP/AMP
[Debug] Arguments: -m
[Debug] Started process with ID 28964
[Debug] Loading instances from /home/AMP/.ampdata/instances.json...
[Debug] Loaded 1 instances.
[Info] No logs could be found to view.

Sterminous posted this 4 weeks ago

It actually started the instance, it just said that error.

Close