Advertisement:

Author Topic: Session verification failure, can't get in as admin  (Read 1141 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: Session verification failure, can't get in as admin
« Reply #20 on: January 11, 2018, 11:59:42 AM »
Er, what?

First up, don't use session.auto_start. SMF deals with that itself, as it should. If anything this is more likely to be a problem if it is forced on.

Secondly, Apache has nothing to do with sessions whatsoever, that's all PHP and specifically SMF and it certainly isn't configured by default to use memcache, especially as you'd need to know where the memcache server was and what port it ran on. This is why it's off by default.

Are they using the same database or not? I'd make sure there is no reuse of the sessions table.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline MensaMod

  • Semi-Newbie
  • *
  • Posts: 54
Re: Session verification failure, can't get in as admin
« Reply #21 on: January 11, 2018, 12:55:42 PM »
No, they're two separate databases, m2madmin_ipb and m2madmin_sandbox_ipb, as confirmed by repair_settings.php.

Offline MensaMod

  • Semi-Newbie
  • *
  • Posts: 54
Re: Session verification failure, can't get in as admin
« Reply #22 on: January 12, 2018, 11:09:16 AM »
Is there a log somewhere that records more information on a "verification failure?"

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,338
  • There's someone in my head but it's not me.
Re: Session verification failure, can't get in as admin
« Reply #23 on: January 12, 2018, 12:20:59 PM »
This a forum error, SMF will sometimes display an error that isn't what's actually happening, especially if there's a server glitch.  Have you tried overwriting the files with upgrade package?  That would at least eliminate a script error.

Offline MensaMod

  • Semi-Newbie
  • *
  • Posts: 54
Re: Session verification failure, can't get in as admin
« Reply #24 on: January 12, 2018, 04:24:45 PM »
I'm boggling at that, because of not being able to log in and use good ol' Package Manager.  I've downloaded the upgrade_2-0-15.zip file and will try it out on Sunday if no-one comes up with something better before then.

Offline MensaMod

  • Semi-Newbie
  • *
  • Posts: 54
Re: Session verification failure, can't get in as admin
« Reply #25 on: January 14, 2018, 06:01:57 PM »
This is not going well.  I used Win10 to extract everything from upgrade_2-0-15.zip to a fresh folder, then used cPanel's File Manager facility to upload the entire file structure to a fresh directory at /public_html/sandbox/public_html, which is where the sandbox SMF is rooted.  Double-checked each folder to be sure that the uploaded structure matches what's in the .zip file.

Next issue is how to get upgrade.php to execute.  File Manager doesn't have a Run option, although I can View it just fine.  Of course, double-clicking the file in File Manager presents me with options at my PC, not at the server.  I've tried invoking the code through FireFox, Edge and Chrome with the following variations
to no avail.  The https versions were generally blocked by the browser on security grounds.  #2 got me a blank white screen.  #4 on FireFox gives me a blank white screen; on Edge and Chrome I get Error 500 (first image).  The other two images show the top and bottom of the upgrade.php file.

How should I be doing this?

<edited to add...  Just saw this for resetting the Admin pswd ... Is this worth a try or would I just get myself deeper into a mess?>

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,259
  • Gender: Male
    • Kindred-999 on GitHub
Re: Session verification failure, can't get in as admin
« Reply #26 on: January 14, 2018, 09:33:48 PM »
You do not extract it to a separate directory. You OVERWRITE your existing smf installation....   and you do not need to run upgrade.pho to go from one 2.0.x version to another. There have been no database changes in 2.0.x
« Last Edit: January 15, 2018, 12:49:22 AM by Kindred »
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,338
  • There's someone in my head but it's not me.
Re: Session verification failure, can't get in as admin
« Reply #27 on: January 14, 2018, 09:39:44 PM »
If you uploaded the 2.0.15 upgrade package to a new directory, you need to copy Settings.php and Settings_bak.php from old install to new, then run repair_settings to reset paths to new directory.  That should get you running with the existing database.

Offline MensaMod

  • Semi-Newbie
  • *
  • Posts: 54
Re: Session verification failure, can't get in as admin
« Reply #28 on: January 14, 2018, 10:34:19 PM »
Ah.  Thanks for the clarification.  I'll try that in the morning.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,259
  • Gender: Male
    • Kindred-999 on GitHub
Re: Session verification failure, can't get in as admin
« Reply #29 on: January 15, 2018, 12:51:34 AM »
I really recommend not doing it the way Sir Osis suggests.

Take a backup of the files and the database
then overwrite the existing files with the upgrade archive/extract

putting it in a different directory and then resetting the URLs, etc just adds one more thing that COULD cause complications.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,338
  • There's someone in my head but it's not me.
Re: Session verification failure, can't get in as admin
« Reply #30 on: January 15, 2018, 12:34:01 PM »
But it also leaves the production install untouched, which can be a good thing based on some of the awful things I've seen done to forums.  Besides, OP has already done a new install in different directory, may as well give it a go.

Offline MensaMod

  • Semi-Newbie
  • *
  • Posts: 54
Re: Session verification failure, can't get in as admin
« Reply #31 on: January 15, 2018, 01:15:19 PM »
To clarify -- I'm playing with the sandbox, which is only for pre-prod testing.  Basically, the production system is my backup because if the sandbox becomes totally unusable my recovery would be to recreate it by laying down prod system backups over what's in /public_html/sandbox/public_html and the .sandbox mySQL database.

Question -- I've finally figured out what the Attachments directory is for.  When I overlaid the sandbox database with a copy of the prod database, I didn't do anything to sync the respective Attachments directories.  Or any of the other directories in the sandbox file system.  Could that contribute to my problem?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,259
  • Gender: Male
    • Kindred-999 on GitHub
Re: Session verification failure, can't get in as admin
« Reply #32 on: January 15, 2018, 05:55:07 PM »
No. That will cause issues with attachments but has nothing at all to do with sessions.

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,259
  • Gender: Male
    • Kindred-999 on GitHub
Re: Session verification failure, can't get in as admin
« Reply #33 on: January 15, 2018, 09:23:42 PM »
Bad advice deleted...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline MensaMod

  • Semi-Newbie
  • *
  • Posts: 54
Re: Session verification failure, can't get in as admin
« Reply #34 on: January 18, 2018, 11:46:45 PM »
Still no joy. In public_html/sandbox/public_html/Themes I deleted the subdirectories for Graystyle, Splat and Sunset (the three that had failed the upgrade's test).  Then I copied all the files from the following directories of smf_2-0-15_upgrade.zip onto the corresponding subdirectory of /public_html/sandbox/public_html
  • avatars
  • Smileys
  • Sources
  • Themes
  • plus the top-level files (agreement.txt, index.php, etc) onto /public_html/sandbox/public_html
I didn't copy the attachments, cache or Packages contents, all of which contained only the "protecting your directory" index.php files.
I checked the target directories and in each case there's a slew of files bearing today's date, plus (in many but not all cases) another file with the same name plus a trailing tilde (for instance, both index.php and index.php~ but only agreement.txt).  So I'm pretty sure that the copy operations worked.

But when I browse to http://agm2m.org/sandbox/public_html/ (and get a proper-looking logon panel), I still get the "Session verification failure" display (and no more informative error message).

Is there a log somewhere that provides more clues about what's going awry?

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,338
  • There's someone in my head but it's not me.
Re: Session verification failure, can't get in as admin
« Reply #35 on: Yesterday at 12:17:50 PM »
Could be a problem with server config confusing forum by having two /public_html directories.  If you want to work with test install, why not just set it up in a different directory in main /public_html?

Offline MensaMod

  • Semi-Newbie
  • *
  • Posts: 54
Re: Session verification failure, can't get in as admin
« Reply #36 on: Yesterday at 01:56:19 PM »
This setup has worked fine for us for several prior upgrade cycles.  Going over my notes, I see that the only new wrinkles were
  • restoring a cPanel "partial backup" of the live database on top of the old sandbox database (the prior sandbox database was a restore of a phpAdmin Export into a brand new declare -- our Messages table is now over the 50-MB limit for that process)
  • the code upgrade from 2.0.12 to 2.0.15

Online Aleksi "Lex" Kilpinen

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,927
  • Gender: Male
  • The Artist Formerly Known as LexArma
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: Session verification failure, can't get in as admin
« Reply #37 on: Today at 01:55:39 AM »
Just a note, but I think cPanel allows you to duplicate a database without having to do the export/import routine yourself.
For a sandbox install that might be easier to do as well. Could be something to consider.

Also, I agree with Sir Osis on the path issue in part, it's probably not a good idea to have public_html/sandbox/public_html if you don't really have to. Makes it easier for you as well to spot wrong paths and urls. You could just run SMF in public_html/sandbox directly, or create another easy to remember folder like public_html/test :)
Finnish Native Language Support Specialist & Former (Lead) Support Specialist