Hi guys,

Been lurking around these parts for a few days trying to get my system working on an Ubuntu localhost, my setup is basically...
Drupal 6.9
Hostslave install profile 6.x-0.1-rc1
Drush 6.x 1.2
Provision 6.x-0.1-rc1
Ubuntu 8.10
PHP 5.2.6.2
MySQL Server 5.0.6.7
Apache 2.2.9-7

I've caught the issue about provision creating two users '[user]_[userid]@localhost/%, what I have is a user named '_0', after I 'drush install provision [site]', the site is off-line & it throws this error at me... The mysqli error was: Access denied for user '_0'@'localhost' (using password:YES).

This should be a pretty simple error to sort, but I can find no reference to this user in any config file, I've tried granting all privileges to this user, but still nothing. I'm really close to getting my first provision/drush set up working, this is a test environment & I'll be doing it again & again over the next few months & am looking forward to getting some documentation of my experiences done on my second run, this is all really exciting stuff & am enjoying it a lot.

Thanks!

Nick,

Comments

adrian’s picture

It seems like the default fallback to the site url is not working correctly.

If i understand correctly you are just using the backend, and not the front end ?

hexag’s picture

Hi Adrian,

Yup, just working with the back-end, could I've broken it by not installing right? That's my best guess at the moment, a retry could make it third time lucky!

Cheers,

Nick,

adrian’s picture

There is definitely an issue in the code , in the : _provision_mysql_suggest_db_name($url, $data) function.

It is meant to fall back on the $url as a basis for the user/db name
but it's not happening. Also. found another bug in the code that would hit you.

The other issue is that the script that does the actual install was requiring the client email. I've made it optional for D5, but i'm still porting the patch to d6.

You will need to migrate to the DRUPAL-6--1 version of provision for these fixes.

adrian’s picture

Status: Active » Fixed

If you do not specify a --client_email='email@address.com' in either the command line or the drushrc.php , you will not be able to log into the created site, as the welcome mail with the login details won't be sent.

Patch has been committed to the latest branches.

Be warned tho, provision on it's own isn't really that well tested.

We've been meaning to write a nice output layer for it, so all it does atm is print_r out the status dump.

hexag’s picture

Status: Fixed » Active

adrian, thank you, that gives me a nice bit to go on, have a great day buddy.

adrian’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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