upgrade failiure
  • jusrt tried upgrading one of the test installs I have of newscoop but it has failed.
    these are the errors I'm getting:
    Site is down for upgrade. Please initiate upgrade process. On admin page.

    Upgrading the database from version 2.0.x...
    Then it just freezes.

    Any advice on doing the upgrade it worked fine in Ubuntu but, seemas to die on my netbook.
  • 15 Comments sorted by
  • After reading the manual and running backup it would seem it is geared for Linux
    (#!/usr/bin/env php

    Newscoop Backup Utility
    -----------------------

    ERROR!
    Unable to create the default backup directory.
    Please run this script as 'www-data' or as 'root'.
    )
    not windows. So how would I go about doing a backup in a windows environment, without doing the ususal DB dump?

    There seems to be a conflict between the manual and upgrade reame file. this what upgrade.txt says:

    "Upgrading from Newscoop 3.0.x, 3.1.x, 3.2.x, 3.3.x and 3.4.x:

    Drop the new sources over the existing install, open a browser and make
    a request for the publication home page:
    http://[site_name]

    The upgrade will be performed automatically when you make the first
    request to the publication site or to the Newscoop admin interface."

    This did not work in my netbook and not about to try it in the virtual machine as I need the existing install to do more videos from.
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hello Dai,

    > After reading the manual and running backup it would seem it is geared
    > for Linux not windows.

    Is the netbook that you're using as a Newscoop server running Windows?

    > So how would I go about doing a backup in a
    > windows environment?

    If you are doing the backup through the web browser it should be exactly
    the same, Windows or GNU/Linux. Are you still able to log into the admin
    interface?

    > There seems to be a conflict between the manual and
    > upgrade reame file. this what upgrade.txt says "Upgrading from Newscoop
    > 3.0.x, 3.1.x, 3.2.x, 3.3.x and 3.4.x:
    >
    > Drop the new sources over the existing install, open a browser and make
    > a request for the publication home page:
    > http://[site_name]

    That's the same method as mentioned in the manual here, under 'Running
    the upgrade script' at the end of the page:

    http://new.flossmanuals.net/newscoop/ch004_backup-and-upgrad e.html

    The main difference is that in the manual, we take the user step-by-step
    through the process of making a backup first, which is best practice for
    any Newscoop or CMS upgrade. Also the readme doesn't explicitly mention
    that you have to open the upgrade.php page.

    > The upgrade will be performed automatically when you make the first
    > request to the publication site or to the Newscoop admin interface."
    >
    > This did not work in my netbook

    We'll have to find out why :-)

    Cheers!

    Daniel
  • tried the backup it is not working for me on all my machines including Ubuntu. just tried it from the University computer on my usb hardrive still no joy in doing the backup.

    #!/usr/bin/env php

    Newscoop Backup Utility
    -----------------------

    ERROR!
    Unable to create the default backup directory.
    Please run this script as 'www-data' or as 'root'.

    this happened to 4 different installations of newscoop on different computers.
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hello Dai,

    > tried the backup it is not working for me on all my machines including
    > Ubuntu. just tried it from the University computer on my usb hardrive
    > still no joy in doing the backup.
    >
    > #!/usr/bin/env php
    >
    > Newscoop Backup Utility
    > -----------------------
    >
    > ERROR!
    > Unable to create the default backup directory.
    > Please run this script as 'www-data' or as 'root'.

    This is how I use the backup script on Ubuntu, with Newscoop installed
    to the /var/lib/newscoop/ directory. It saves the tarball to the current
    working directory by default, i.e. /home/daniel/ in this case:

    $ sudo /var/lib/newscoop/bin/newscoop-backup

    Newscoop Backup Utility
    -----------------------
    Backup script version: 3.5.1 "Bea"
    Backing up newscoop
    * Backing up the database...done.
    * Backing up the templates...done.
    * Backing up images...done.
    * Backing up file attachments...done.
    * Backing up configuration files...done.
    * Creating tarball...done.
    * Cleaning up...done.

    Backup saved to file:
    /home/daniel/backup-newscoop-2011-03-08-14-35-13.tar.gz

    Perhaps you are using the --default-dir option which would save the
    backup file to the backup/ directory underneath the installation
    directory (which is /var/lib/newscoop/backup/ in my case). That action
    would require root or sudo powers to write the file because the
    installation directory /var/lib/newscoop is outside of my personal home
    directory.

    Cheers!

    Daniel
  • "Please run this script as 'www-data' or as 'root'."

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric



    On Tue, Mar 8, 2011 at 3:31 PM, Dai777 <
    newscoop-support@lists.sourcefabric.org> wrote:

    > tried the backup it is not working for me on all my machines including
    > Ubuntu. just tried it from the University computer on my usb hardrive still
    > no joy in doing the backup.
    >
    > #!/usr/bin/env php
    >
    > Newscoop Backup Utility
    > -----------------------
    >
    > ERROR!
    > Unable to create the default backup directory.
    > Please run this script as 'www-data' or as 'root'.
    >
    > this happened to 4 different installations of newscoop on different
    > computers.
    >

  • /var/lib/newscoop/ directory no good I'm using xampp in all my machines including Ubuntu.

    ----- Original Message -----
    From: "Daniel James" <newscoop-support@lists.sourcefabric.org>
    To: dai7261@gmail.com
    Sent: Tuesday, 8 March, 2011 2:44:07 PM
    Subject: [newscoop-support] Re: upgrade failiure

    Hello Dai,

    > tried the backup it is not working for me on all my machines including
    > Ubuntu. just tried it from the University computer on my usb hardrive
    > still no joy in doing the backup.
    >
    > #!/usr/bin/env php
    >
    > Newscoop Backup Utility
    > -----------------------
    >
    > ERROR!
    > Unable to create the default backup directory.
    > Please run this script as 'www-data' or as 'root'.

    This is how I use the backup script on Ubuntu, with Newscoop installed
    to the /var/lib/newscoop/ directory. It saves the tarball to the current
    working directory by default, i.e. /home/daniel/ in this case:

    $ sudo /var/lib/newscoop/bin/newscoop-backup

    Newscoop Backup Utility
    -----------------------
    Backup script version: 3.5.1 "Bea"
    Backing up newscoop
    * Backing up the database...done.
    * Backing up the templates...done.
    * Backing up images...done.
    * Backing up file attachments...done.
    * Backing up configuration files...done.
    * Creating tarball...done.
    * Cleaning up...done.

    Backup saved to file:
    /home/daniel/backup-newscoop-2011-03-08-14-35-13.tar.gz

    Perhaps you are using the --default-dir option which would save the
    backup file to the backup/ directory underneath the installation
    directory (which is /var/lib/newscoop/backup/ in my case). That action
    would require root or sudo powers to write the file because the
    installation directory /var/lib/newscoop is outside of my personal home
    directory.

    Cheers!

    Daniel


  • "Please run this script as 'www-data' or as 'root'."
    In Engligh where is www-data or as root needs a bit of explaining now I know how to to do things as root but I haven't got a clue what you are talking about here! Run what script?
    Besides according to your file in the upgrade only have to over write existing files and run admin. Not quite right had to do upgrade.php to get it to work for Ubuntu but not working on windows.

    ----- Original Message -----
    From: "Mugur Rus" <newscoop-support@lists.sourcefabric.org>
    To: dai7261@gmail.com
    Sent: Tuesday, 8 March, 2011 3:52:04 PM
    Subject: [newscoop-support] Re: upgrade failiure

    "Please run this script as 'www-data' or as 'root'."

    Mugur Rus
    Senior Software Developer, Sourcefabric
    mugur.rus@sourcefabric.org

    Cluj-Napoca, Romania
    +40 (0)720 528408
    Skype: mugur_rus

    http://www.sourcefabric.org
    http://www.twitter.com/Sourcefabric



    On Tue, Mar 8, 2011 at 3:31 PM, Dai777 <
    newscoop-support@lists.sourcefabric.org > wrote:

    > tried the backup it is not working for me on all my machines including
    > Ubuntu. just tried it from the University computer on my usb hardrive still
    > no joy in doing the backup.
    >
    > #!/usr/bin/env php
    >
    > Newscoop Backup Utility
    > -----------------------
    >
    > ERROR!
    > Unable to create the default backup directory.
    > Please run this script as 'www-data' or as 'root'.
    >
    > this happened to 4 different installations of newscoop on different
    > computers.
    >



  • netbook I'm using is win7 mowes portable for web server. Also got xampp web server on it but, not tried the xampp server version as, I'm using it for practice. I'm running the same setup in virtualbox under xp (host Ubuntu). Ubuntu upgraded ok with a cut and paste job with the files, then running uprade.php but, same process in mowes portable (net book) just hangs.
  • OK just tried an update in my virtualbox install of mowes portable web server. copied and pasted the upgrade over the old files. Sadly no joy same as previous upgrade it failed.

    Now I have two concerns:
    1, running back up according to manual fails.
    2, Copy and paste of files, also fails.

    In the practice environments this is not a big deal but, if I were to do this to a live site, it would be a disaster.

    The backup is not a big deal. I could always do it the old fashioned way. DB dump and copy the files and save them for safe keeping in case of a restore job. What is more concerning is that the upgrade process is failing. On a full blown production site this would mean a total loss of your previous publications and archives as well as an error screen (no new site).

    The only other thing I can think of but, I don't think it makes a difference is that, I down loaded the Ubuntu files and did the copy and paste with those, in the moews server. Now as far as I know the Ubuntu files are just the standard files, so it should not be a big difference, what is more concerning is the environment in which the live site would be hosted, if there were a compatibility issue with files. Like I said I don't think the files are the issue. I think it is with the upgrade process it self.

    This also needs more explaining:

    "Please run this script as 'www-data' or as 'root'."

    maybe some step by step instructions in the manual for different invironments involved, or for the less educated in these matters.

    So guys if you could help shed some light on this I would be grateful.

    Thsnks
    Dai


  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    hi

    Quote:
    1, running back up according to manual fails.
    on windows? Yes, the scripts in bin folder doesn't work in standard windows environment. Scripts requires unix tools like bash, tar and mysqldump utility. In linux environment the scripts usually works w/o issue. Otherwise you can try to backup from admin gui instead of command line

    Quote:
    2, Copy and paste of files, also fails.
    what did exactly happen?
  • If copy and paste fails how would you upgrade in a windows environment, with xampp or mowes?
    As you said in Linux (Ubuntu) it was just a matter of copy and paste then run upgrade.php. Mind you the back up still fails in xampp on Ubuntu. Before you ask I'm using xampp in Linux not the normal Ubuntu stack. The reason I'm running Newscoop in windows if for Camtasia because, video sucks in Linux.

    ----- Original Message -----
    From: "Andrey Podshivalov" <newscoop-support@lists.sourcefabric.org>
    To: dai7261@gmail.com
    Sent: Thursday, 10 March, 2011 8:37:04 PM
    Subject: [newscoop-support] Re: upgrade failiure

    hi

    Quote:

    1, running back up according to manual fails. on windows? Yes, the scripts in bin folder doesn't work in standard windows environment. Scripts requires unix tools like bash, tar and mysqldump utility. In linux environment the scripts usually works w/o issue. Otherwise you can try to backup from admin gui instead of command line

    Quote:

    2, Copy and paste of files, also fails. what did exactly happen?

  • Andrey Podshivalov wrote on Thu, 10 March 2011 20:36
    hi

    Quote:
    2, Copy and paste of files, also fails.
    what did exactly happen?


    Upgrading the database from version 2.0.x...
    Then it just freezes.

    This happens
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    hmm, which version you are trying to upgrade?
  • 3.5 to 3.5.1

    ----- Original Message -----
    From: "Andrey Podshivalov" <newscoop-support@lists.sourcefabric.org>
    To: dai7261@gmail.com
    Sent: Friday, 11 March, 2011 10:16:41 AM
    Subject: [newscoop-support] Re: upgrade failiure

    hmm, which version you are trying to upgrade?

  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    You'll be happy to hear that the next version of Newscoop (3.6) will have
    Windows support. :)


    Paul Baranowski
    CTO, Sourcefabric, http://sourcefabric.org

    +1 (416) 832-6436 (Cell)
    Skype: paulbaranowski
    720 Bathurst St. / Suite 203 / Toronto / ON / M5S 2R4 / Canada



    On Wed, Mar 9, 2011 at 12:30 PM, Dai777 <
    newscoop-support@lists.sourcefabric.org> wrote:

    > netbook I'm using is win7 mowes portable for web server. Also got xampp
    > web server on it but, not tried the xampp server version as, I'm using it
    > for practice. I'm running the same setup in virtualbox under xp (host
    > Ubuntu). Ubuntu upgraded ok with a cut and paste job with the files, then
    > running uprade.php but, same process in mowes portable (net book) just
    > hangs.
    >