Hi experts,

I tried to add a linux host to my existing cloud running on Windows 2008 Server. I downloaded the 1.0.0.3683 Linux version and ran the dbcloudaddhost package as a root user. Here is the result:

root@ubuntu:/home/mmueller/Downloads# ./dbcloudaddhost 
Connecting to https://192.168.1.114:443/dbcloud...
Login: admin
Password: 
Downloading install files.
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/bin64
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/lib64
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/res
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/res/language
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/res/language/de
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/res/language/en
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/res/language/fr
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/res/language/ja
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/res/language/zh
Creating directory /tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts
/tmp/.SQLAnywhere//SAOnDemandInstall/bin64/csconvert
/tmp/.SQLAnywhere//SAOnDemandInstall/bin64/dbinstall
/tmp/.SQLAnywhere//SAOnDemandInstall/bin64/dbupdhlpr
/tmp/.SQLAnywhere//SAOnDemandInstall/bin64/dbversion
/tmp/.SQLAnywhere//SAOnDemandInstall/cloud_license_ja.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/cloud_license.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/dbcloud.32.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/dbcloud.64.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/dbcloud.noarch.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/encryption.32.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/encryption.64.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/langres.noarch.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/lib64/libdbicu12_r.so
/tmp/.SQLAnywhere//SAOnDemandInstall/lib64/libdbicu12.so
/tmp/.SQLAnywhere//SAOnDemandInstall/lib64/libdbicudt12.so
/tmp/.SQLAnywhere//SAOnDemandInstall/lib64/libdbtasks12_r.so
/tmp/.SQLAnywhere//SAOnDemandInstall/lib64/libdbtasks12.so
/tmp/.SQLAnywhere//SAOnDemandInstall/lib64/libsbgse2.so
/tmp/.SQLAnywhere//SAOnDemandInstall/readme
/tmp/.SQLAnywhere//SAOnDemandInstall/readme_de.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/readme_en.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/readme_fr.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/readme_ja.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/readme_zh.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dbicudt12.dat
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgde12_iso_1.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgde12_utf8.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgen12.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgfr12_iso_1.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgfr12_utf8.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgja12_eucjis.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgja12_sjis.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgja12_utf8.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgzh12_cp936.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgzh12_eucgb.res
/tmp/.SQLAnywhere//SAOnDemandInstall/res/dblgzh12_utf8.res
/tmp/.
SQLAnywhere//SAOnDemandInstall/res/language/all_langs_icon_resources_utf8.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/res/language/common.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/language/de/messages.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/res/language/en/messages.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/res/language/fr/messages.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/res/language/ja/messages.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/res/language/zh/messages.txt
/tmp/.SQLAnywhere//SAOnDemandInstall/res/migrator.jar
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/array.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/checkupdates.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/cleanup.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/client_flow.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/cmdline.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/component_spt.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/config.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/console_ui.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/csconvert.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/csh_support.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/dbcloud_flow.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/dbcloud.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/deploy_flow.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/deploy_wizard.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/directory.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/diskspace.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/distro.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/doc_flow.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/generated.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/installicon.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/interactive_ui.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/language.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/license.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/licenser_flow.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/links.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/options.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/os.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/package.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/panel.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/platform.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/populate_menus.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/registration.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/rollback.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/runinstall.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/samon_flow.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/samon.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/sh_support.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/shortcuts.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/sighndlr.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/silent_ui.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/standard_flow.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/summary.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/ui.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/upgrade.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/user.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/utility.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/res/scripts/versioning.sh
/tmp/.SQLAnywhere//SAOnDemandInstall/root-id.pem
/tmp/.SQLAnywhere//SAOnDemandInstall/setup
/tmp/.SQLAnywhere//SAOnDemandInstall/sqlany_base.noarch.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/sqlany.32.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/sqlany.64.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/synch.32.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/synch.64.tic
/tmp/.SQLAnywhere//SAOnDemandInstall/synch.noarch.tic
Running Linux installer.
SQL Anywhere Support Utility Version 12.0.1.3680
SQL Anywhere Service Utility 12.0.1.3680
Creating SQL Anywhere service: dbcloudagent1.0.0.3683 File: /etc/init.d/SA_dbcloudagent1.0.0.3683
 Adding system startup for /etc/init.d/SA_dbcloudagent1.0.0.3683 ...
   /etc/rc0.d/K80SA_dbcloudagent1.0.0.3683 -> ../init.d/SA_dbcloudagent1.0.0.3683
   /etc/rc1.d/K80SA_dbcloudagent1.0.0.3683 -> ../init.d/SA_dbcloudagent1.0.0.3683
   /etc/rc4.d/K80SA_dbcloudagent1.0.0.3683 -> ../init.d/SA_dbcloudagent1.0.0.3683
   /etc/rc6.d/K80SA_dbcloudagent1.0.0.3683 -> ../init.d/SA_dbcloudagent1.0.0.3683
   /etc/rcS.d/K80SA_dbcloudagent1.0.0.3683 -> ../init.d/SA_dbcloudagent1.0.0.3683
   /etc/rc2.d/S60SA_dbcloudagent1.0.0.3683 -> ../init.d/SA_dbcloudagent1.0.0.3683
   /etc/rc3.d/S60SA_dbcloudagent1.0.0.3683 -> ../init.d/SA_dbcloudagent1.0.0.3683
   /etc/rc5.d/S60SA_dbcloudagent1.0.0.3683 -> ../init.d/SA_dbcloudagent1.0.0.3683
Starting SQL Anywhere "dbcloudagent" service: dbcloudagent1.0.0.3683
 * 
Waiting for agent to start.
Failed to start agent.

root@ubuntu:/home/mmueller/Downloads# ps -ef | grep cloud
root     11566     1  0 11:10 ?        00:00:00 /opt/saondemand100/sa-linux64-x64-12.0.1.3680-1.0.0.3683/bin64s/../bin64/dbcloudagent /opt/saondemand100/sa-linux64-x64-12.0.1.3680-1.0.0.3683/bin64/dbcloudagent -ud
root     14420  3940  0 11:12 pts/0    00:00:00 grep --color=auto cloud

My Linux is Ubuntu 12.04.

As you can see there is a dbcloudagent running, but the installer fails with "Failed to start agent".

Any idea what to do?

Cheers,

Markus

asked 17 Jul '12, 10:38

Markus%20M%C3%BCller's gravatar image

Markus Müller
76123
accept rate: 0%

edited 17 Jul '12, 11:36

Phil%20Mitchell's gravatar image

Phil Mitchell
1.9k1831

We would need to see the contents of the logs directory within your data directory (likely /opt/saondemand100/data if you went with the defaults). The files that end with .etd can be read using /opt/saondemand100/sa-linux64-x64-12.0.1.3680-1.0.0.3683/bin64s/dbmanageetd. Before you post anything here, make sure you strip out any personal information that you don't want to share with the world.

(17 Jul '12, 10:51) Phil Mitchell

Thanks Phil, I will mail the logfile to yu since I cant upload files yet.

(17 Jul '12, 11:16) Markus Müller

It appears as though (as you indicated in your email) your Linux machine cannot resolve the host name of your Windows machine. We do not determine the agent to be running until after it has successfully contacted the cloud primary and registered itself.

Your proposed solution of adjusting your hosts file will probably resolve your problem, but keep in mind that all machines in your cloud must be able to contact all others. So as you scale your cloud out, you may need to add more entries to your hosts file.

Fixing the DNS lookup is certainly a more maintainable solution. You might also consider NIS (the Windows way of resolving host names) by adding it to the "hosts:" line in /etc/nsswitch.conf.

Once you have resolved your DNS issues, I would recommend running the uninstaller (/opt/saondemand100/uninstall.sh) and re-running dbclouddownloader.

For posterity, here is the relevant entry from the agent log (sanitized, of course):

[2012-07-17T16:57:19.065+02:00] dbcloudagent_poller_info  message=[GET https://***:443/dbcloud(primary)/agents(name='***')?machine_name=***&tcpip_addresses=***&timestamp=2012-07-17T14:57:19.056&id=***]
[2012-07-17T16:57:24.268+02:00] dbcloudagent_poller_http_error  message=[Error making HTTPS connection] code=4 reason=[Cannot resolve hostname or bad IP address]
[2012-07-17T16:57:24.268+02:00] dbcloudagent_poller_info  message=[No server reachable]
permanent link

answered 17 Jul '12, 11:29

Phil%20Mitchell's gravatar image

Phil Mitchell
1.9k1831
accept rate: 27%

edited 17 Jul '12, 11:34

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×61
×41
×6

question asked: 17 Jul '12, 10:38

question was seen: 1,284 times

last updated: 17 Jul '12, 11:36