Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.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
Comment #1
jamesdixon CreditAttribution: jamesdixon commentedComment #2
jamesdixon CreditAttribution: jamesdixon commentedFor the project my git url is set to:
git@bitbucket.org:jdixon567/dialed-in-design-website.git
Comment #3
Jon PughI believe the problem is the dashes in the platform name. Right before the chdir error is:
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.
Comment #4
Jon PughYeah, 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!
Comment #5
jamesdixon CreditAttribution: jamesdixon commentedThanks 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.
Comment #6
jamesdixon CreditAttribution: jamesdixon commentedHere's some help I received from IRC on the topic:
I'll try it out and report back.