Screwed up an upgrade - permissions question

I screwed up the upgrade for one of my sites.  Don't worry about how I did it - something stupid as usual, but I ended up with some extra files so when I try to run the upgrade script it is all grayed out and the upgrade is not available.  What I did right was backup all the files and database first.  When I re-uploaded all the files, the site came back fine, but then when I re-loaded the upgrade files it was still grayed out - the extra files I have their must have screwed things up.

My question it this - and maybe I should know this but I don't.  If I wipe out all the files in that directory, and re-upload my backup files, will all the permissions "keep"?  In other words, are the permissions part of the file definition, or do they get set on the server?  I used filezilla to do the backup and will use it for the upload.

Thanks

Rob

Quote · 4 May 2010

I've look at the diff in winmerge, and now I don't think this has anything to do with extra files - the upgrade just isn't working for some reason.   I simple get the message:

7.0.0 - 7.0.1  Upgrade cannot be applied.

That's it - no explanation at all.   I got my site back by re-uploading the backup, but now what?  This was a modded site - but I didn't go crazy?  I knew I could lose some mods if I did an upgrade, but I didn't think they would prevent be from doing an upgrade.   Can anyone tell me what the issue might be?  I don't even know where to look.

Rob

p.s.  Also, could someone point me to where the file permissions list is for 7.0.1 in case I have to go reset them all manually.

Quote · 4 May 2010

The upgrade controller probably thinks you're already at V7.0.1  Look in the sys_options table for sys_tmp_version under the Name field.  See if it says 7.0.1

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 4 May 2010

I screwed up the upgrade for one of my sites.  Don't worry about how I did it - something stupid as usual, but I ended up with some extra files so when I try to run the upgrade script it is all grayed out and the upgrade is not available.  What I did right was backup all the files and database first.  When I re-uploaded all the files, the site came back fine, but then when I re-loaded the upgrade files it was still grayed out - the extra files I have their must have screwed things up.

My question it this - and maybe I should know this but I don't.  If I wipe out all the files in that directory, and re-upload my backup files, will all the permissions "keep"?  In other words, are the permissions part of the file definition, or do they get set on the server?  I used filezilla to do the backup and will use it for the upload.

Thanks

Rob

i have done that many times and the permissions / chmod always stayed the same

Quote · 4 May 2010

Thanks guys - good info - now that I have it back will try again tomorrow when the brain is working again.  Appreciate your help.

Quote · 4 May 2010

If you see 7.0.1 in your db, it means all of the upgrade sql was executed, and if it does, you may not want to run the upgrade script again.. or need to.  You might just need to overwrite the existing files with those in the upgrade patch, then edit the build # in header.inc.php


Then this:

Automatic part of upgade is completed. Please do the following to complete upgrade process:

  • Clean /cache/, /cache_public/ and /tmp/ via FTP or SSH, leave only .htaccess file there if one exists
  • Recompile language files for all modules from admin panel -> Tools -> Modules
  • Recompile system language file from admin panel -> Settings -> Languages Settings
  • Recompile Orca Forum language file from admin panel -> Modules -> Orca Forum
  • Reinstall 'Profiler' module from admin panel -> Tools -> Modules (you can leave it uninstalled, but do install and uninstall)
  • Set permissions for the following files:
    chmod -v 666 ./flash/modules/chat/xml/config.xml
    chmod -v 666 ./flash/modules/im/xml/config.xml
    chmod -v 666 ./flash/modules/video/xml/config.xml
    chmod -v 666 ./flash/modules/video_comments/xml/config.xml
            
  • A/V Chat / Messenger / Video Player / Video Comments settings were reset, if you changed it before you need to update it again in Dolphin admin panel -> Flash Apps -> A/V Chat / Messenger / Video Player / Comments Video Player -> Settings
  • Remove /upgrade/ directory
  • Change the following lines in inc/header.inc.php file:
    $site['ver']               = '7.0';
    $site['build']             = '0';
            
    to the following:
    $site['ver']               = '7.0';
    $site['build']             = '1';
            
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 4 May 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.