Upgrade problem: wants to start fresh install

dutchbb

Well-known member
Just uploaded the upgrade package to the server, opened it, and dragged the new files to the old ones. This is not how I usually do it, but I thought it would have been quicker than uploading the individual files. When I go to the forums it wants to start a fresh install. What did I do wrong?
 
It sounds like whatever approach you took "synced" the server, as it likely removed config.php (and possibly data and internal_data). You will need to either recreate config.php if that is the only thing missing, or really, if data and internal_data are missing, you'll need to restore from a backup otherwise you're going to lose attachments and avatars.

Here's the minimal library/config.php:
Code:
<?php

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'x';
$config['db']['password'] = 'y';
$config['db']['dbname'] = 'z';
Change as needed.
 
Thanks. Luckily it's a test forum, but this is really strange behavior of the server, it removed all the old files instead of overwriting them. Not sure why it did that.

Edit: avatars are not removed.
 
The installer asked me to remove that file if I wanted to re-install, so I removed it, but then it redirected to a fresh install instead of an upgrade.
 
I would recommend uploading the upgrade package once again.

Then ensure you have the correct details in /library/config.php
And replace the /internal_data/install-lock.php

That should allow you to upgrade.
 
Again it redirects to new install...

fresh_install.webp


I've made some template changes I don't want to lose so I rather not do a fresh install even though it's a test forum.
 
Provided you're going to <url>/install/, then one of those files must not exist - I suspect it's internal_data/install-lock.php.
 
Yes I removed install-lock.php because it said something like 'already installed, remove install_lock.php to re-install'. I thought that way I could upgrade. Oh well I have a backup so I'll just put it back and try again :)
 
Yes I removed install-lock.php because it said something like 'already installed, remove install_lock.php to re-install'. I thought that way I could upgrade. Oh well I have a backup so I'll just put it back and try again :)

That is wrong. You can't upgrade unless the internal_data/install-lock.php file exists.

You can replace the file to fix this. Just create a new file called install-lock.php inside of the internal_data directory. It only checks for the existence of the file. The file doesn't need to contain anything.

Once the internal_data/install-lock.php file is in place then load the /install URL again. It should direct you to the upgrade system.
 
That is wrong. You can't upgrade unless the internal_data/install-lock.php file exists.

You can replace the file to fix this. Just create a new file called install-lock.php inside of the internal_data directory. It only checks for the existence of the file. The file doesn't need to contain anything.

Once the internal_data/install-lock.php file is in place then load the /install URL again. It should direct you to the upgrade system.
I removed it because when it was there I could not upgrade either and the installer told me to remove it if I wanted to re-install. Anyway, I just re-uploaded everything and created the install-lock.php file again and now the upgrade worked.

Thanks for the help.
 
Just go to /install/
and at the end of the url replace ?install with ?upgrade


make sure you're not running in debug mode.
 
If you go to install/ and it says you've already got installed, but to RE-install to remove that file, obviously it is not a step you should follow, as your intentions were to upgrade.
 
If you go to install/ and it says you've already got installed, but to RE-install to remove that file, obviously it is not a step you should follow, as your intentions were to upgrade.
Well, because I was in upgrade mode I thought they meant 'upgrade' when they mentioned 're-install'... Why would it ask to install while I'm upgrading.

The upgrade is done now, this can be locked.
 
One possible reason for upgrade trying to install new is if the upgrade files were uploaded into the root folder of the domain when the forum is in a subfolder. This is the mistake I made and it tried to install as new asking for mysql login information etc. When I finally figured out my mistake and installed the files into the correct /forum folder of the domain everything went smoothly. Even though this error is by the user, the upgrade should not try to proceed when it is evident the upgrade files were not uploaded into the correct folder. The user should be prompted to "please check that the upgrade files were uploaded to the correct folder" rather than asking for mysql information and trying to install a new install by wiping the old db out after asking for the login and username of the mysql db. When it is supposed to be UPGRADE!!
 
Top Bottom