By: Michael Evanson user 17 Apr 2015 at 3:15 p.m. CDT

6 Responses
Michael Evanson gravatar
I am trying to run a scripted installation of CE 2.1 using a predetermined setup.properties file. I have already run the rpm install of gluu-server and am logged into the running service. I then cd into /install/community-edition-setup and I am trying to run this command (also with the apropo output): GLUU.[root@ce community-edition-setup]# ./setup.py -f ./setup.properties.last -n Ooops... file not found for setup properties. Installing Gluu Server... For more info see: ./setup.log ./setup_error.log ** All clear text passwords contained in ./setup.properties.last. Enter IP Address [172.31.29.246] : ^C It has indicated that it can't find the setup.properties.last file. Here is the ls -l of this directory. GLUU.[root@ce community-edition-setup]# ls -l total 164 -rw-r--r-- 1 root root 1071 Mar 29 10:57 LICENSE -rw-r--r-- 1 root root 10045 Mar 29 10:57 Properties.py -rw-r--r-- 1 root root 8224 Apr 17 19:54 Properties.pyc -rw-r--r-- 1 root root 149 Mar 29 10:57 README.md -rw-r--r-- 1 root root 5 Mar 29 10:57 VERSION -rw-r--r-- 1 root root 3430 Mar 29 10:57 genSchemaMarkdown.py -rw-r--r-- 1 root root 13662 Mar 29 10:57 ldif.py drwxr-xr-x 2 root root 4096 Apr 17 19:48 output -rw-r--r-- 1 root root 214 Apr 17 20:08 setup.log -rw-r--r-- 1 root root 4887 Apr 17 20:02 setup.properties.last -rw-r--r-- 1 root root 1600 Mar 29 10:57 setup.properties.sample -rwxr-xr-x 1 root root 67292 Mar 29 10:57 setup.py -rw-r--r-- 1 root root 41 Apr 17 20:08 setup_error.log drwxr-xr-x 10 root root 4096 Apr 17 19:48 static drwxr-xr-x 2 root root 4096 Apr 17 19:48 templates -rw-r--r-- 1 root root 6896 Mar 29 10:57 update.sh As you can see I have already copied this file over. Is there something that I am missing? Thanks

By Mohib Zico staff 18 Apr 2015 at 10:21 a.m. CDT

Mohib Zico gravatar
>> GLUU.[root@ce community-edition-setup]# ./setup.py -f ./setup.properties.last -n Michael, It sounds interested... I am not sure but what you are trying to achieve again with this command? You installed Gluu-server once and again you are trying to run setup script over your existing installation? Please correct me if I am wrong.... according to command: run `setup.py` + file location `setup.properties.last` + `-n`

By Michael Evanson user 20 Apr 2015 at 2:55 p.m. CDT

Michael Evanson gravatar
I tried running the command that you suggested and it still isn't installing based on the setup.properties I am specifying and it isn't working interactively. Here is the output: GLUU.[root@ce community-edition-setup]# ./setup.py ./setup.properties.last -n Installing Gluu Server... For more info see: ./setup.log ./setup_error.log ** All clear text passwords contained in ./setup.properties.last. Enter IP Address [172.31.29.246] : ^CGLUU.[root@ce community-edition-setup]# To clarify, I am actually trying to upgrade the server as per this ticket: https://support.gluu.org/view/maintenance/export-and-import-for-gluu-update/1758 I am trying to get it to do it scripted and am testing it on a test server instead of doing it on live so that I can get it to upgrade during scheduled downtime during non-peak hours. I am following the instructions based on your install documentation for using the setup.properties.last file here: http://www.gluu.org/docs/admin-guide/installation/ubuntu/ I know this page is referring to the ubuntu install, but after the rpm/deb install of the binaries both need to run the setup.py and this page is the only one that talks about using the setup.properties.last file. However this setup.py script doesn't seem to see the file that I have specified.

By Mohib Zico staff 20 Apr 2015 at 3:15 p.m. CDT

Mohib Zico gravatar
>> I tried running the command that you suggested I didn't suggest any command. >> GLUU.[root@ce community-edition-setup]# ./setup.py ./setup.properties.last -n I can't understand your command....

By Michael Evanson user 20 Apr 2015 at 3:23 p.m. CDT

Michael Evanson gravatar
Look. I am trying to run setup.py without getting prompted for input. As it says here http://www.gluu.org/docs/admin-guide/installation/ubuntu/ : > If you want to script the installation of the Gluu Server, user the -f option or just save the properties file as setup.properties and it will be automatically detected. Also use the -n option to suppress the interactive confirmation to proceed. For example, to re-run the last installation: > > ./setup.py -n -f setup.properties.last But when I run the command, it still prompts me for input. I am trying to run the install with the same settings as my last install, so that is why I am using the setup.properties.last file. This is a fresh install thought. I just want to set it up using the same settings as before. And I am trying to script this, so I NEED it to not prompt me for input.

By Mohib Zico staff 21 Apr 2015 at 8:19 a.m. CDT

Mohib Zico gravatar
Oh ok... I never tried this. Forwarded this ticket to the team; someone else might help.

By Mohib Zico staff 07 May 2015 at 11:03 a.m. CDT

Mohib Zico gravatar
Hi Michael, We had a chance to check the scripted Gluu Server installation. Please feel free to test... after your confirmation and testing, we will update our doc if required. Here is what we did: 1. From an installed Gluu Server, we saved `setup.properties.last`. 2. Uninstalled the existing Gluu Server installation. 3. Got a new VM. 4. Ran all commands till "service gluu-server login" from CE installation guide. 5. Copied #1 `setup.properties.last` inside new server's /install/community-edition-setup/ 6. Renamed `setup.properties.last` to `setup.properties` 7. Ran `./setup.py` 8. That's it. Got information of my old server from previous `setup.properties.last` ( renamed `setup.properties` ) and installation completed successfully.