Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Login Loop and questions not being loaded after restoring LimeSurvey (snapshot)

  • doesthiswork
  • doesthiswork's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago - 1 year 5 months ago #233238 by doesthiswork
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.27.19+210928
Own server
==================
Hi,

I tried upgrading my LimeSurvey installation to the newest version. I bricked one of my surveys so I went to the previous version I used. I did a snapshot of the server before hand.

The problem is now that when I open a survey the questions are being loaded and I only see the header with Leave Survey and delete answers and the next button on the bottom.

When trying to login into the admin page I am being redirected to the login page. Non of my users work.

I checked both HTTP and HTTPs and on both pages I cannot login.

When trying to submit a survey it says the session timeouted. "I was either inactive for too long or I deactivated the cookies"

Any idea on where I should look?

Best regards
Last edit: 1 year 5 months ago by doesthiswork.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233240 by holch
How did it "brick" your survey? Did you use any custom workarounds / themes in this specific "bricked" survey?

Because in between the same branch (LS3 to LS3) this shouldn't really happen. And your version is not THAAAAAAT old, only a little bit more than a year without bug and security fixes.

Did you try to delete the cache, both of your computer and Limesurvey? E.g. clean the assets (I think there is a button for that in the backend, can't look right now).

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • doesthiswork
  • doesthiswork's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago #233241 by doesthiswork

How did it "brick" your survey? Did you use any custom workarounds / themes in this specific "bricked" survey?

Yes, we have a custom survey. Where a function did not work properly anymore.

I wanted to reverse the update process with the snapshot I created beforehand.

Did you try to delete the cache, both of your computer and Limesurvey?

Is it possible to do that via cli? Because I cannot login to the admin page because I am instantly redirected to the login page again. I tried resetting the browser cache but that did not help the redirect issue.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233243 by holch
I have no idea. Are you sure that you have uploaded all files from the backup?

How did you do the backup? Sometimes FTP doesn't upload all files. Just a wild guess though.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • doesthiswork
  • doesthiswork's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago - 1 year 5 months ago #233244 by doesthiswork
I shutdown the vm and created a snapshot. I restored the snapshot and after that the issue started.
Last edit: 1 year 5 months ago by doesthiswork.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233245 by holch

Yes, we have a custom survey. Where a function did not work properly anymore.


That is what I mean. This sounds strange because usually workarounds should work within the same branch of LS. The breaks usually happen between major versions of LS (LS3 --> LS5). But within LS usually the themes don't change and thus custom functions should still work.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago - 1 year 5 months ago #233246 by holch

I shutdown the vm and created a snapshot. I restored the snapshot and after that, the issue started.


That sounds even stranger. But I am not an expert on VMs. So I won't be able to help.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 1 year 5 months ago by holch.

Please Log in to join the conversation.

  • doesthiswork
  • doesthiswork's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago #233250 by doesthiswork
Thank you for your input!

I guess I will have to look aroud if I can find anything!

Is there a repair tool anything for LimeSurvey?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago - 1 year 5 months ago #233252 by holch
In theory, you can just install over the old installation, just like with a manual update/upgrade (but you need to secure some files as described in the manual for the "manual update/upgrade". At the end it is just a bunch of files on a webserver.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 1 year 5 months ago by holch.

Please Log in to join the conversation.

  • doesthiswork
  • doesthiswork's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago - 1 year 5 months ago #233253 by doesthiswork
I fixed it. What I did is remove the contents of the /var/www/html folder. Before I backuped the /application/config and /upload folder.

After that I downloaded the current LimeSurvey CE LTS package. Unzipped and placed it in the /var/www/html folder.

Changed owner to www-data. Then I followed the installation.

I got the following error in the installation check: session.save_path: /var/lib/php/sessions

Then I checked on the server and the directory was missing. I created the directory and gave the www-data user rights to it.

Now I can access the admin page again and the surveys load properly as well.

I don't know why the folder was missing all of the sudden.. A little strange

I will have to check why the survey isn't properly working.

It has 3 questions. One question is a list question which has 2 options. If you chose the first option it displays a table. The second option shows another table and hides the previous tables.

Now when I try to change between the tables it does not hide the previous table and does not show the new one. I have done the hiding of the question with a relevance equation.

Thank you so much for your help!!
Last edit: 1 year 5 months ago by doesthiswork.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 5 months ago #233254 by holch
Post the LSS file here with only the relevant questions and you can change the question texts if you feel needed. Then we can have a look at this. There might be an error in the relevance equation.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • doesthiswork
  • doesthiswork's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 5 months ago #233256 by doesthiswork
The relevance equation was correct. I exported the survey and imported it again and it works again.

Thank you for your quick help and inputs! Greatly appreciated.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose