Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
what is the best way to update to latest commons 3 dev release? Downloading the tar.gz? Building it with drush?
Regards,
Stéphane
Comments
Comment #1
ezra-g CreditAttribution: ezra-g commentedI suggest overwriting your installation with the latest fully packaged nightly tarball. Or, for more frequent updates, you can use Drush make.
Note that there's no official upgrade path between dev releases, though we haven't had anything yet that would break a site.
Comment #2
Chipie CreditAttribution: Chipie commentedThanks for the prompt reply.
Comment #3
Gerben Zaagsma CreditAttribution: Gerben Zaagsma commentedI am a relative newbie to drush and git and trying to figure out the best way to accomplish this. So apologies for any silly questions here, any pointers would be much appreciated.
Drush:
When doing this with drush make one would simply run "drush make build-commons.make" to update a 7.x-3.x installation?
Git:
Sofar I have tried to update with Git. I installed Commons with the git clone command. But know I notice that several modules are out of date yet git fetch doesn't seem to pick up the updates. All these modules have no version numbers listed when looking at the available updates page so perhaps there is an issue there. Example: Commons Profile (Social profile fields). Available updates says there is a 7.x-3.x-dev version now but git fetch doesn't pick it up. Am I overlooking something basic or is something else going on?
TIA,
Gerben
Comment #4
gnugetThis are the steps to i do for update my Drupal Commons version:
Comment #5
Gerben Zaagsma CreditAttribution: Gerben Zaagsma commentedThanks for the reply. I have used git clone and drush make to install DC for the first time, are you saying you use this also for updating?
Comment #6
Pierre Paul Lefebvre CreditAttribution: Pierre Paul Lefebvre commentedI used the same steps as Gnuget to install.
For update, I just do "git update && drush make --working-copy build-commons.make ../commons-7.x-3.x"
I then delete my current database and reinstall it :).
I need to make sure I dont have old data that triggers new bugs.
Comment #7
Gerben Zaagsma CreditAttribution: Gerben Zaagsma commentedThanks also for the info Pierre.
Comment #8
Chipie CreditAttribution: Chipie commented@Piere:
What does "git update" do? I don't know this git command.
Comment #9
miiimoooHmm.. at the moment running the drush make off the 3.x dev version produces nothing in my destination folder. Does this work for anyone else?
I get all the make output:
But there is no ../commons-7.x-3.x folder and nothing else. Could be my drush version is outdated. Can someone who this works for tell me which version they're using?
Comment #10
Topcheese CreditAttribution: Topcheese commentedNo it did not work for me, I get the same exact result. I was able to get some other distro's built, but not Commons.
Comment #11
Topcheese CreditAttribution: Topcheese commentedI believe there still might be an issue, so I hope there is not a problem marking this as active. This issue may be related Add a "permissions" subcommand to fix/set all file permissions. I don't think that this is a new issue, but it is an issue that I became aware of while trying to switch over to using Drush.
What led me to there was a watchdog error: "Failed to create style directory: public://styles/"
Comment #12
JAnjos CreditAttribution: JAnjos commentedI do not know if this the right place for this question, and for that I apologize now, but here goes:
If you install the current version (7.x-3.0-beta1) later I can upgrade to the final version without problems?
thank you!
Comment #13
Topcheese CreditAttribution: Topcheese commented@JAnjos, this looks like a pretty good choice to me, although a quick search through the Commons issue queue didn't help me find a previous comment, I believe once the beta is declared stable enough, there will be an upgrade path. Feel free to test out beta1 and report back any issues to help get it stable sooner.
Here is one related issue.
Comment #14
JAnjos CreditAttribution: JAnjos commented@Topcheese
thank you. I'll do that
Comment #15
michaellenahan CreditAttribution: michaellenahan commentedHow are people out there managing to do updates to latest commons dev while retaining any existing data on the site?
My users have entered data into 7.x-3.0-beta1 and are now asking for the dev release.
What strategy can I use to update to the dev release while taking the data with me?
I've been struggling with this one for a while, I'd be grateful for any help.
Comment #16
Topcheese CreditAttribution: Topcheese commentedWell, I planned to use Backup and Migrate, but I have not used it yet because of the recent changes to the dev version. As a result of those changes, I have been doing a fresh install of the latest dev. I will probably try to update from a fresh install of the next Beta.
Comment #17
Gerben Zaagsma CreditAttribution: Gerben Zaagsma commentedI installed the dev version and update that using drush.
The only problem there is that I have to update on a per module basis (If I try the normal update process I get this error: "The commons directory could not be found within the modules directory at /Applications/MAMP/htdocs/commons-dev/profiles/commons, perhaps the project is enabled but has been deleted from disk").
Anyway, apart from this taking a bit longer it works fine. I could not get my head around git so decided to abandon that for the moment.
Comment #18
blacklabel_tom CreditAttribution: blacklabel_tom commentedGlad to hear you got your head round it in the end, would you mind closing the issue if its all sorted now?
Cheers
Tom
Comment #19
Gerben Zaagsma CreditAttribution: Gerben Zaagsma commentedClosing this, feel free to reopen if others have questions.
Comment #20
Summit CreditAttribution: Summit commentedWanted to tell you that #4 was absolutely great! Greetings, Martijn
Comment #21
geresy CreditAttribution: geresy commenteddrupal-7.21 downloaded. [ok]
Unable to download [error]
http://drupal.org/files/spark-install-1780598-5.patch.
Unable to clone commons from [error]
http://git.drupal.org/project/commons.git.
used to work ... doesnt work on my centos box or windows 7 ..
Comment #22
gnugetYeah, the last week i had exactly the same error.
But i don't sure if is related with commons it self or if is a network problem, the last week even i did can't open drupal.org nor git.drupal.org
Comment #22.0
gnugetfixed typo