Ticket #274 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Bring DEV and TEST up to speed with LIVE

Reported by: jim Owned by: chris
Priority: major Milestone:
Component: Dev server Keywords:
Cc: chris, laura Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 2.0

Description

Once #263 (code/module updates) and #160 (piwik stats) are in place, DEV and TEST should be brought up to date LIVE's data.

Might also be blocked by #224 (Varnish).

Does the live2dev script still work as expected Chris?

Change History

comment:1 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.1
  • Total Hours changed from 0.0 to 0.1

I have added a comment to ticket:263#comment:4 the Piwki ticket:160 site is almost ready.

Varnish ticket:224 still needs some more work.

I expect that wiki:DevelopmentServer#live2dev script should work OK but I haven't tested it recently -- try it, if it doesn't work I can fix it :-)

comment:2 Changed 5 years ago by jim

Laura's gonna need a good mirror of LIVE on DEV to finish her theme work.

comment:3 Changed 5 years ago by chris

Does the live2dev script still work as expected Chris?

I'm happy to run the live2dev script now if that would help.

comment:4 Changed 5 years ago by jim

That's great Chris, but please hang back a little while... I'm going to do a few more bits on LIVE that are going to be needed by Laura.

Are you happy to lose what you did on DEV? (Session443 and Piwik at this point)?

comment:5 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.1
  • Total Hours changed from 0.1 to 0.2

Are you happy to lose what you did on DEV? (Session443 and Piwik at this point)?

No problem, all I did can be redone, these are the things I think I changed:

Piwik

Piwik site ID: 2

Piwik HTTP URL: https://piwik.transitionnetwork.org/

Piwik HTTPS URL: https://piwik.transitionnetwork.org/

Custom tracking settings: Track users by default, but let individual users to opt out.

Session 443

Force HTTP for anonymous users: Disabled

comment:6 Changed 5 years ago by chris

Jim -- would you like me to sync the dev site with the live one? I can do it now if you want.

comment:7 Changed 5 years ago by jim

  • Cc laura added

Might as well, thanks.

comment:8 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.5
  • Total Hours changed from 0.2 to 0.7

OK, that was interesting, it seems it hadn't been run since the sharing engine was added and it looks to me like it's ended up with importing that database not the live one, oops, I'll fix it now...

comment:9 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.5
  • Total Hours changed from 0.7 to 1.2

So the problem of the sharing engine data being dumped into the dev database has been sorted.

After the script had run there was also a load of errors when accessing the site until I flushed the caches.

One bug I haven't tracked down is why some images didn't sync, I ran this manually to sort that:

rsync -av  /home/live/quince/web/transitionnetwork.org/www/sites/default/files/uploaded/ \ /web/dev.transitionnetwork.org.webarch.net/www/sites/default/files/uploaded/

Laura, Jim -- can you look at the site here and http://dev.transitionnetwork.org/ and let me know if there are any other glitches?

comment:10 Changed 5 years ago by chris

  • Owner changed from jim to chris
  • Status changed from new to assigned

comment:11 Changed 5 years ago by laura

Just had a v quick peek (only a couple of pages - will look in more fuller detail over w/end) looking good so far. Well done lads! Will help no end with testing out some theming ideas before they go to live! :)

comment:12 Changed 5 years ago by chris

Some things might not work correctly due to the Session 443 module not being installed -- that and Piwik, and I guess some others, need enabling, Jim can you do that?

The Piwik and Session 443 settings I changed before are here: ticket:274#comment:5

comment:13 Changed 5 years ago by jim

  • Piwik enabled, settings re-applied.
  • Session443 enabled, Secure Pages removed, settings applied include "Ignore pages:" {{{

*/autocomplete/*
*/ajax/*
*/ahah/*
filefield/progress/*
admin/content/nodequeue/*
}}}

  • DEV still suffers the 'won't submit big forms' issue.

comment:14 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.2
  • Total Hours changed from 1.2 to 1.4

DEV still suffers the 'won't submit big forms' issue.

Weird it had settings for bigger files than the live server, I have upped them again, these are the key values from /etc/php5/apache2/php.ini:

max_execution_time = 120    ; Maximum execution time of each script, in seconds
max_input_time = 240 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M      ; Maximum amount of memory a script may consume (128MB)
upload_max_filesize = 100M
max_file_uploads = 50
default_socket_timeout = 120
post_max_size = 128M

Does it work now?

Or perhaps the problem is elsewhere?

comment:15 Changed 5 years ago by jim

No idea why, but this page still won't submit on DEV: https://dev.transitionnetwork.org/admin/user/permissions

Fine on live...

comment:16 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.1
  • Total Hours changed from 1.4 to 1.5

Weird it works for me, can you try it again?

comment:17 Changed 5 years ago by jim

Nope. I either get no message at the top (the page just reloads) or I get 'Validation error' which is Drupal-speak for "this form got buggered somewhere, won't let you submit".

When saving that page it should say 'Configuration saved' or similar in a blue box at the top - absence of which means no save at all...

comment:18 Changed 5 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.5
  • Total Hours changed from 1.5 to 2.0

Weird, I can't work this out, there were some setting in /etc/php5/conf.d/suhosin.ini which were different from the live server but making them match hasn't helped, I have also tried disabling suhosin. I'll continue trying to track it down...

comment:19 Changed 5 years ago by chris

OK, fixed I think, in /etc/php5/apache2/php.ini we had:

magic_quotes_gpc = On

Where as the live server had it off, setting it to off appears to have solved it?

comment:20 Changed 5 years ago by jim

That's fixed it, well done.

comment:21 Changed 5 years ago by chris

  • Status changed from assigned to closed
  • Resolution set to fixed

Cool, closing this now :-)

Note: See TracTickets for help on using tickets.