Error looking up details for current user (Nethserver 6.9)

  • 378 Views
  • Last Post 16 July 2017
lorentedford posted this 15 July 2017

Greetings everyone I decided today i would install amp and give it another shot on my web server.. I use NethServer which is running centos 6.8 or 6.9 Below is a list of errors i get..

./ampinstmgr CreateInstance ADS ADSInstance 0.0.0.0 8081 KEY Password +Core.Login.Username NameUsed

[Info] AMP Instance Manager v1.4.7.2
[Debug] Loading instances from /var/lib/nethserver/home/amp/.ampdata/instances.json...
[Debug] /var/lib/nethserver/home/amp/.ampdata/instances.json does not exist, using empty dataset.
[Info] Checking licence key...
[Info] Waiting...
[Info] Licence Type:  AMP Professional
[Info] Current Usage: 0
[Info] Creating Instance: 'ADSInstance'
[Info] Performing Step: Creating Environment
[Error] Couldn't lookup user details for current user. Looking for user with ID of 5015
Value cannot be null.
Parameter name: path1
[Error] Instance creation failed.
[Error]   at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <c22c844a71654b4db288e51e5f6cb864>:0
  at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in <c22c844a71654b4db288e51e5f6cb864>:0
  at System.Threading.Tasks.Task`1[TResult].get_Result () [0x0000f] in <c22c844a71654b4db288e51e5f6cb864>:0
  at InstanceManagerCLI.Core.CreateInstance (System.String Module, System.String InstanceName, System.String IPBinding, System.Int32 PortNumber, System.String LicenceKey, System.String AdminPassword, System.Collections.Generic.Dictionary`2[TKey,TValue] ProvisionSettings) [0x002ce] in <9caf236f98974ae0828c85427a6b1eb1>:0

To learn more about Neth Server you can find the information here.. https://media.readthedocs.org/pdf/nethserver/v6.8/nethserver.pdf

lorentedford posted this 16 July 2017

Ok I figured it out.. You MUST FORCE USER CREATION BY COMMAND LINE!!!!!! This is very important! You have to end up with a home location of: /home/AMP

So here is the steps for my installation on Neth Server Centos 6.8-6.9

sudo yum install glibc.i686 libstdc++.i686 screen unzip git wget

If your logged in as root make sure you take sudo off on the front end of this command..

Now because NethServer manages epel differently than most distros you need to run the following!

yum --enablerepo=epel install tmux socat

I will try to post the directions of installation in the Neth Server How-To Section at some point..

Manage the ip tables using your webfront end in Neth make sure port 8081 is open.. Remember never use port 8080 because of tomcat and other various stuff on that port..

Now Here are the big steps!!!!!

useradd -d /home/AMP -m AMP

Do NOT USE THE WEB FRONT IN TO CREATE THE USER!!!

Now you need to put a password for the user

passwd AMP

Installing amp.. Same as everyone else in this point..

mkdir ~/AMP
cd ~/AMP
wget http://cubecoders.com/Downloads/ampinstmgr.zip
unzip ampinstmgr.zip
rm -i ampinstmgr.zip

To show Module list

./ampinstmgr ShowModuleList

Now Remember above the port info?

./ampinstmgr CreateInstance ADS ADSInstance 0.0.0.0 8081 [LicenceKey] [Password] +Core.Login.Username [Username]
./ampinstmgr StartInstance ADSInstance

The above is the steps that got me working in NethServer this is untested in Neth 7 the most recent os.. http://community.nethserver.org/t/installation-of-amp-on-neth-server-6/7392

Close