Difference between revisions of "Download Server"

From OSGeo
Jump to navigation Jump to search
 
(11 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
= Configuration =  
 
= Configuration =  
  
The OSU OSL "Download" VM is being used (140.211.15.132)
+
The download container on osgeo7, ssh via upload.osgeo.org (requires SSH key) Refer to [[SAC_Service_Status#Download|SAC_Service_Status Download Container]]
  
* It is known as "download.osgeo.org", and is configured to respond to that.
+
* download.osgeo.org should not be used as it is a round robin that floats between osgeo7, osgeo8, and osgeo9 to balance load.
* The upload.osgeo.org DNS name also points to it.
+
* The upload.osgeo.org DNS name only points to the osgeo7 download container
* The downloadable tree is found in /osgeo/download on the server.
+
* The downloadable tree is found in /osgeo/download on the server. (mirrored at https://ftp.osuosl.org/pub/osgeo)
* /osgeo/download/download6 sub tree is nfs mounted from osgeo6 (currently osgeo4w and qgis in /osgeo/download point to a corresponding directory in download6)
+
* The virtual host declaration is found in /etc/nginx/sites-available
* The virtual host declaration is found in /etc/apache2/sites-available/download2.osgeo.org.conf.
+
* Logs are in /var/log/nginx
* Logs are in /var/log/apache2/download_access_log and /var/log/apache2/download_error_log.
 
  
= Access Log Viewer (awstats) =
+
* bottle.download.osgeo.org (Mac Bottles) is also hosted on this server and in folder /osgeo/bottle mirrored at https://ftp.osuosl.org/pub/osgeo/bottle
 
 
To maintain/view the Apache access logs of download server, the debian [http://awstats.sf.net/ awstats] package has been installed on the server.
 
with site configuration in /etc/awstats/awstats.download.osgeo.org.conf.  It's updated every 4 hours by /etc/cron.d/awstats. See them now at [http://download.osgeo.org/stats/]
 
  
 
= Management =  
 
= Management =  
Line 22: Line 18:
  
 
Any administrator can create new project directories, and chown them to a project representative.
 
Any administrator can create new project directories, and chown them to a project representative.
 
Contact Frank Warmerdam for overall configuration questions or about problems.
 
  
 
= End Users =  
 
= End Users =  
Line 29: Line 23:
 
End users should be referred to downloads similarly to:
 
End users should be referred to downloads similarly to:
  
  http://download.osgeo.org/gdal/gdal-1.3.2.tar.gz
+
  https://download.osgeo.org/gdal/gdal-1.3.2.tar.gz
 
 
Directory indexing is left on so requesting a directory will give a file list.
 
 
 
= FTP Service =
 
 
 
There is FTP service configured on the '''download.osgeo.org''' blade. The FTP access is served by [http://vsftpd.beasts.org/ vsftpd] - secure and fastest FTP server for UNIX-like systems.
 
 
 
The vsftpd daemon configuration is the default one provided with Debian and is suitable for anonymous ftp only.
 
 
 
* root directory: /osgeo/download
 
* '''no''' access for local users
 
* '''no''' write, mkdir or upload privileges
 
 
 
== Controlling FTP Service ==
 
 
 
In order to control the ''vsftpd'' server, you need to:
 
* belong to sudoers
 
* login in to the download.osgeo.org host using SSH client.
 
 
 
Here you can see how to issue two basic commands:
 
  
* Start
+
Directory indexing is left on so requesting a directory will give a file list.
 
 
$ sudo /etc/init.d/vsftpd start
 
 
 
* Stop
 
 
 
$ sudo /etc/init.d/vsftpd stop
 
 
 
* Restart
 
 
 
$ sudo /etc/init.d/vsftpd restart
 
  
 
= Rsync =  
 
= Rsync =  
Line 67: Line 31:
 
The /osgeo/download area is exported for anonymous rsync read access as a module named "download".  The following can be used to pull a local copy of the gdal data tree for instance:
 
The /osgeo/download area is exported for anonymous rsync read access as a module named "download".  The following can be used to pull a local copy of the gdal data tree for instance:
  
  rsync -av download.osgeo.org::download/gdal/data .
+
  rsync -av upload.osgeo.org::download/gdal/data .
  
 
This is controlled by the rsync configuration file at /etc/rsyncd.conf.  It is possible that rsyncd will not automatically restart on reboot in which case "rsyncd --daemon" as root may be necessary to start it.
 
This is controlled by the rsync configuration file at /etc/rsyncd.conf.  It is possible that rsyncd will not automatically restart on reboot in which case "rsyncd --daemon" as root may be necessary to start it.
Line 73: Line 37:
 
= Webdav =
 
= Webdav =
  
Some projects using Maven as their build tool require webdav in order to work. Here's what's required to get that setup:
+
Some projects using Maven as their build tool require webdav in order to work. There is a standalone webdav in nginx setup  
 
+
for geoserver/geotools use using a htpasswd file in /etc/nginx/auth/geotools
* Enable relevant apache modules
 
sudo a2enmod dav
 
sudo a2enmod dav_fs
 
sudo a2enmod ldap
 
sudo a2enmod authnz_ldap
 
 
 
* Add configuration for project specific location and LDAP group filtering
 
* Add configuration for apache ldap auth
 
In the vhost config (examples from svn server)
 
Include includes.d/webdav/<project>.conf
 
In the project.conf (example from tracsvn server
 
Include includes.d/ldap_auth.inc
 
  
 
= Backup =  
 
= Backup =  
  
 
Nightly backups of the /osgeo/download tree are managed using rsync to /mirror/rsync/download.osgeo.org on backup.osgeo.org by root's crontab.
 
Nightly backups of the /osgeo/download tree are managed using rsync to /mirror/rsync/download.osgeo.org on backup.osgeo.org by root's crontab.
/home/other_backups/download directory backup.osgeo.org by a nightly cronjob, and this mirror is available at the url download2.osgeo.org if needed
+
/home/other_backups/download directory backup.osgeo.org by a nightly cronjob, and this mirror is available at the url download2.osgeo.org and http://ftp.osuosl.org/pub/osgeo/download/ if needed
 
(NOTE: that rsync does not delete file on backup.osgeo.org, if they were removed from download.osgeo.org).
 
(NOTE: that rsync does not delete file on backup.osgeo.org, if they were removed from download.osgeo.org).
 +
 +
There is a weekly backup of the whole download container backed up as stopped container on osgeo4 and called download-backup.
  
 
[[Category:Infrastructure]]
 
[[Category:Infrastructure]]
 
[[Category:Services]]
 
[[Category:Services]]

Latest revision as of 21:53, 10 April 2022

There is a need for a "download server" for OSGeo that provides for bulk downloads of software.

Configuration

The download container on osgeo7, ssh via upload.osgeo.org (requires SSH key) Refer to SAC_Service_Status Download Container

  • download.osgeo.org should not be used as it is a round robin that floats between osgeo7, osgeo8, and osgeo9 to balance load.
  • The upload.osgeo.org DNS name only points to the osgeo7 download container
  • The downloadable tree is found in /osgeo/download on the server. (mirrored at https://ftp.osuosl.org/pub/osgeo)
  • The virtual host declaration is found in /etc/nginx/sites-available
  • Logs are in /var/log/nginx

Management

It is intended that each interested project should have a directory under /osgeo/download with appropriate permissions so a project member can manage the subdirectories and files. Scp, or sftp can be used to bring files onto the server. Someone from each project will need their LDAP OSGeo Userid shell enabled, for ssh/scp access.

Any administrator can create new project directories, and chown them to a project representative.

End Users

End users should be referred to downloads similarly to:

https://download.osgeo.org/gdal/gdal-1.3.2.tar.gz

Directory indexing is left on so requesting a directory will give a file list.

Rsync

The /osgeo/download area is exported for anonymous rsync read access as a module named "download". The following can be used to pull a local copy of the gdal data tree for instance:

rsync -av upload.osgeo.org::download/gdal/data .

This is controlled by the rsync configuration file at /etc/rsyncd.conf. It is possible that rsyncd will not automatically restart on reboot in which case "rsyncd --daemon" as root may be necessary to start it.

Webdav

Some projects using Maven as their build tool require webdav in order to work. There is a standalone webdav in nginx setup for geoserver/geotools use using a htpasswd file in /etc/nginx/auth/geotools

Backup

Nightly backups of the /osgeo/download tree are managed using rsync to /mirror/rsync/download.osgeo.org on backup.osgeo.org by root's crontab. /home/other_backups/download directory backup.osgeo.org by a nightly cronjob, and this mirror is available at the url download2.osgeo.org and http://ftp.osuosl.org/pub/osgeo/download/ if needed (NOTE: that rsync does not delete file on backup.osgeo.org, if they were removed from download.osgeo.org).

There is a weekly backup of the whole download container backed up as stopped container on osgeo4 and called download-backup.