Zen Cart Logo
Forums / Upgrading to 1.5.x / Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

Views: 5,011

Results 1 to 12 of 12
18 Jan 2016, 6:46 PM
#1
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

Am trying to upgrade from 1.3.9h to 1.5.4

Installing 1.5.4 in a new directory works fine, with a brand new database.

  • unzipped a fresh copy of 1.5.4 into empty directory
  • connected to my 1.3.9h database (copy)
  • configure.php files are correct
  • ran zc_install, which correctly found the database and recommended the correct upgrade path

When it asks for the Admin Username / Password at the bottom of the database upgrade page, it will not accept any answer I give it.
Error is: Admin password required to proceed with upgrade...

  • I add the admin name & password I used (or used on a previous installation test?)
  • I add the temporary password in case this installation doesn't have the "permanent" password
  • If I try to log in to the admin area to confirm the password, I get "database upgrade required. please run the 1.3.9-to-1.5.0 upgrade via zc_install"
  • the Admin Setup page is several pages AFTER the database upgrade

Nothing works

zc_install is stuck. Can't go forward. How do I solve this?

TIA,

Al

18 Jan 2016, 7:47 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

Scroll down to Similar Threads and see if any of those help.

18 Jan 2016, 8:03 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

Also as usual, may help if the questions of the posting tips are answered...

Haven't followed the below links as suggested by dbltoe, but something that has helped me in the past is to use the sql for the version from which upgrading in the following thread: http://www.zen-cart.com/content.php?44

One issue at the moment though is that likely your password has been "rewritten" because of the attempt to login to the admin... Don't recall the "affect" of the rewrite, but it is not a standard part of the upgrade and can make it difficult to upgrade...

The other thing I have seen is that the admin user_id has been 0 as well as the admin_profile. These should all be non-zero values...

18 Jan 2016, 10:57 PM
#4
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

dbltoe:

Scroll down to Similar Threads and see if any of those help.

Unfortunately, no. And I had looked for other threads before posting.

This is a new 1.5.4 install. I set up the db in advance, imported the old 1.3.9h data. When zc_install (running the first time) got to the Database Setup page, it recognized an upgrade option. I selected that option but am now stuck.

It occurs to me that since I haven't reached the Admin Setup page yet, there may not even BE an admin username & password.

Also just above the bottom there is the "Change Database Prefix" box. That's pre-filled with "zen_" which I've used with 1.3.9h. The instructions seem to say that the box should be left blank, otherwise I'd end up with "zen_zen_" or something. I'm getting an error about that, too. "Can't rename all tables" (The db hasn't been touched.) I've tried logging in both ways: rename blank and with zen_

Thanks

18 Jan 2016, 11:06 PM
#6
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

mc12345678:

Also as usual, may help if the questions of the posting tips are answered...

Haven't followed the below links as suggested by dbltoe, but something that has helped me in the past is to use the sql for the version from which upgrading in the following thread: http://www.zen-cart.com/content.php?44

One issue at the moment though is that likely your password has been "rewritten" because of the attempt to login to the admin... Don't recall the "affect" of the rewrite, but it is not a standard part of the upgrade and can make it difficult to upgrade...

The other thing I have seen is that the admin user_id has been 0 as well as the admin_profile. These should all be non-zero values...

Aha! Looking in the SQL zen_admin table provided the answer: zen_install accepted the old admin username/password that was brought over with all the 1.3.9h data.

The rest should go smoothly now.

Thanks again!

18 Jan 2016, 11:58 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

connected to my 1.3.9h database...
zen_install accepted the old admin username/password that was brought over with all the 1.3.9h data.
Now does that not make sense???

19 Jan 2016, 12:10 AM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

acmaurer:

Am trying to upgrade from 1.3.9h to 1.5.4

  • I add the admin name & password I used (or used on a previous installation test?)
  • I add the temporary password in case this installation doesn't have the "permanent" password
  • If I try to log in to the admin area to confirm the password, I get "database upgrade required. please run the 1.3.9-to-1.5.0 upgrade via zc_install"
  • the Admin Setup page is several pages AFTER the database upgrade

Nothing works

zc_install is stuck. Can't go forward. How do I solve this?

TIA,

Al

kobra:

Now does that not make sense???

Not sure what happened between the 3rd "bullet" above and now, but it would seem that the credentials attempted were not directly associated with the database being imported, but instead some previous/unrelated credentials. I will say that I was a bit confused by the statement that there was something in the database viewable that cleared the confusion (ie passwords should be encrypted beyond the ability to see and type) so the fact that an incorrect set of credentials was being provided seems the only possibility. Be curious though too if it could have been something else... Afterall, someone else is likely to be referenced to this thread at some point... Would be good for them to be able to gain from this experience.

19 Jan 2016, 12:10 AM
#9
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

It would--especially if I could now log into the (renamed) admin area with that same username/password.

New installation: pretty straightforward.
Upgrading: a minefield.

I'm remembering why I put this off for so long...

19 Jan 2016, 12:16 AM
#10
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

mc12345678:

Not sure what happened between the 3rd "bullet" above and now, but it would seem that the credentials attempted were not directly associated with the database being imported, but instead some previous/unrelated credentials. I will say that I was a bit confused by the statement that there was something in the database viewable that cleared the confusion (ie passwords should be encrypted beyond the ability to see and type) so the fact that an incorrect set of credentials was being provided seems the only possibility. Be curious though too if it could have been something else... Afterall, someone else is likely to be referenced to this thread at some point... Would be good for them to be able to gain from this experience.

I couldn't "see" the password, just the username. But I knew the password that went along with it.

19 Jan 2016, 6:02 AM
#11
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

It's normally just a matter of overthinking what it's asking. If you import a database and the system needs a username and password to update it, wouldn't it be looking for the username and password for the database you imported?
The good news is that the new install for 1.5.5 makes it a little clearer as to what is needed.

19 Jan 2016, 2:38 PM
#12
acmaurer avatar

acmaurer

New Zenner

Join Date:
Jan 2012
Posts:
27
Plugin Contributions:
0

Re: Upgrading database to 1.5.4 - zc_install doesn't recognize admin password

dbltoe:

It's normally just a matter of overthinking what it's asking. If you import a database and the system needs a username and password to update it, wouldn't it be looking for the username and password for the database you imported?
The good news is that the new install for 1.5.5 makes it a little clearer as to what is needed.

Guilty as charged! Sometimes the best thing to do is take a break and come back to it later. :D

After several attempts in which I went through the whole upgrade process and the installer wiped out the database (meanwhile I entered new admin creds), it finally recognized the 1.3.9h database. I found the upgrade option, but was myself stuck on the new admin creds I had entered in previous attempts.

Then, when it finally completed I got stuck with the sessions problem documented in another thread: the admin login page wouldn't take those admin creds to log in to the admin area. Took a while to figure that one out, but trying with another browser (as suggested by Dr. Byte) proved the issue and closing out and reopening Firefox made it work again.

All of which leads me to heartily endorse the advice given here (best practice, really): always, always, always practice the migration on a clean copy of your data in a new and separate location. Work out all the bugs before you even think of touching production!

Thanks again to all who took the time to respond.