2

I have installed the latest Landscape Dedicated Server packages on a Ubuntu 14.04 LTS VM on Azure and was successfully greeted by the initial setup. However, after entering name, e-mail, password, and clicking OK, it redirected me to app.storageacct.j10.internal.cloudapp.net/new-standalone-user instead of the next step. Is there a change I need to make in the Landscape config to get the redirect to function properly?

2 Answers2

0

If Deploying with the bundle, you can do the following:

juju set apache2 servername=<hostname-you-want>

This should in turn set the root_url correctly in landscape (monitor juju debug-log after you do that to see the results).

If installing the landscape-server-quickstart package directly, it's a bit more involved, and will mean you need to visit the settings page on your account. Try browswing to something like:

https://<server>/account/standalone/standalone-settings

directly and enter in the correct URL for your site.

dpb
  • 6,989
  • 1
  • 34
  • 60
  • Hi dpb, thanks for the feedback. I actually didn't do the charm install, I just added the ppa and installed the packages. I'll blow away the current VM, recreate, and install using juju. – Joshua Blair May 11 '15 at 23:02
  • @JoshuaBlair: It should still work with the package. If you feel like going back and debugging, I'd be glad to help you look at it. If you do, please post the logs in /var/log/landscape-server, specifically the appserver log would be good to see (like `cat /var/log/landscape-server/*appserver* | pastebinit`). – dpb May 12 '15 at 00:46
  • I actually didn't blow it away yet so I'll try the latter option you provided and see if that gets me anywhere. – Joshua Blair May 12 '15 at 15:26
  • Here's the pastebin: http://paste.ubuntu.com/11102169/ – Joshua Blair May 12 '15 at 21:18
  • Can you clear up a couple things for me -- 1) how does this hostname relate to what you initially access the page at? 2) What steps did you follow to install landscape originally? – dpb May 12 '15 at 22:27
  • 1) I did not know the long host name until after provisioning. It relates to it in the sense that how I access it currently is stf-landscape.cloudapp.net or landscape.seventwofive.com (CNAME to the cloudapp address). 2) I provisioned the Ubuntu 14.04 image on Azure, added the Landscape PPA, then installed the package. – Joshua Blair May 13 '15 at 00:14
  • @JoshuaBlair: OK Thanks, some ideas: 1) Try accessing via the IP address directly. 2) Modify your /etc/hosts file adding the internal hostname of this instance "app.storageacct.j10.internal.cloudapp.net", tying that to the public ip address. This should allow you to reach the next page. Once inside landscape, you can change the "Root Url" under "LDS Settings" Right on the first page. – dpb May 13 '15 at 04:53
  • First, thank you for your willingness to help me troubleshoot this. I tried what you mentioned above and there was no difference and the errors appear to be the same. I also tried adding the instance hostname to my local hosts file (because I was unsure of which you were speaking) and went to a an "Unauthorized A server error occurred page." I also don't want to waste too much of your time so I am going to try the juju route tomorrow as it seems like setting the root URL is the key to solving this. – Joshua Blair May 13 '15 at 05:20
0

I suggest to set the hostname of the instance to something that you can resolve to from your laptop, before installing the landscape-server-quickstart package. The package uses whatever "hostname -f" returns as the root url, and that sticks for life.

What I do when I deploy to local containers, for example, which have the same problem, is to ssh in, set the right hostname in /etc/hostname and reboot it. Then I install the package.

Andreas Hasenack
  • 3,065
  • 1
  • 16
  • 17