Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
The MySQL password I used contained a # in the middle. It's a valid mysql password, and I could use it to log in from any client.
When I entered the password during the Aegir install.sh process, I would get an error message as in #894004. I couldn't see a problem with my setup, so I tried changing the root password. Then the Aegir install.sh worked perfectly.
Comments
Comment #1
anarcat CreditAttribution: anarcat commentedWe don't handle the mysql root password in install.sh anymore.
Comment #2
petrpo CreditAttribution: petrpo commentedHello,
in 2 days of searching and going around a hot pot :-) I luckily have found this issue. I have the same problem. I had '++' in the end of root password and installation script ended with error :
The following settings will be used:
Aegir frontend URL: localhost.localdomain
Master server FQDN: localhost.localdomain
Aegir root: /var/aegir
Aegir user: aegir
Web group: www-data
Web server: apache
Aegir DB host: localhost
Aegir DB user: root
Aegir DB password:
Drush make version: 6.x-2.0-beta9
Aegir version: 0.4-beta2
Aegir platform path: /var/aegir/hostmaster-0.4-beta2
Aegir makefile: /var/aegir/.drush/provision/aegir.make
Client email: my-email@gmeyl.com
Do you really want to proceed with the install (y/n): y
The external command could not be executed due to an application error. [error]
SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES) [error]
Drush command could not be completed. [error]
Output from failed command : [error]
Fatal error: Call to a member function quote() on a non-object in
/var/aegir/.drush/provision/db/db.drush.inc on line 326
Output from failed command : [error]
Output from failed command : [error]
An error occurred at function : drush_provision_hostmaster_install [error]
After changing of root password to chars and numbers installation was done without problems.
Petr
Comment #4
ToRum CreditAttribution: ToRum commentedProblem also occurs for MySQL password saved in .drush/server_localhost.alias.drushrc.php: if it contains special chars like "#" the connection is lost (even when editing/saving by web interface). The web interface and/or Provision should properly escape this # character.
Comment #5
ToRum CreditAttribution: ToRum commentedComment #6
anarcat CreditAttribution: anarcat commentedComment #7
Mark F CreditAttribution: Mark F commentedi'm getting a very similar problem using Aegir 1.3.
Comment #8
butler360 CreditAttribution: butler360 commentedSame here with 1.3, would not connect with # in password.
Comment #9
Steven Jones CreditAttribution: Steven Jones commentedI'm fairly certain that this is a really easy fix, just need to urlencode things as they are saved into the context. Just need to test things, and a fix should be committed shortly.
Comment #10
Steven Jones CreditAttribution: Steven Jones commentedFixed in http://drupalcode.org/project/hostmaster.git/commit/2f9a056bd52746e856f7...
and
http://drupalcode.org/project/provision.git/commit/d6c8b83713c07e839fbfb...