By: Adrian Drummond user 25 Sep 2015 at 8:04 p.m. CDT

6 Responses
Adrian Drummond gravatar
Hello, Has anyone successfully installed Gluu on an AWS instance with Centos 6.5 and then stopped the instance? After I terminate and restart my instance, I have a new IP address and I can't access my Gluu server. I tried re-running the setup script and that didn't fixe the issue. My logs are below. Any suggestions would be appreciated :-) I am going to start from scratch and try to upload a video of my fresh installation next. Here is my setup_error.log [root@ip-172-31-16-26 community-edition-setup]# cat setup_error.log 00:47:58 09/26/15 Installing Gluu Server 00:49:23 09/26/15 Error writing salt 00:49:23 09/26/15 Traceback (most recent call last): File "./setup.py", line 1067, in make_salt f = open("%s/conf/salt" % self.tomcatHome, 'w') IOError: [Errno 2] No such file or directory: '/opt/tomcat/conf/salt' 00:49:23 09/26/15 ***** Error caught in main loop ***** 00:49:23 09/26/15 Traceback (most recent call last): File "./setup.py", line 1531, in <module> installObject.make_salt() File "./setup.py", line 1073, in make_salt sys.exit() SystemExit [root@ip-172-31-16-26 community-edition-setup]# Here is my setup_error.log [root@ip-172-31-16-26 community-edition-setup]# [root@ip-172-31-16-26 community-edition-setup]# [root@ip-172-31-16-26 community-edition-setup]# date Sat Sep 26 00:57:41 UTC 2015 [root@ip-172-31-16-26 community-edition-setup]# [root@ip-172-31-16-26 community-edition-setup]# [root@ip-172-31-16-26 community-edition-setup]# [root@ip-172-31-16-26 community-edition-setup]# cat setup.log 00:47:58 09/26/15 Removed ./setup.log 00:47:58 09/26/15 Removed ./setup_error.log 00:47:58 09/26/15 Installing Gluu Server 00:47:58 09/26/15 ./setup.properties Properties not found. Interactive setup commencing... 00:49:20 09/26/15 Checking properties 00:49:23 09/26/15 Running: /bin/mkdir -p /etc/gluu/config 00:49:23 09/26/15 Running: /bin/mkdir -p /etc/certs 00:49:23 09/26/15 Running: /bin/mkdir -p ./output 00:49:23 09/26/15 Running: /bin/mkdir -p /opt/gluu 00:49:23 09/26/15 Running: /bin/mkdir -p /opt/gluu/bin 00:49:23 09/26/15 Running: /bin/mkdir -p /home/tomcat/lib 00:49:23 09/26/15 Running: /bin/mkdir -p /var/ox/photos 00:49:23 09/26/15 Running: /bin/mkdir -p /var/ox/oxtrust/removed 00:49:23 09/26/15 Error writing salt 00:49:23 09/26/15 Traceback (most recent call last): File "./setup.py", line 1067, in make_salt f = open("%s/conf/salt" % self.tomcatHome, 'w') IOError: [Errno 2] No such file or directory: '/opt/tomcat/conf/salt' 00:49:23 09/26/15 ***** Error caught in main loop ***** 00:49:23 09/26/15 Traceback (most recent call last): File "./setup.py", line 1531, in <module> installObject.make_salt() File "./setup.py", line 1073, in make_salt sys.exit() SystemExit [root@ip-172-31-16-26 community-edition-setup]# Here is a last error the apache error_log file [Sat Sep 26 00:50:55 2015] [error] [client 172.31.16.26] File does not exist: /var/www/html/index.html Here is a last error the apache access_log file 172.31.16.26 - - [26/Sep/2015:01:04:08 +0000] "GET /index.html HTTP/1.1" 404 308 "-" "Java/1.7.0_79"

By Michael Schwartz Account Admin 25 Sep 2015 at 10:19 p.m. CDT

Michael Schwartz gravatar
Amazon AWS provides a public and private IP address to its clouds. While running the /install/community-edition-setup/setup.py script, use the Private IP address. Another hint: the hostname is very long. I think its better to use a shorter hostname. If you don't have DNS running somewhere, update the hosts file on your local computer also (so your browser can find the re-direct).

By Adrian Drummond user 28 Sep 2015 at 6:33 a.m. CDT

Adrian Drummond gravatar
Thank you, I will give this a try. :-)

By Adrian Drummond user 28 Sep 2015 at 7:34 p.m. CDT

Adrian Drummond gravatar
This did not work for me. I continue to get an error when I re-run the setup script to update the installation. 00:49:23 09/26/15 Error writing salt

By Adrian Drummond user 28 Sep 2015 at 7:35 p.m. CDT

Adrian Drummond gravatar
This may seem like a silly question, but should the Gluu server be running when the setup script is run? I seems so from these instructions: http://www.gluu.org/docs/admin-guide/deployment/centos/ The instructions say to start the server and then to run the setup script.

By Mohib Zico Account Admin 29 Sep 2015 at 4:07 p.m. CDT

Mohib Zico gravatar
>> This may seem like a silly question, but should the Gluu server be running when the setup script is run? Yes. Starting gluu-server means.. starting the container. And setup script is inside container and need all components to be ready to answer whenever it calls them.

By Adrian Drummond user 01 Oct 2015 at 12:48 a.m. CDT

Adrian Drummond gravatar
thank you