I just tried to install drubuntu with the command from the module page:

wget 'http://drupalcode.org/viewvc/drupal/contributions/modules/drubuntu/drubuntu-bootstrap.sh?view=co' -Odrubuntu-bootstrap.sh ; cat drubuntu-bootstrap.sh ; read -n1 -p "Run above script? (y/n)" ; if [ "$REPLY" = "y" ]; then bash drubuntu-bootstrap.sh; fi

but it can't find the file and gives a 404. It worked before the Drupal.org migration to git, so I am inclined to believe it has got something to do with that, but I may be mistaken. So under which address do I find the files?

CommentFileSizeAuthor
#6 cvs-links-broken-1074908-1.patch2.25 KBdaven
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Narretz’s picture

(we still can't edit start posts? Dayum shame)

Ok, with help from marvil07 from the IRC, I figured out the path to the files, e.g.

http://drupalcode.org/project/drubuntu.git/HEAD:6.x-10.10-beta1:drubuntu...

it actually downloads something when executed in the terminal, and then installs at least drush, but in the end I get errors, because the script is unable to checkout the stuff for drubuntu from cvs.drupal.org (not a surprise, in hindsight).

So I guess the script / bootstrap needs updating for the git migration: pull drush from the git repositories, and use the git package handler.

Another edit: I guess we have to wait until drush updates. The master already has the new git integration.

zertad’s picture

Same problem here.

Anonymous’s picture

Title: Did the download address change (as in the wget-example?) » Bump

Same problem here too.

Narretz’s picture

Title: Bump » Download paths to drush and drush package handler broken

I think we still need a title that says a little more about the subject ;)

Narretz’s picture

Title: Download paths to drush and drush package handler broken » Download path to drush, and drush package handler broken
Component: Documentation » Code

Sorry, another clarification. Changed Component to Code.

daven’s picture

Status: Active » Needs review
FileSize
2.25 KB

I created this patch and it looks like it works for me. Let me know if this works for you

Dave

krayz’s picture

patch in #6 works for me

Narretz’s picture

Patch looks good. I think I changed some lines so Drush uses the package handler for git. I will check later; but if it works without, it's probably not that important.

elrayle’s picture

I am new to Drupal (3 months), new to Ubuntu (2 days), new to Drush (0 days), new to GIT (0 days). This leaves me confused as to how to use the information in the comments. I am very glad to hear the patch works. Can anyone give me basic instructions I can follow to use the patch?

Narretz’s picture

You could either follow these instructions in applying the patch:
http://drupal.org/node/620014

or just take a look at the files mentioned in the patch, and delete the lines with -- in front, and add those with a ++ in front.

lrosete’s picture

Manually applying the patch worked for me. Thanks!
So after the setup, I can:

1. Open up Eclipse.
2. Open up the sandbox

But I'm stuck at having 2 errors during the sandbox install like below:

1.File system
The directory sites/sandbox.drupal.localhost/files is not writable.

2. Settings file The settings file is not writable.
The Drupal installer requires write permissions to ./sites/sandbox.drupal.localhost/settings.php

Any suggestions how I do this from here?

Or any other recommendations on how to make maximum use of this development platform?
Thanks in advance.

Narretz’s picture

Hm, did you create the settings file and the files folder by yourself? As far as I remember, this was done automagically by drush in the install process.
Permissions is basically a Linux issue, so you gonna find your answers in this direction:

http://drupal.org/node/244924

elrayle’s picture

Thanks for the info. It was very helpful. I made the changes manually. The script ran with some warnings and a few errors, but they didn't seem to interfer with everything working. I didn't have time to look at them to see what was the source of the problem. I certainly wouldn't rule out user error. But I am a happy customer just the same.

jdleonard’s picture

Status: Needs review » Reviewed & tested by the community

works as expected

Bodger’s picture

The version listed here is 6.x, I am trying to setup 7.x and getting the same issues. Is there a patch for Drupal 7?

Thanx

Bodger

stkrzysiak’s picture

Still an issue, #1's link is now an 500 internal server error. Until this gets updated to the proper cut & paste command, just download http://drupalcode.org/project/drubuntu.git/blob_plain/refs/heads/master:... then chmod the script to be executable, I just do 777, and then execute ./drubuntu-bootstrap.sh

EDIT: It appears the script checks out drush from cvs, which fails, probably due to the switch. Been awhile since I've used drubuntu, Owen, raising my hand to help if your looking for ppl.

AlanAtLarge’s picture

Following

mlncn’s picture

Priority: Normal » Critical

Without an update to reflect the Git migration across the board, Drubuntu installation is broken. Marking critical.

tsi’s picture

sub

daven’s picture

I set up a sandbox copy of drubuntu so that i could test things out. Today I wanted Drubuntu for setting things up on a new Ubuntu 11.04 install. I successfully ran the drubuntu script with the following command:

wget 'http://drupalcode.org/sandbox/daven/1138072.git/blob_plain/HEAD:/drubuntu-bootstrap.sh' ; cat drubuntu-bootstrap.sh ; read -n1 -p "Run above script? (y/n)" ; if [ "$REPLY" = "y" ]; then bash drubuntu-bootstrap.sh; fi

This is a replacement for the command in the project description, using git url instead of csv. Currently it points to my sandbox copy, but the drubuntu-bootstrap.sh actually downloads the real drubuntu anyway, not the sandbox.

As I mentioned, this successfully ran drubuntu, however there were various errors which I didn't pay attention to, probably related to the fact that it not all Ubuntu 11.04 ready. It met my goals anyway. ymmv.

mlncn’s picture

Have a sandbox clone with an attempt to update/focus Drubuntu on Drupal 7. Not all working yet. Most significantly, syntax error in drubuntu when i try to restart Apache to get the x.localhost addresses working for ~/workspace/x

http://drupal.org/sandbox/mlncn/1293018 - all changes are in branch drupal-7
http://drupalcode.org/sandbox/mlncn/1293018.git/shortlog/refs/heads/drup...

sheldonkreger’s picture

Greetings, and thanks for the tutorial. I'm getting an error during the bootstrap process despite having applied the patch above.It happens just after the Firefox plug in installation, during a Drush process. I get a handful of error messages, and then it appears that the script bails out as if everything is OK:

Default browser set back to Firefox.                                 [success]
PHP Fatal error:  Call to undefined function drush_invoke_process_args() in /home/sheldon/workspace/drubuntu/devtools/general.inc on line 46
PHP Stack trace:
PHP   1. {main}() /home/sheldon/workspace/drush/drush.php:0
PHP   2. drush_main() /home/sheldon/workspace/drush/drush.php:14
PHP   3. _drush_bootstrap_and_dispatch() /home/sheldon/workspace/drush/drush.php:57
PHP   4. drush_dispatch() /home/sheldon/workspace/drush/drush.php:88
PHP   5. call_user_func_array() /home/sheldon/workspace/drush/includes/command.inc:216
PHP   6. drush_command() /home/sheldon/workspace/drush/includes/command.inc:0
PHP   7. _drush_invoke() /home/sheldon/workspace/drush/includes/command.inc:923
PHP   8. call_user_func_array() /home/sheldon/workspace/drush/includes/command.inc:125
PHP   9. drush_drubuntu_install() /home/sheldon/workspace/drush/includes/command.inc:0
PHP  10. drubuntu_task_invoke() /home/sheldon/workspace/drubuntu/drubuntu.drush.inc:137
PHP  11. call_user_func_array() /home/sheldon/workspace/drubuntu/drubuntu.drush.inc:128
PHP  12. drubuntu_engine_general->install() /home/sheldon/workspace/drubuntu/drubuntu.drush.inc:0
Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: Call to undefined function drush_invoke_process_args() in
/home/sheldon/workspace/drubuntu/devtools/general.inc, line 46
Drubuntu bootstrap complete!

Any help is appreciated!

Nieuwbee’s picture

# 6 worked for me.... I do not fully understand what is happening, but the installation procedure now runs. - Thanks.

Nieuwbee’s picture

Version: 7.x-10.10-beta1 » 6.x-10.10-beta1

Well it appeared to work. It took close to 2 hours to install and it ended up in the same spot as Sheldon reported above.
Error: Call to undefined function drush_invoke_process_args() in ~/workspace/drubuntu/devtools/general.inc, line 46.
That line reads as "drush_invoke_process_args('pm-download', $projects, array('destination' => $destination));
Ending with "Drubuntu bootstrap complete!.
After doing a bit of reading, it appears as if the line should read "drush_invoke_process("@self",'pm-download', $projects, array('destination' => $destination));
but whenever you execute the drubuntu-bootstrap, the file general.inc is downloaded anew. So you cannot just simply replace the line of code.

if you have the same problems: try the Acquia development tool. It worked very well for me.

Nieuwbee’s picture

Version: 6.x-10.10-beta1 » 7.x-10.10-beta1

It was version 7.x-10.10-beta1;

drupaljohngo’s picture

Version: 6.x-10.10-beta1 » 7.x-10.10-beta1

I did a clean install of ubuntu 10.10 on my machine. I'm unsure about patching so I edited the cvs
patch with all the + and - things. The install ran well. I created a drag & drag gksudo to copy the drubuntu-bootstratp.sh
to the root directory and gave the file 777 permissions. ran it with
the bash command with no errors unit it asked for the full installation.
several database errors and warnings of doom appeared.
what is the drush command to install drubuntu? is is drush drubuntu install? I tried that and it
did something on one occasion and then nothing. drush is installed in the home/myusername/workspace/
drubuntu is patiently waiting. do i edit the .bashrc with the correct path and copy it to the home directory? because there is no .profile file. I tired this before and got into can of worms.
Also, do I need to install unzip drupal 7 in a specific directory? Doesn't make sense to if the server isn't installed and configured yet. I assume drubuntu is like Quickstart VB.

sheldonkreger’s picture

@drupaljohngo

I ran into similar problems a few months ago. In the end, I up using XAMPP instead of Drubuntu - the installation is much easier (10 minutes, no error messages). You won't get all the IDE software or Drush, but at least you will get LAMPP stack set up, which seems to be the tricky part.