AMP configuration failed with return code 17

OS Name/Version: Debian 11

Product Name/Version: (Always use the full version number - not ‘Latest’)
AMP version 2.3.3.0 (Triton)

Problem Description:
Hello, I am in the process of installing amp to a newly mounted directory. Unfortunately I get the return code 17 as error. I tried to find out what this means, but the search function did not help me.
Can you tell me what the exit code means?
The logfiles I have found are unfortunately uninformative.

Actions taken to resolve so far:

  • mounted new home Directory
  • gave 775 rights to amp user
  • ampinstmgr -c ads ADS03 0.0.0.0 8080 *** jkkopp ***
    => [Error] Configuration Failed: AMP configuration failed with return code 17

[10:13:27] [Core Warning]         : Specified password is very weak. Change it ASAP.
[10:13:28] [Core Warning]         : Current time zone is set to CET - Servers should ideally be UTC to avoid time-zone related issues
[10:13:28] [Core Info]            : OS: Linux / x86_64
[10:13:28] [Core Info]            : CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (4C/8T)
[10:13:28] [Core Info]            : AMP Instance ID: 3759125e-0d57-4110-bb63-42287d25a8b1
[10:13:28] [Core Info]            : Performing first-time setup for this instance, please wait...

Thank you for your support.

image

1 Like

You shouldn’t move the home directory - if you want to change where AMP stores data, there is a proper procedure: Relocating the AMP Datastore · CubeCoders/AMP Wiki · GitHub

I reseted the folders to the beginning but ther is no change.

>amp@srv01:~$ ampinstmgr -p
[Info] AMP Instance Manager v2.3.2.12 built 05/05/2022 18:14
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Upgrading instance ADS02
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-2330.zip
[Info] Upgrade successful

amp@srv01:~$ ampinstmgr -c ads ADS04 0.0.0.0 8081 *** jkkopp **
[Info] AMP Instance Manager v2.3.2.12 built 05/05/2022 18:14
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Testing internet connection...
[Info] Checking licence key...
[Info] Licence Type:  AMP Professional
[Info] Current Usage: 1
[Info] Creating Instance: 'ADS04'
[Info] Performing Step: Creating Environment
[Activity] Audit: Unknown/None [CreateInstance] Created instance ADS04 using ads module on port 8081.
[Info] Performing Step: Downloading AMP
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-2330.zip
[Info] Performing Step: Unpacking
[Info] Performing Step: Configuring AMP
[09:51:03] [Core Info]            : Starting AMP version 2.3.3.0 (Triton), built 24/05/2022 15:04
[09:51:03] [Core Info]            : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[09:51:03] [Core Warning]         : Specified password is very weak. Change it ASAP.
[09:51:04] [Core Warning]         : Current time zone is set to CET - Servers should ideally be UTC to avoid time-zone related issues
[09:51:04] [Core Info]            : OS: Linux / x86_64
[09:51:04] [Core Info]            : CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (4C/8T)
[09:51:04] [Core Info]            : AMP Instance ID: b9b95d4c-d774-4b35-90eb-f77b23c26b77
[09:51:04] [Core Info]            : Performing first-time setup for this instance, please wait...
[Error] Configuration Failed: AMP configuration failed with return code 17
[Info] Instance creation failed. AMP configuration failed with return code 17
amp@srv01:~$

Is there anything else on the VM? If not blow it away and start again, I can’t make any assumptions about what changes you’ve made so it’s going to be difficult to track the issue down.

Also you should use GetAMP to install AMP rather than creating an ADS instance yourself.

Thank you for your support Mike! 10/10.

I solved my problem kind of different.

My problem was:
I couldnt change my home directory on new mounted lvm device cause of reasons. (Exit Code 17)
I tried:

And a manually relocation of the homedirectory of the user amp.

The Solution:
I did not creat the ADS instance by the GetAMP script, cause this creates the home dir at /home/amp (but there is not enought space left for my ark cluster ~1000G)
(Link: GetAMP)

  • I installed the ampinstmgr app manually

bash <(wget -qO- https://cubecoders.com/getamp.sh) installAMP

  • created the user amp manually with new relocated homedir
useradd -m -d /var/amp/amphome amp
passwd amp

then i relogged with amp and installed the ads instance with

ampinstmgr -quick [username] [**passwd**] 0.0.0.0 8080

now my Instance is working so far.

I hope so this is a way which is in the sence of CodeCubers.

regards,

jkkopp

You should ideally not relocate the home directory but symlink just the datastore.

This didnt work, i tried it first. :slightly_frowning_face:

When i did this there was no posibility to start the ADS01 instance, and there was no logfile created.