You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Mirrors: Difference between revisions
imported>Dzahn (→Technical info: The server is located at the Equinix data center in Ashburn, Virginia, United States (eqiad).) |
imported>JHathaway No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
== mirrors.wikimedia.org == | == mirrors.wikimedia.org == | ||
The Wikimedia Foundation hosts public mirrors | The Wikimedia Foundation hosts the following public mirrors via http: | ||
* [https://debian.org Debian] (Official) | |||
* [https://ubuntu.com Ubuntu] (Official) | |||
* [https://tails.boum.org Tails] (Official) | |||
* [https://wiki.debian.org/OpenStack Debian OpenStack Backports] (Unofficial) | |||
This service carries the dual purpose of giving back to the FOSS projects we use and as our own internal mirror. | |||
== | == Technical Info == | ||
# Debian | |||
#* Publication Method: | |||
#** DNS A/AAAA Record for ftp.us.debian.org, [https://salsa.debian.org/dsa-team/mirror/domains/-/blob/cf8fed3792929221bb5d3c3bc6a01d006368a7ab/debian.org#L1168-1169 Debian Code] | |||
#** Official US mirror: https://www.debian.org/mirror/sponsors | |||
#* Sync Method: SSH Trigger, syncs are triggered by an SSH forced key command for the <code>mirror</code> user. Debian has <code>StrictHostKeyChecking no</code> set on their side, so changing our SSH host key does not affect Debian's trigger. | |||
# Ubuntu | |||
#* Publication Method: | |||
#** Official US mirror: https://launchpad.net/ubuntu/+mirror/wikimedia-archive | |||
#* Sync Method: Systemd Timer | |||
# Tails | |||
#* Publication Method: | |||
#** DNS A Record for dl.amnesia.boum.org. | |||
#* Sync Method: Systemd Timer | |||
# Debian OpenStack Backports | |||
#* Publication Method: | |||
#** None, not published officially, but open to the public | |||
#* Sync Method: Systemd Timer | |||
== Implementation Info == | |||
As of December 2021 they are hosted on '''mirror1001.wikimedia.org'''. | |||
As of | |||
The server is located at the [[w:Equinix|Equinix]] data center in [[w:Ashburn, Virginia|Ashburn, Virginia, United States]] ([[eqiad]]). | The server is located at the [[w:Equinix|Equinix]] data center in [[w:Ashburn, Virginia|Ashburn, Virginia, United States]] ([[eqiad]]). | ||
Line 30: | Line 46: | ||
There are 2 [[Icinga]] checks called "Ubuntu mirror in sync with upstream" and "Debian mirror in sync with upstream" respectively. | There are 2 [[Icinga]] checks called "Ubuntu mirror in sync with upstream" and "Debian mirror in sync with upstream" respectively. | ||
If one of these alerts you should check on | If one of these alerts you should check on mirror1001 what happens if you manually run the check commands, "/usr/local/lib/nagios/plugins/check_apt_mirror /srv/mirrors/ubuntu" / "/usr/local/lib/nagios/plugins/check_apt_mirror /srv/mirrors/debian". | ||
Also you can run the actual sync command manually but make sure to run it was the user "mirror", so "''' | Also you can run the actual sync command manually but make sure to run it was the user "mirror", so "'''$ sudo -u mirror ftpsync'''". | ||
Furthermore, you can check '''/etc/ftpsync/ftpsync.conf''' to see which upstream hosts we are rsyncing from and look at '''/var/log/ftpsync/''' to check logfiles for errors. | Furthermore, you can check '''/etc/ftpsync/ftpsync.conf''' to see which upstream hosts we are rsyncing from and look at '''/var/log/ftpsync/''' to check logfiles for errors. | ||
For Debian you can also see if you are receiving SSH triggers: '''tail -F /var/log/auth.log | grep forced-command''' | |||
== Contacting Wikimedia Maintainers == | |||
The mirror server is maintained by the Wikimedia [[SRE]] team. To report issues with mirrors.wikimedia.org, please create a ticket in Wikimedia's [[Phabricator]] and tag it with 'SRE'. You can also join the Libera.Chat IRC channels {{irc|wikimedia-operations}} and {{irc|wikimedia-tech}}. | |||
== Contacting Upstream Maintainers == | |||
# [https://wiki.debian.org/Teams/Mirrors Debian] | |||
#* Email: [mailto:mirrors@debian.org mirrors@debian.org], use this list to ask for changes to DNS records, may take a few days to obtain a reply | |||
#* IRC: irc://irc.oftc.net/debian-mirrors | |||
# [https://wiki.ubuntu.com/Mirrors Ubuntu] | |||
#* Email: [mailto:mirrors@ubuntu.com mirrors@ubuntu.com] | |||
#* IRC: ircs://libera.chat/ubuntu-mirrors | |||
# [https://tails.boum.org/contribute/how/mirror/ Tails] | |||
#* Email: [mailto:tails-mirrors@boum.org tails-mirrors@boum.org], use this list to ask for changes to DNS records, may take a few days to obtain a reply | |||
# [https://wiki.debian.org/OpenStack Debian OpenStack Backports] | |||
#* IRC: irc://irc.oftc.net#debian-openstack | |||
[[Category:Runbooks]] | [[Category:Runbooks]] |
Revision as of 22:10, 6 January 2022
- See also: Dumps/Mirror status
mirrors.wikimedia.org
The Wikimedia Foundation hosts the following public mirrors via http:
- Debian (Official)
- Ubuntu (Official)
- Tails (Official)
- Debian OpenStack Backports (Unofficial)
This service carries the dual purpose of giving back to the FOSS projects we use and as our own internal mirror.
Technical Info
- Debian
- Publication Method:
- DNS A/AAAA Record for ftp.us.debian.org, Debian Code
- Official US mirror: https://www.debian.org/mirror/sponsors
- Sync Method: SSH Trigger, syncs are triggered by an SSH forced key command for the
mirror
user. Debian hasStrictHostKeyChecking no
set on their side, so changing our SSH host key does not affect Debian's trigger.
- Publication Method:
- Ubuntu
- Publication Method:
- Official US mirror: https://launchpad.net/ubuntu/+mirror/wikimedia-archive
- Sync Method: Systemd Timer
- Publication Method:
- Tails
- Publication Method:
- DNS A Record for dl.amnesia.boum.org.
- Sync Method: Systemd Timer
- Publication Method:
- Debian OpenStack Backports
- Publication Method:
- None, not published officially, but open to the public
- Sync Method: Systemd Timer
- Publication Method:
Implementation Info
As of December 2021 they are hosted on mirror1001.wikimedia.org.
The server is located at the Equinix data center in Ashburn, Virginia, United States (eqiad).
The relevant Puppet class is modules/role/manifests/mirrors.pp.
The repo for the puppet code can be git cloned with "git clone https://gerrit.wikimedia.org/r/operations/puppet" from Wikimedia's Gerrit installation.
Monitoring and debugging
There are 2 Icinga checks called "Ubuntu mirror in sync with upstream" and "Debian mirror in sync with upstream" respectively.
If one of these alerts you should check on mirror1001 what happens if you manually run the check commands, "/usr/local/lib/nagios/plugins/check_apt_mirror /srv/mirrors/ubuntu" / "/usr/local/lib/nagios/plugins/check_apt_mirror /srv/mirrors/debian".
Also you can run the actual sync command manually but make sure to run it was the user "mirror", so "$ sudo -u mirror ftpsync".
Furthermore, you can check /etc/ftpsync/ftpsync.conf to see which upstream hosts we are rsyncing from and look at /var/log/ftpsync/ to check logfiles for errors.
For Debian you can also see if you are receiving SSH triggers: tail -F /var/log/auth.log | grep forced-command
Contacting Wikimedia Maintainers
The mirror server is maintained by the Wikimedia SRE team. To report issues with mirrors.wikimedia.org, please create a ticket in Wikimedia's Phabricator and tag it with 'SRE'. You can also join the Libera.Chat IRC channels #wikimedia-operations connect and #wikimedia-tech connect.
Contacting Upstream Maintainers
- Debian
- Email: mirrors@debian.org, use this list to ask for changes to DNS records, may take a few days to obtain a reply
- IRC: irc://irc.oftc.net/debian-mirrors
- Ubuntu
- Email: mirrors@ubuntu.com
- IRC: ircs://libera.chat/ubuntu-mirrors
- Tails
- Email: tails-mirrors@boum.org, use this list to ask for changes to DNS records, may take a few days to obtain a reply
- Debian OpenStack Backports