BrianGilbert / OSXAegirInstaller

This script installs aegir on OSX using Homebrew
30 stars 10 forks source link

*.ld gives 404 not found #7

Closed uzkhan closed 10 years ago

uzkhan commented 10 years ago

Hei Brian, firstly thanks for writing the script. I ran it and after all was done and some nginx configuration to make it work, when i tried going to xyz.ld, it would keep throwing this 404 not found error. All the files seem to be there but I guess some link is missing? Where precisely are the *.ld mappings defined? Any tips on how to go around fixing that. Thanks.

BrianGilbert commented 10 years ago

It's most likley that your network device wasn't one of the common names that I'm able to set automatically, check that your network settings have the DNS server set to 127.0.0.1

Please close the issue if that resolves it for you.

uzkhan commented 10 years ago

Hei Brian, the DNS is already set to 127.0.0.1. However I noticed that when I tried to start nginx while it was already running, it threw this warning: 'nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)'

I am guessing it should be running on 127.0.0.1 and if so, where exactly do we configure it for nginx. The nginx config file after install didnt seem to have any such setting. In fact, it wasn't running at all and I had to add the following lines to the config to make it work.

server { listen 80; server_name localhost;

location / {
    root   html;
    index  index.html index.htm;
} 
error_page 500 502 503 504 /50x.html;
location = /50x.html {
    root html;
}

}

BrianGilbert commented 10 years ago

based on the error you already had a service running on port 80..

0.0.0.0 means all IP addresses on the machine.

can you let me know what version of nginx got installed.

uzkhan commented 10 years ago

ah, ok and in this case it was nginx itself. the version of nginx is 1.4.1. I must mention here that going to localhost, I do get a message saying nginx is up and running. Its only that when I try going to aegir.ld or xyz.ld that I get a '404 not found'.

uzkhan commented 10 years ago

So I bumped into your walkthrough on youtube and noticed that my /etc/named.conf was missing the Google DNS forwarder setting along with zone 'ld' settings. I also had to manually create rndc.key and I am still not sure where you copied those settings in db.ld from. I am guessing I messed up the script setup at some point?

uzkhan commented 10 years ago

I tried reinstalling hostmaster and got this error: Drush was not able to start (bootstrap) the Drupal database. [error] Hint: This may occur when Drush is trying to:

Drush was attempting to connect to: Drupal version : 6.28
Site URI : aegir.ld
Database driver : mysqli
Database username : aegirld
Database name : aegirld
Default theme : garland
Administration theme : garland
PHP executable : /usr/bin/php
PHP configuration : /usr/local/etc/php/5.3/php.ini
PHP OS : Darwin
Drush version : 6.1.0
Drush configuration : /private/var/aegir/hostmaster-6.x-2.x-dev/ sites/aegir.ld/drushrc.php
/private/var/aegir/hostmaster-6.x-2.x-dev/ sites/all/drush/drushrc.php
Drush alias files : /Users/uzair.khan/.drush/hostmaster.alias. drushrc.php
/Users/uzair.khan/.drush/platform_hostmast er.alias.drushrc.php
/Users/uzair.khan/.drush/server_localhost. alias.drushrc.php
/Users/uzair.khan/.drush/server_master.ali as.drushrc.php
Drupal root : /var/aegir/hostmaster-6.x-2.x-dev
Site path : sites/aegir.ld
File directory path : sites/aegir.ld/files
Temporary file : sites/aegir.ld/private/temp
directory path

Drush command terminated abnormally due to an unrecoverable error. [error] Error: Call to undefined function db_query() in /Users/uzair.khan/.drush/provision/platform/drupal/install_6.inc, line 22 The external command could not be executed due to an application error.[error] Drush was not able to start (bootstrap) the Drupal database. [error] Hint: This may occur when Drush is trying to:

Drush was attempting to connect to: Drupal version : 6.28
Site URI : aegir.ld
Default theme : garland
Administration : garland
theme
PHP executable : /usr/bin/php
PHP configuration : /usr/local/etc/php/5.3/php.ini
PHP OS : Darwin
Drush version : 6.1.0
Drush configuration : /private/var/aegir/hostmaster-6.x-2.x-dev/s ites/aegir.ld/drushrc.php
/private/var/aegir/hostmaster-6.x-2.x-dev/s ites/all/drush/drushrc.php
Drush alias files : /Users/uzair.khan/.drush/hostmaster.alias.d rushrc.php
/Users/uzair.khan/.drush/platform_hostmaste r.alias.drushrc.php
/Users/uzair.khan/.drush/server_localhost.a lias.drushrc.php
/Users/uzair.khan/.drush/server_master.alia s.drushrc.php
Drupal root : /var/aegir/hostmaster-6.x-2.x-dev
Site path : sites/aegir.ld
Deleting /var/aegir/hostmaster-6.x-2.x-dev/sites/aegir.ld/files/css [success] directory successful. Deleting /var/aegir/hostmaster-6.x-2.x-dev/sites/aegir.ld/files/ctools [success] directory successful. . . . The drush command '@hostmaster provision-verify' could not be found. [error] Run drush cache-clear drush to clear the commandfile cache if you have installed new extensions. A Drupal installation directory could not be found [error]

BrianGilbert commented 10 years ago

The script is currently not designed for re-installation over the top of an existing borked install install. I don't have huge motivation to fix that at this stage as I have a working install, and I have a lot of other stuff on at the moment, I will at some stage, I just don't know when.

What you probably need to do is run a few commands before trying to run the hostmaster parts again: rm -rf ~/.drush/provision rm -rf /var/aegir/* drush cc drush

From memory I think that is all. If you can report back that would be great as it will help when I do get around to implementing some checking.

uzkhan commented 10 years ago

sorry, i got busy with some other stuff. i removed all that stuff and tried again but still the same 'Drush was not able to start (bootstrap) the Drupal database. [error]'

BrianGilbert commented 10 years ago

Script now has uninstall support, just run it again and it will ask if you want to uninstall

chrstnrql commented 9 years ago

Has anyone fixed the issue of 404 when accessing aegir.ld ? I've installed it and this error is also happening to me.

Thanks

BrianGilbert commented 9 years ago

@chris-ti-an check the network settings for your devices that DNS is set to 127.0.0.1

chrstnrql commented 9 years ago

I'm on my wifi. My DNS is set to 127.0.0.1. It's still showing the 404 error. Thanks for the reply

BrianGilbert commented 9 years ago

@chris-ti-an please upload your install logfile to a new issue