Closed attiks closed 8 years ago
quite the same issue on upgrade from 3.0.1 to 3.0.2
BOA [17:30:48] ==> UPGRADE B: Hostmaster STATUS: Upgrade completed
BOA [17:30:48] ==> UPGRADE B: Simple check if Aegir upgrade is successful
BOA [17:30:48] ==> UPGRADE B: FATAL ERROR: Required file does not exist:
BOA [17:30:48] ==> UPGRADE B: FATAL ERROR: /data/disk/o1/aegir/distro/040/sites/o1.server2.sediciweb.it/settings.php
BOA [17:30:48] ==> UPGRADE B: FATAL ERROR: Aborting AegirSetupB installer NOW!
BOA [17:30:48] ==> UPGRADE A: FATAL ERROR: AegirSetupB installer failed
BOA [17:30:48] ==> UPGRADE A: FATAL ERROR: Aborting AegirSetupA installer NOW!
BOA [17:30:48] ==> FATAL ERROR: AegirSetupA installer failed
BOA [17:30:48] ==> FATAL ERROR: Aborting Octopus installer NOW!
Waiting 8 seconds...
Done for /data/disk/o1
OCTOPUS upgrade completed
Bye
Might have found the problem
May 4 17:34:40 Debian-84-jessie-64-minimal systemd[1]: Reloading A high performance web server and a reverse proxy server.
May 4 17:34:40 Debian-84-jessie-64-minimal nginx[6052]: nginx: [emerg] invalid parameter "5153049" in /var/aegir/config/server_master/nginx/vhost.d/chive.master.xxx.attiks.com:17
May 4 17:34:40 Debian-84-jessie-64-minimal systemd[1]: nginx.service: control process exited, code=exited status=1
May 4 17:34:40 Debian-84-jessie-64-minimal systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
May 4 17:34:40 Debian-84-jessie-64-minimal systemd[1]: Reloading A high performance web server and a reverse proxy server.
May 4 17:34:40 Debian-84-jessie-64-minimal systemd[1]: Reloaded A high performance web server and a reverse proxy server.
The offending line is no longer part of the vhost, so I tried running the following, but didn't work
# barracuda up-stable
BOA [17:45:56] ==> Skynet Agent v.BOA-3.0.2 welcomes you aboard!
BOA [17:45:59] ==> INFO: FORCED INIT
BOA [17:45:59] ==> FATAL ERROR: You must define also _EASY_HOSTNAME
BARRACUDA upgrade completed
Bye
# boa in-stable public xxx.attiks.com attiks@xxx.com o1 none php-5.5
ERROR: BOA requires minimal, supported OS, with no services installed
ERROR: The only acceptable exceptions are: sshd and mail servers
Bye
# boa in-stable public xxx.attiks.com attiks@xxx.com o2 none php-5.5
ERROR: BOA requires minimal, supported OS, with no services installed
ERROR: The only acceptable exceptions are: sshd and mail servers
Bye
# boa in-octopus attiks@xxx.com o2 none stable
ERROR: Please install complete BOA system before trying
ERROR: to install additional Aegir / Octopus instances
Bye
FYI: Trying again with chive disabled
Same problems
@attiks Can you attach/link the (anonymized) contents of the file /data/disk/o1/log/install.log
(from the failed initial install, not upgrade)
@tourtools We can't reproduce this. Please enable debug mode in the octopus .cnf file to get more verbose output and attach/link it here.
I just restarted a new install, will post the log once finished
Installed using boa in-stable public xxx.attiks.com attiks@xxx.com o1 mini nodns
Last lines of /data/disk/o1/log/install.log
Changed group ownership of <code>sites/o1.xxx.attiks.com/files/civicrm/custom</code> to www-data [success]
Changed group ownership of <code>sites/o1.xxx.attiks.com/files/civicrm/dynamic</code> to www-data [success]
Changed group ownership of <code>sites/o1.xxx.attiks.com/files/civicrm/persist</code> to www-data [success]
Login url: http://o1.xxx.attiks.com/user/reset/1/146xxxxxxxn0j-7e5sByjOd4E/login [success]
Sent welcome mail to attiks@xxx.com [success]
Generated config in write(): Drupal sites.php file (/data/disk/o1/aegir/distro/001/sites/sites.php) [success]
Changed permissions of /data/disk/o1/aegir/distro/001/sites/sites.php to 644 [success]
Could not find the alias @hostmaster [error]
The command could not be executed successfully (returned: Could not find the alias @hostmaster [error] [error]
, code: 1)
Tried as o1
su - o1 -s /bin/bash
o1@h017:~$ drush @hostmaster
Could not find the alias @hostmaster
We would need to see complete /data/disk/o1/log/install.log to guess what exactly happens.
I'm trying to reproduce this on digital ocean now.
I can give you root access if you want
OK, but let's see what happens with my test on digital ocean first. Maybe it is some regression we didn't catch, but we have installed and upgraded a ton of servers last night with zero issues, so we need to find what exactly happens here.
Hmmm..
WD node: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '10' for key 'PRIMARY': INSERT INTO {hosting_cron} (nid, cron_interval) VALUES (:db_insert_placeholder_0, [31;40m[1m[error][0m
:db_insert_placeholder_1); Array
(
[:db_insert_placeholder_0] => 10
[:db_insert_placeholder_1] => 3600
)
in hosting_cron_node_insert() (line 270 of /data/disk/o1/aegir/distro/001/profiles/hostmaster/modules/aegir/hosting/cron/hosting_cron.module).
DRUPAL_INSTALL_FAILED [31;40m[1m[error][0m
Site installation caused an exception. [31;40m[1m[error][0m
I just reproduced this on do, weird!
I'm glad it isn't just me, anything I can do?
Is there an - easy - way to re-install octopus?
To re-install octopus:
deluser o1
deluser o1.ftp
mv /data/disk/o1 /var/backups/
mv /home/o1.ftp /var/backups/
Now install it with boa in-octopus
-- but it will fail again, we need to fix this now.
FYI: I tried it, but didn't work, running boa in-octopus
gives the following
ERROR: Please install complete BOA system before trying
ERROR: to install additional Aegir / Octopus instances
Bye
Seems /var/aegir/.drush/hostmaster.alias.drushrc.php
does not exist
The weird thing is that it always fails when I run:
boa in-octopus my@email oct1 mini stable
But works with head:
boa in-octopus my@email oct1 mini head
But we have run ton of upgrades to stable and there were no issues.
Did something change between yesterday and today? So installing head might work?
There were no changes, no hot-fixes, nothing. We are trying to determine what/where is the difference.
Even octopus up-stable oct1 force
upgrade works with no issues on instance created with boa in-octopus my@email oct1 mini head
(because they are the same).
Testing various things now, and head can be occasionally broken.
We have exported all packages again, forced mirrors re-sync and it works: https://gist.github.com/omega8cc/c993822e81d02052385b49f0863e80bd
We can investigate this later using old exports, but fixing this was a priority.
Thanks to all for the reports and help in debugging!
So a clean in-head install should work?
BTW thanks for the quick fix
Grrr I meant in-stable
Both head and stable should work. We have tested this only with boa in-octopus
, though.
Note that boa in-octopus
now allows you to define version to install:
$ boa {in-octopus} {email} {o2} {mini|max|none} {stable|head|2.4}
Will try tomorrow
Confirmed as fixed / tested from scratch again: https://gist.github.com/omega8cc/372c070857e97a1a9cac246546a2017e
Works like a charm, thanks!
@impara Please don't comment on so old and closed issues, even if you think something looks similar, because it's not. You should use BOA head, not "stable" to avoid issues, at least until we make it official that head is the new stable after we have switched away from point releases to rolling releases policy over a year ago. If you still experience problems with BOA head, please open new issue.
I installed a minimal debian jessie and ran
Install worked for system part, but failed on octopus, complaining
/data/disk/o1/aegir/distro/001/sites/o1.xxx.attiks.com/settings.php
does not exist.I re-installed my server from scratch, but got the same error
Seems a lot like #924
boa info