Opened 2 years ago

Closed 2 years ago

#2774 closed task (fixed)

Move planet.osgeo.org to osgeo3 geo-docs

Reported by: robe Owned by: sac@…
Priority: normal Milestone: Sysadmin Contract 2022-II
Component: SysAdmin Keywords:
Cc: jsanz

Description

planet.osgeo.org is currently house on old-webextra (which is still running wheezy). I think I've moved most things off of it. This is one I haven't moved yet.

Plan is to move it to osgeo3-geo-docs which is not currently used for anything at moment (though plans to house geo related docs like geoserver-docs and geotools-docs here). These are all light-weight things.

Challenge with planet is that it relies on I think python2. I had similar issue getting planet.postgis.net to run on newer debian (which is a fork of the planet.osgeo.org). So I think I can work around this issue.

Change History (6)

comment:1 by robe, 2 years ago

Okay I have done

#on osgeo3-geo-docs

sudo usermod -a -G sudo jsanz
sudo apt install python2
cd /var/www
svn checkout https://svn.osgeo.org/osgeo/planet/venus/ venus

changed /var/www/venus/bin/planet_update.sh (to use /usr/bin/python2 (instead of /usr/bin/python) )

sh /var/www/venus/bin/planet_update.sh

#set up /etc/nginx/sites-available/planet.osgeo.org to have root /var/www/planet
ln -s /etc/nginx/sites-available/planet.osgeo.org  /etc/nginx/sites-enabled/planet.osgeo.org

nginx -t
systemctl reload nginx
added to sudo crontab -e  5,35 * * * * sh /var/www/venus/bin/planet_update.sh

#we can move crontab rule to a dedicated, but wanted to replicate what we had on old server

#set up proxy config on osgeo3-osgeo3-nginx /etc/nginx/sites-available/planet.osgeo.org

Should be accessible on

http://staging.planet.osgeo.org/

have to figure out why the without / is not working.

Last edited 2 years ago by robe (previous) (diff)

comment:2 by robe, 2 years ago

Cc: jsanz added

okay I think the above issue I have fixed now

http://staging.planet.osgeo.org

jsanz,

can you confirm you can log into osgeo3-geo-docs and all looks good to you Using instructions - https://wiki.osgeo.org/wiki/SAC_Service_Status#osgeo3

If all looks good, I'll move planet.osgeo.org from old-webextra to geo-docs on osgeo3 and enable the ssl.

comment:3 by robe, 2 years ago

Okay hopefully it's fixed once and for all. I think I was missing an ipv6 target.

comment:4 by jsanz, 2 years ago

can you confirm you can log into osgeo3-geo-docs and all looks good to you

I confirm I could access osgeo3-geo-docs container and everything looks good to me. I run the planet update script manually (as superuser) without issues.

Thanks!!

comment:5 by robe, 2 years ago

Great to hear. I'm going to start the switchover process and then will shut down planet on old server after 72 hours to let dns propagate. I'll close this out after 72 hrs.

comment:6 by robe, 2 years ago

Resolution: fixed
Status: newclosed

Okay it's moved now. Seemed to take effect immediately for me.

committed at https://git.osgeo.org/gitea/sac/osgeo3/commit/e8368052e6f8681743dd99a75772e5a7ba7ff882

I'll close this out and put on my calendar to remove the planet.osgeo.org from old-webextra and osgeo7 nginx in 2 days.

Note: See TracTickets for help on using tickets.