Hi there,

i have just upgraded my BOA installation to 1.4S. First the update of barracuda, went smooth. Then octopus for my single user, went smooth also. No errors.

Afterwards i try to access the web panel at myuser.aegir.mydomain.com, it redirects to install.php and returns a 404 forbidden.

http://myuser.aegir.mydomain.com/install.php
403 Forbidden
Barracuda/1.0.8

I guess you need more information, please tell me what is needed and i am happy to deliver.

Kind Regards,
tne_

CommentFileSizeAuthor
#10 barracuda.cnf_.txt1.05 KBtne_
#10 octopus.cnf_.txt894 bytestne_
#8 install.log_.txt5.29 KBtne_
#8 barracuda_log.txt356 bytestne_

Comments

snlnz’s picture

Is the database server up and running?

check mysql service is up?

tne_’s picture

Yes, it is running. I should have mentioned that the sites of my octopus user are accessible normally. It is just the admin panel for octopus (and the master instance) not available.

settings.php from the aegir master instance look correct also. I can connect with the db user, and inside the variable table everything looks fine.

snlnz’s picture

Perhaps you could give us more details? Did you do the upgrade with debug enabled and can you post the log?

tne_’s picture

Unfortunately i did not enable debug, and just found the option. However, i have made a snapshot before the upgrade, and will now revert back, and do the barracuda + octopus upgrade with debug enabled again.

Where will i find the log's?

snlnz’s picture

Actually, if you run the upgrade with debug enabled any errors/issues will be printed to the screen so you can verify what is happening at each step.

I meant to post what ever errors come up but there is an install log that will be appended to with debug enabled.

tne_’s picture

Thanks for the info!

This is weird. After i rolled back to an earlier snapshot, changed the configs to reflect DEBUG = TRUE, it went through without errors. Just like before. However, the web panel was accessible this time. I did not change anything else.

The only thing that came up (before aswell), is that nginx could initially not be startet. It said there were unknown configuration directives.

I had to comment the following lines:

line 79 /var/aegir/config/includes/nginx_advanced_include.conf

location ^~ /progress {
  access_log off;
#  report_uploads uploads;
}

line 503 /var/aegir/config/includes/nginx_advanced_include.conf

location ~* ^/index\.php$ {
  add_header    X-Header "Barracuda Engine 1.0 Turbo";
  add_header    X-Device "$device";
  try_files     $uri =404;      ### check for existence of php file first
  fastcgi_pass  127.0.0.1:9000; ### php-fpm listening on port 9000
#  track_uploads uploads 60s;    ### required for upload progress

and the same for /data/disk/myuser/config/includes/nginx_advanced_include.conf

Is there a module/plugin missing for nginx?

omega8cc’s picture

Component: Code » Miscellaneous
Category: bug » support
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Please follow bug submission guidelines: http://drupal.org/node/add/project-issue/barracuda

tne_’s picture

StatusFileSize
new356 bytes
new5.29 KB

Please find attached the two log files. If you need more info please let me know.

omega8cc’s picture

This looks like you were hit by recent ftp.drupal.org issues. While BOA has built-in procedure to check required remote servers availability before running install or upgrade, it is still possible that d.o server will stop responding during install/upgrade and this will cause weird results, and we experienced exactly that yesterday during one of our internal tests.

Now let's see what you have got installed - please paste the results of:

nginx -V

cat /root/.barracuda.cnf

cat /root/.octopus.cnf

tne_’s picture

StatusFileSize
new894 bytes
new1.05 KB

This makes perfect sense and explains that it was working the second time around. Are there any plans to download the packages earlier in the installation/upgrade state, so that it cancels the install in a 404 case?

Here is my nginx -V

nginx: nginx version: Barracuda/1.0.8
nginx: built by gcc 4.4.5 (Debian 4.4.5-8) 
nginx: TLS SNI support enabled
nginx: configure arguments: --prefix=/usr --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --user=www-data --group=www-data --with-http_realip_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --without-http_ssi_module --without-http_scgi_module --without-http_uwsgi_module --with-debug --with-ipv6

Attached you will find the two log files.

omega8cc’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Postponed (maintainer needs more info) » Needs work

Thanks.

You have used HEAD version for initial install and for some reason it didn't add the nginx-upload-progress-module to the Nginx build. Possibly it was some connection issue, but related to GitHub, not d.o this time. Either way, Barracuda should adapt the Nginx config on the fly as it is done in our vanilla Aegir/Provision logic already. We force enhanced Nginx config in BOA, but we should still check if upload progress have been successfully compiled in.

Unfortunately, it is not possible to pre-fetch everything before starting the install, since both Aegir itself and Octopus later are using some makefiles to build the platforms on the fly, so it will be still possible to get broken install or upgrade because some third party server is experiencing downtime - and for ftp.drupal.org it happens far too often in recent weeks.

omega8cc’s picture

Title: After Upgrade from 1.0-boa-T-8.10 to BOA-1.4S webpanel no longer available » Missing nginx-upload-progress-module can break install and upgrade

Changing the subject to reflect the real issue here.

tne_’s picture

Thanks for the explanation. I dont have a solution to the problem you stated, thats indeed something out of our hands. Maybe it is time to run a (cloned) repository network (with a dns like aegir.cc) with some mirrors to try to keep packages needed for BOA available? I would be happy to donate and maintain a fast mirror in europe for BOA.

In my case, can i simply rerun the parts of the BARRACUDA installer ( 2664 if [ $_NGINX_INSTALL_REQUIRED = "YES" ] ; then .... ) and rebuild nginx manually? Will it kill my config files?

omega8cc’s picture

We already use our mirrors for some often problematic third party libraries used to build system services, but still, we can't modify all possible makefiles on the fly or mirror entire ftp.drupal.org etc. Anyway, we will try to extend our mirroring also for other parts of the system. Thanks for the offer, but we have enough bandwidth in all our locations - in the US, EU and Asia.

And in this issue we have to re-introduce the same check we did in Provision already when we contributed Nginx support for Aegir, it is an easy stuff, just forgotten because it worked anyway.

You can simply rebuild Nginx manually using the code you can see in Barracuda, and it will just work. Or even mv /usr/sbin/nginx /usr/sbin/nginx-old and run Barracuda again.

tne_’s picture

Great, thanks for the info! :)

omega8cc’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.