After platform verification all sites 404, Apache won't restart, SSL error

Events happening in the community are now at Drupal community events on www.drupal.org.
butler360's picture

First, I set my default platform because I had this error: http://drupal.org/node/724182

Then I went to add some aliases to a site. Then during verification, it kept trying to auto-refresh and never did. So I tried refreshing the page. It gave me a 404 error. Then I tried other sites and it did the same thing. So now all of my sites, and even phpmyadmin, are offline, even though the server appears fine (FTP and SSH login works, I can do drush stuff).

One thing I may have done, but I don't remember (it was very late last night), is setting the port to 443 on the site when adding the aliases.

Apache error log tells me this: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile]

I checked up on that error and people said apache couldn't find the SSL certs, so I checked that they were there and they still are, just like they were before when it was working.

This is with the new alpha6.

Edit: I should add that if I edit out the Aegir include line in apache2.conf, the sites don't work of course but I can access phpmyadmin.

Comments

The problem came from

butler360's picture

The problem came from selecting port 443 for a site in the frontend. During the verification, all of a sudden all of your sites go down because apache won't start back up again.

But with the help of a few people in IRC, I've resolved the issue. I'll detail here how I did it so anyone else running across the same problem can benefit (not that it's a widespread problem, apparently).

First, in etc/apache2 comment out "Include /var/aegir/config/apache.conf" in apache2.conf
Then reset apache, "/etc/init.d/apache2 restart"
Now you can access phpmyadmin, find the database for your aegir site and browse to the "hosting_site" table, then change SSL and SSL Redirect from 1 to 0. Save the change.
Uncomment the include in apache2.conf.
First backup and then delete everything from /var/aegir/config/vhost.d except for the aegir site files (aegir.mysite.com_80 and platform_XX).
Now restart apache again.
Go to your aegir site (aegir.mysite.com).
Re-verify all of the sites, make sure none are set to port 443. It will automatically recreate the config files you deleted.

Temporary solution

timwood's picture

butler360,
I was able to come up with a temporary solution for alpha6 for this problem. I wanted to keep using SSL for my sites for more secure authentication, but didn't want to manually fix things everything I re-verified a site or brought up a new site. See my solution in this issue on Drupal.org

-Tim

Thanks timwood, I'll be

butler360's picture

Thanks timwood, I'll be keeping an eye on that issue.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: