gratipay / grtp.co

Gratipay Widgets + API
https://grtp.co/
MIT License
26 stars 19 forks source link

Upgrade to Ubuntu 14.04 LTS #106

Closed techtonik closed 8 years ago

techtonik commented 8 years ago

We are running Ubuntu 12.04 on grtp.co droplet, which is probably the reason we still use Node 0.10.28. And the latest Gulp version requires Node 0.12+ https://travis-ci.org/gratipay/grtp.co/builds/89163317#L90

https://www.digitalocean.com/community/tutorials/how-to-upgrade-ubuntu-12-04-lts-to-ubuntu-14-04-lts

chadwhitacre commented 8 years ago

@techtonik I'll invite you to our Digital Ocean team. Can you email me at chad@zetaweb.com (or post here) with the email address you'd like me to use?

techtonik commented 8 years ago

@whit537 techtonik@gmail.com will do.

chadwhitacre commented 8 years ago

Invite sent!

techtonik commented 8 years ago

https://www.youtube.com/watch?v=M-ThqlqOvzY :battery:

techtonik commented 8 years ago

I don't see a way to make switch to new version without downtime without paying for the extra node, so it will take a while.

techtonik commented 8 years ago

Taking down the server..

techtonik commented 8 years ago

Taking snapshot..

techtonik commented 8 years ago

Connection restored..

techtonik commented 8 years ago

Hit this problem with upgrade https://www.digitalocean.com/community/questions/update-on-ubuntu-12-10-server-failing-not-found

techtonik commented 8 years ago

This helped https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release

techtonik commented 8 years ago

vimrc config is different from default.

nginx.cong is also different:

--- /etc/nginx/nginx.conf       2013-11-28 02:54:57.347202913 +0000
+++ /etc/nginx/nginx.conf.dpkg-new      2013-05-09 03:20:27.000000000 +0000
@@ -1,6 +1,6 @@
 user www-data;
 worker_processes 4;
-pid /var/run/nginx.pid;
+pid /run/nginx.pid;

 events {
        worker_connections 768;
@@ -38,15 +38,14 @@
        ##

        gzip on;
-       #gzip_disable "msie6";
+       gzip_disable "msie6";

-       gzip_vary on;
-       gzip_min_length 500;
-       gzip_proxied any;
-       gzip_comp_level 2;
+       # gzip_vary on;
+       # gzip_proxied any;
+       # gzip_comp_level 6;
        # gzip_buffers 16 8k;
        # gzip_http_version 1.1;
-       gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
+       # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

        ##
        # nginx-naxsi config
techtonik commented 8 years ago

Why do we have disable gzip_vary on? @rummik ? For now I am putting it back to original Ubuntu version.

techtonik commented 8 years ago

Restarted..

techtonik commented 8 years ago
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:        13.10
Codename:       saucy

Well... Seems like the process needs to be repeated.

techtonik commented 8 years ago

Changing kernel from control panel..

techtonik commented 8 years ago

Rebooted..

techtonik commented 8 years ago
# uname -ri
3.11.0-26-generic i686
techtonik commented 8 years ago

Disabled password authentication for root as prompted.

techtonik commented 8 years ago

Upgraded to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-67-generic i686). Wheew..

chadwhitacre commented 8 years ago

Yay! !m @techtonik :dancer:

techtonik commented 8 years ago

I will try to up it to 15.10 once I repeat the configuration on local node.

rummik commented 8 years ago

@techtonik Old workarounds for IE6. The default should be fine now.

Seems like I recall there being a bug in the version of NGINX we were using at the time

techtonik commented 8 years ago

@rummik yea, it always helps to have config changes commented with references to such bugs.

rummik commented 8 years ago

@techtonik Yeah. I don't know what I was thinking at the time :P

techtonik commented 8 years ago

@rummik nobody thinks about comments are needed until somebody else tries to read the code. =)

rummik commented 8 years ago

@techtonik I think it was mostly because of how useless I thought making it work well in IE6 was xD

techtonik commented 8 years ago

Maybe it was not useless at that time. Sometimes it is just interesting to hack and it is impossible to resist. :walking:

rummik commented 8 years ago

I didn't really want it in there. IE6 was part of the reqs at the time, and now it isn't