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)

More
2 years 10 months ago - 2 years 10 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: 2 years 10 months ago by doesthiswork.

Please Log in to join the conversation.

More
2 years 10 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).

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
2 years 10 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.

More
2 years 10 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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
2 years 10 months ago - 2 years 10 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: 2 years 10 months ago by doesthiswork.

Please Log in to join the conversation.

More
2 years 10 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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
2 years 10 months ago - 2 years 10 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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 2 years 10 months ago by holch.

Please Log in to join the conversation.

More
2 years 10 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.

More
2 years 10 months ago - 2 years 10 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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 2 years 10 months ago by holch.

Please Log in to join the conversation.

More
2 years 10 months ago - 2 years 10 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: 2 years 10 months ago by doesthiswork.

Please Log in to join the conversation.

More
2 years 10 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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
2 years 10 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.

More
2 years 10 months ago #233258 by holch

I exported the survey and imported it again and it works again.


Well, good that it works. We don't know what the real issue was, but sometimes it is just one stupid little thing.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
2 years 10 months ago - 2 years 10 months ago #233259 by doesthiswork
Is there an option to mark this problem as solved?
Last edit: 2 years 10 months ago by doesthiswork.

Please Log in to join the conversation.

More
2 years 10 months ago #233261 by holch
No there isn't. People will have to have a look at the thread to see if it is solved.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose