When pulling code on a dev site, the pull is failing. Digging deeper in pull.devshop.provision.inc, the repo_path is null. This line is returning null:

// Find repo path
$repo_path = $platform->root;

Here is the log from the pull attempt:

Task starts processing
drush_provision_logs_pre_hosting_task
Running: /usr/share/drush/drush.php @project_dialed-in-design-website provision-devshop-pull 'dev' --backend 2>&1
Bootstrap to phase 0.
Drush bootstrap phase : _drush_bootstrap_drush()
Load alias @project_dialed-in-design-website
Bootstrap to phase 0.
Found command: provision-devshop-pull (commandfile=devshop_provision)
Initializing drush commandfile: devshop_provision
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: provision
Load alias @server_master
Loading apache driver for the http service
Initializing drush commandfile: solr
Initializing drush commandfile: user
Including /var/aegir/.drush/devshop_provision/pull.devshop.provision.inc
[DEVSHOP] Provision DevShop Pull on: dev
Load alias @platform_dialed-in-design-website_dev
Load alias @dev.dialed-in-design-website.dialedindev.ca
Loading drushrc "/var/aegir/projects/dialed-in-design-website/dev/sites/dev.dialed-in-design-website.dialedindev.ca/drushrc.php" into "site" scope.
Load alias @server_localhost
Loading mysql driver for the db service
Load alias @platform_dialedindesignwebsite_dev
chdir(): No such file or directory (errno 2) drush.inc:1216
Git repository not found in:
Undefined index: pull_reset pull.devshop.provision.inc:70
chdir(): No such file or directory (errno 2) drush.inc:1216
Git pull failed in . The specific errors are below: fatal: Not a git repository (or any of the parent directories): .git
Command dispatch complete
Peak memory usage was 12.55 MB
Undefined property: stdClass::$project_nid devshop_pull.module:289
Trying to get property of non-object devshop_pull.module:290
WD devshop: Pull FAILED on project:
Undefined property: stdClass::$project_nid devshop_pull.module:291
Changes made in drush_hosting_task have been rolled back.
Command dispatch complete
Peak memory usage was 29.8 MB

Comments

jamesdixon’s picture

Issue summary: View changes
jamesdixon’s picture

For the project my git url is set to:

git@bitbucket.org:jdixon567/dialed-in-design-website.git

Jon Pugh’s picture

I believe the problem is the dashes in the platform name. Right before the chdir error is:

Load alias @platform_dialedindesignwebsite_dev
chdir(): No such file or directory (errno 2) drush.inc:1216

For some reason it is removing the dashes down the line when looking for the platform.

I've recently added code to validate environment names. I will look into this more, but for now, try creating a new project without dashes in the name.

Jon Pugh’s picture

Status: Active » Closed (duplicate)

Yeah, a trip down memory lane reminded me of the dashes in project names. I believe the fix in this issue resolves your problem. #2001942: prevent project names with special special characters

Try the latest dev code for devshop_hosting.

Thanks!

jamesdixon’s picture

Thanks for the help! Would I grab the dev code for devshop_hosting and put it into this folder:

/var/aegir/devshop-6.x-1.x/profiles/devshop/modules/contrib

Then run mydevshopurl.com/update.php?

I'm a bit new to aegir / devshop, thanks for your guidance.

jamesdixon’s picture

Here's some help I received from IRC on the topic:

<ergonlogic> jamesdixon: you should probably put the updated copy in your sites/<aegir_url>/modules
<ergonlogic> jamesdixon: it'd be a good idea to backup your aegir site first, so you can rollback in case of errors during the update
<ergonlogic> after putting the new code in place, run 'drush rr' or visit the modules page so the site picks up the new code
<ergonlogic> and then run update.php
<drastik-jw> https://drupal.org/project/devshop_up versus  aegir-up,  anyone know?
<drastik-jw> ergonlogic:  have you seen that  ^   ?
<ergonlogic> jamesdixon: you can't restore an aegir site from the front-end, so you'd need to run a provision-restore if anything goes wrong

I'll try it out and report back.