504 Gateway Time-out on MSM sites
I have a website with MSM that had two sites running with Low Variables without any issues. But while adding two additional sites, Low Variables for these new sites seems to be broken. I'm getting a 504 Gateway Time-out after 10 minutes when trying to access the module. On the first two websites Low Variables still seem to work properly.
One thing I noticed is that some of the copied variables (I think it was one field in both sites) from the first site had a suffix '-2'; like the name was not available, so it added a suffix to it. I think the time-outs started when removing these suffixes.
This issue is occurring on a live website, so I hope to get any help asap. Thanks!
Replies
Low 19 Jul 2015 08:48
I'm currently on holiday and it's the weekend. I'm checking support once a day.
Did you copy over the variables using EE's MSM site-copy method? LV can't influence that, so maybe something chocked there. Also, LV won't add numeric suffixes to the vars, so it looks like something else did that.
Is the front-end of the site working properly? And what are your EE, LV and PHP versions?
marien 20 Jul 2015 04:37
Yes, I copied the site using EE's MSM site-copy method. There was a gateway time-out then as well, so I think that's where something went wrong.
The front-end is still working properly. The new sites aren't fully configured yet though, so I didn't test everything yet.
I also contacted EllisLab about this, hope to hear from them today.
EE 2.9.2, LV 2.5.0, PHP 5.4.41
marien 20 Jul 2015 18:20
I just got this update from EllisLab:
Robin Sowell (ticket #85649):
Low 20 Jul 2015 21:26
For the variable IDs that were pointed out, what type are the variables? Can you change them to Textareas and see what happens?
marien 21 Jul 2015 07:44
They are all Playa fields. When I change them to textarea's, I just get the php errors, but no 500 error.
Low 21 Jul 2015 09:16
That looks like there is no config data for those vars. How about re-saving each of those Wygwam and Select Files vars settings? You could do the same for the Playa vars. Does that help?
marien 21 Jul 2015 11:28
That seems to solve it! For one site at least. But I think Robin Sowell can help me get the variable id's for the other site as well, so I can change them to textarea's and then edit those one by one (now I'm still getting the timeout on the other site).
I used this for the initial change of field types:
I guess that's what's caused the issue? Maybe that shouldn't be available for all fields? Or it should give fields some initial config data.
marien 21 Jul 2015 15:26
I'm afraid it's not solved yet. When I set the field types back to Playa, the timeout is back.
The time-out is only occurring in groups that have one or more Playa fields. All groups without Playa fields load properly.
The other fields are still fine after re-saving though (Wygwam, Select Files).
Low 22 Jul 2015 08:26
Hmm, how about deleting those Playa vars and recreating them?
I think if the timeout occurs for Playa fields, it's either Playa or a combination of LV and Playa at play here.
marien 24 Jul 2015 08:30
When I add a new Playa field, it takes very long and then I get an error 500.
When I view the group it's in in LV, I get a time-out.
I can access the page "Manage variables", and I see the fields are saved.
Low 24 Jul 2015 11:21
I'll need to take a look myself. Please send SuperAdmin login and FTP credentials to hi at gotolow dot com if you can.
marien 27 Jul 2015 08:38
I just sent you the login details. Let me know if you need anything else.
Low 27 Jul 2015 11:37
It looks like Playa chokes when you show all entries from all sites (which is the default setting).
Try adding some filters to the Playa var settings, limiting the entries to the site itself rather than all sites.
Note that, technically, the timeout occurs in Playa, when LV calls the fieldtype to return the drag/drop panes interface, making this more a Playa issue than a LV issue.
For now, you should be able to fix it by simply enabling some filters in the Playa settings.
marien 28 Jul 2015 09:00
That seems to work! Thanks!