ArchiveTeam Warrior
What is the Archive Team Warrior?
The Archive Team Warrior is a virtual archiving appliance. You can run it to help with the ArchiveTeam archiving efforts. It will download sites and upload them to our archive — and it’s really easy to do!
The warrior is a virtual machine, so there is no risk to your computer. The warrior will only use your bandwidth and some of your disk space. It will get tasks from and report progress to the Tracker.
Basic usage
The warrior runs on Windows, macOS, and Linux using a virtual machine. You'll need:
- Warrior Appliance (300MB) - Download mirrors: #1 (de) #2 (IA)
Plus one of the virtualization applications below to run it:
- Docker Image (recommended for anyone who has used docker in the past)
- VirtualBox (recommended to use the beta version of the warrior)
- VMware workstation/player (free-gratis for personal use)
- See below for alternative virtual machines
Quick start instructions for VirtualBox
- Download the appliance from the link above.
- Launch VirtualBox
- In VirtualBox, click File > Import Appliance and open the file.
- Start the virtual machine.
- It will fetch the latest updates and will eventually tell you to start your web browser.
- Using your regular web browser, visit http://localhost:8001/
- On the left, click "Your settings".
- Choose a username - we'll show your progress on the leaderboard.
- On the left, click "Available projects" tab and pick a project to work on.
- Even better: select "ArchiveTeam's Choice" to let your warrior work on the most urgent project.
Start instructions for VMWare Player
- Download the appliance from the link above
- Launch VMWare Player
- In Player on the right, click "Open Virtual Machine", open the file and import the virtual machine.
- (Optional) Select the virtual machine and click "Edit virtual machine settings".
- Select Network Adapter and set it to "Bridged: Connected directly to the physical network"
- Start the virtual machine.
- It will fetch the latest updates and will eventually tell you to start your web browser.
- Using your regular web browser, visit the address that is shown on the bottom (e.g. http://192.168.0.100:8001/)
- On the left, click "Your settings".
- Choose a username - we'll show your progress on the leaderboard.
- On the left, click "Available projects" tab and pick a project to work on.
- Even better: select "ArchiveTeam's Choice" to let your warrior work on the most urgent project.
Contents
[hide]- 1 What is the Archive Team Warrior?
- 2 Basic usage
- 3 Beta version
- 4 Alternative virtual machines
- 5 Warrior FAQ
- 5.1 Why a virtual machine in the first place?
- 5.2 Can I use whatever internet access for the warrior?
- 5.3 I turned my warrior VM appliance off. Will those tasks be lost?
- 5.4 I closed my browser or tab with the warrior's web interface. Will those tasks be lost?
- 5.5 I need to disconnect my internet / reboot my PC. How can I do this without losing work?
- 5.6 How much disk space will the warrior use?
- 5.7 How can I log in to the virtual machine?
- 5.8 How can I run multiple virtual machines at the same time?
- 5.9 How can I run the virtual machine headlessly (without leaving a window open)?
- 5.10 How can I set up the virtual machine as a system service (so that it starts up on boot and shuts down automatically)?
- 5.11 How can I set up the virtual machine with directly-bridged networking instead of NAT?
- 5.12 How can I access the virtual machine from another device on my network?
- 5.13 How can I run the warrior without a virtual machine? (The VM has too much overhead for a VPS!)
- 5.14 How can I run tons of warriors easily?
- 5.15 I'm looking at the leaderboard. What's that icon beside the username?
- 5.16 What's that guy doing in the logo?
- 5.17 That’s awesome – can I slap this logo on my laptop to show my Internet-preservation pride?
- 5.18 I'd like to help write code or I want to tweak the scripts to run to my liking. Where can I find more info? Where is the source code and repository?
- 5.19 I still have a question!
- 6 Troubleshooting
- 6.1 I'm getting errors when I try to launch the VM.
- 6.2 I just imported the ova image and the warrior is stuck on "Preparing the data partition".
- 6.3 I can't connect to localhost.
- 6.4 The warrior can't connect to the internet.
- 6.5 I see a message that no item was received.
- 6.6 I see a message about rate limiting.
- 6.7 I see a message about code being out of date.
- 6.8 I'm running the scripts manually and I see a message about code being out of date.
- 6.9 I see messages about rsync errors.
- 6.10 I told the warrior to shut down from the interface, but nothing has changed.
- 6.11 The warrior is eating all my bandwidth!
- 6.12 The warrior is using up disk space, even though it's not running a project!
- 6.13 The item I'm working on is downloading thousands of URLs and it's taking hours.
- 6.14 Why is the default project not working? / Why is a manual project not in the warrior yet?
- 6.15 Why are there no projects?
- 6.16 The instructions to run the software/scripts are awful and they are difficult to set up.
- 6.17 Where can I file a bug, suggestion, or a feature request?
- 7 Projects
- 8 Are you a coder?
Beta version
Help us test the new version of the appliance available at https://warriorhq.archiveteam.org/downloads/warrior3/. Report any issues or feedback on #warrior on EFnet.
This version includes updated internal components that allow us to run newer and improved software. Specifically, it runs the warrior code within a Docker container.
Alternative virtual machines
Thanks to user-effort, there are alternatives:
- Hyper-V (Windows 8 Professional)
Please note that these alternatives are not in widespread use by our warriors, so we may not be able to help with either issues or advanced usage.
Warrior FAQ
Why a virtual machine in the first place?
The virtual machine is a quick, safe, and easy way for newcomers to help us out. It offers many features:
- Graphical interface
- Automatically selects which project is important to run
- Self-updating software infrastructure
- Allows for unattended use
- In case of software faults, your machine is not ruined
- Restarts itself in case of runaway programs
- Runs on Windows, Mac, and Linux painlessly
- Ensures consistency in the archived data regardless of your machine's quirks
If you have suggestions for improving this system, please talk to us as described below.
Can I use whatever internet access for the warrior?
No. We need "clean" connections. Please ensure the following:
- No OpenDNS. No ISP DNS that redirects to a search page. Use non-captive DNS servers.
- No ISP connections that inject advertisements into web pages.
- No proxies. Proxies can return bad data. The original HTTP headers and IP address are needed for the WARC file.
- No content-filtering firewalls.
- No censorship. If you believe your country implements censorship, do not run a warrior.
- No Tor. The server may return an error page instead of content if they ban exit nodes.
- No free cafe wifi. Archiving your cafe's wifi service agreement repeatedly is not helpful.
- No VPNs. Data integrity is a very high priority for the Archive Team so use of VPNs with the official crawler is discouraged.
- We prefer connections from many public IP addresses if possible. (For example, if your apartment building uses a single IP address, we don't want your apartment banned.)
I turned my warrior VM appliance off. Will those tasks be lost?
If you've killed your warrior VM instance, then the work your warrior did has been lost. However, the tasks will be returned to the pool after a period of time, and other warriors may claim them. If you want, you can alert the admins via IRC of what's happened and they can clear the claims your username may have made. but this isn't very important on most projects.
I closed my browser or tab with the warrior's web interface. Will those tasks be lost?
No. The web browser interface just provides a user interface to the warrior. As long as the VM or docker container is not stopped, it will continue normally.
I need to disconnect my internet / reboot my PC. How can I do this without losing work?
If you pause/suspend the warrior instance, most projects will allow resuming of work in progress when you unsuspend the warrior instance.
If you decide to use the suspend feature, please note that if you keep it suspended for too long (more than a few hours), the administrators will assume that the item is lost and re-queue it. Using the suspend feature so that you can reboot your computer is perfectly fine.
How much disk space will the warrior use?
Short answer: it depends on the project. (But never more than 60GB.)
Long answer: because each project defines items differently, sizes may vary. A single task may be a small file or a whole subsection of a website. The virtual machine is configured by default to use an absolute maximum of 60GB. Any unused virtual machine disk space is not used on the host computer. You may run the virtual machine on less than 60GB if you like to live dangerously. We're downloading the internet, after all!
How can I log in to the virtual machine?
Unless you know what you are doing, you should not need to do this.
To login, start up the Warrior VM and wait for it to finish booting with the screen showing "The warrior has successfully start up". Press ALT+F3 to switch to virtual console number 3. VirtualBox users may need to press the host key, RIGHT_CONTROL to enter capture mode before pressing ALT+F3. Use ALT+Left or ALT+Right to switch between virtual consoles. There are 6 virtual consoles in total. Consoles 1 and 2 are reserved for the warrior. Switching to a new virtual console will show a login shell. You can login using the username root
and the password archiveteam
. Once logged in as root, you can execute sudo -u warrior -i
to log in as the warrior user.
How can I run multiple virtual machines at the same time?
You'll need to adjust the networking settings.
In VirtualBox, select a virtual machine and open up Settings → Network → Adapter 1 → Port Forwarding. You need to adjust the host port. For example, set your table to TCP | 127.0.0.1 | 8123 | | 8001. This maps port 8123 on the host machine (your computer) to port 8001 on the virtual machine (the warrior), and you can then access the warrior's web interface from port 8123 in your browser.
Each VM you want to access should have a different host port. Do not use port numbers below 1024 unless you know what you are doing.
VMWare installations should be using bridged networking. However, if you want, you can switch to NAT (under Settings → Hardware → Virtual Network Adapter) and click Edit to set up port forwarding. On Linux, you can also use lines like 8123 = 192.168.0.100:8001
in the [incomingtcp]
section of nat.conf. (Make sure the VM IP is correct!)
How can I run the virtual machine headlessly (without leaving a window open)?
From the VirtualBox GUI, after opening the VM, click Machine > Detach GUI. You can then close the VirtualBox Manager window.
For the VirtualBox CLI, use this command:
vboxmanage startvm archiveteam-warrior-2 --type headless
Shut down the VM with:
vboxmanage controlvm archiveteam-warrior-2 acpipowerbutton
Substituting suspend
or resume
for acpipowerbutton
suspends or resumes the VM. For more information, consult the VirtualBox manual (Chapter 8, Sections 12 and 13).
For the VMWare CLI, use this command:
vmrun start <path to vmx file> nogui
Shut down with:
vmrun stop <path to vmx file> soft
Substituting suspend
for stop
suspends the VM. Resume with start
again. For more information, including the paths to VMX files on different operating systems, consult Using vmrun to Control Virtual Machines (PDF), pages 10 and 11.
How can I set up the virtual machine as a system service (so that it starts up on boot and shuts down automatically)?
If you are using VirtualBox and running a Linux distribution that uses the systemd init system (like most recent releases), you can follow the short instructions on this page. (The page title specifies Arch Linux, but this will work for other distros as long as they run systemd.)
How can I set up the virtual machine with directly-bridged networking instead of NAT?
On VirtualBox, use these commands:
vboxmanage modifyvm archiveteam-warrior-2 --nic1 bridged vboxmanage modifyvm archiveteam-warrior-2 --bridgeadapter1 eth0
We presume you want to bind to eth0
. Adjust as required. :)
VMWare installations should already be using bridged networking.
How can I access the virtual machine from another device on my network?
Full guide for VirtualBox users is found here
How can I run the warrior without a virtual machine? (The VM has too much overhead for a VPS!)
One option is running a Docker container (see above). Docker is based on LXC, and the overhead is far less than running a full VM. If you plan on running the warrior-dockerfile, make sure to publish the port to allow access to the web interface:
docker run -d -p 8001:8001 archiveteam/warrior-dockerfile
This creates a direct port mapping. For host port 38001 to container port 8001, use 38001:8001
. Adjust as required. :P
(Multiple projects can be also run in isolated environments (containers) for rapid deployment using at-as-dockerfile.)
Another alternative is running the project manually. If you are managing a VPS, it's likely you are comfortable with some Linux stuff. Consult the project wiki page or the source code repository readme file.
How can I run tons of warriors easily?
We assume you've checked with the current ArchiveTeam project what concurrency and resources are needed or useful!
Whether your have your own virtual cluster or you're renting someone else's (aka a "cloud"), you probably need some orchestration software.
ArchiveTeam volunteers have successfully used a variety of hosting providers and tools (including free trials on AWS and GCE), often just by building their own flavour of virtual server and then repeating it with simple cloud-init scripts (to install and launch docker as above) or whatever tool the hosting provides. If you desire full automation, the archiveteam-infra repository by diggan helps with Terraform on DigitalOcean.
Some custom monitoring scripts also exist, for instance watcher.py.
I'm looking at the leaderboard. What's that icon beside the username?
That's just the warrior logo: (click on the image for a larger version). It means that that person is using the warrior. Those without the icon are running the scripts manually.
What's that guy doing in the logo?
The place is on fire! But don't worry, he safely escaped with the rescued data in his arms.
That’s awesome – can I slap this logo on my laptop to show my Internet-preservation pride?
You sure can! The ArchiveTeam Warrior laptop sticker can start conversations about archiving, if you’re into that.
I'd like to help write code or I want to tweak the scripts to run to my liking. Where can I find more info? Where is the source code and repository?
Check out the Dev documentation for details on the infrastructure and details of the source code layout.
I still have a question!
Check out the general FAQ page. Talk to us on IRC. Use #warrior for specific warrior questions or #archiveteam for general questions.
Troubleshooting
I'm getting errors when I try to launch the VM.
If you are receiving Breakpoint has been reached (0x80000003)
, A critical error has occurred while running the virtual machine and the machine execution has been stopped.
, or VT-X errors, you probably do not have virtualization enabled, either because it is turned off in your computer's BIOS or your CPU does not support it.
You can check CPU support on Linux with cat /proc/cpuinfo | grep "(vmx|svm)" | uniq
. If there is a line of output starting with "flags", your processor supports virtualization; if there is no output, it does not. You can check whether virtualization is enabled in the BIOS using the rdmsr
utility in your distro's msr-tools
package.
You can check support and BIOS status on Windows using Microsoft's Hardware-Assisted Virtualization Detection Tool or VirtualChecker.
To enable virtualization on a CPU with support, reboot the computer and enter the BIOS. The virtualization setting is usually under something like 'CPU configuration' or 'advanced settings'.
I just imported the ova image and the warrior is stuck on "Preparing the data partition".
This issue has cropped up before, and we do not know what causes it. We recommend you delete the warrior image and import the ova again. Testing shows that such a reimport works in the majority of cases.
I can't connect to localhost.
The application is configured to set up port forwarding to the guest machine, and you should be able to access the interface through your web browser at port 8001. If this does not happen, and isn't resolved by rebooting the warrior (using the ACPI power signals, not suspend/save state and resume), you may need to double-check your machine's network settings (as described above).
The warrior can't connect to the internet.
It's possible that the virtual machine has picked up the address of the local DNS cache on your computer, which the virtual machine does not have access to.
If you experience this on VirtualBox, see this question and answer. Additionally, check to see if "Cable Connected" is unchecked in the advanced settings of the virtual adapter, under the network tab in the virtual machine's settings. Check it if it's unchecked, then save your settings.
I see a message that no item was received.
This means that there is no work available. This can happen for several reasons:
- The project has just finished and someone is inspecting the work done. If a problem is discovered, items may be re-queued and more work will become available.
- You have checked out/claimed too many items. Reduce your concurrency and let others do some of the work too.
- In a rare case, you have been banned by a tracker administrator because there was a problem with your work: you were requesting too much, you were tampering with the scripts, a malfunction has occurred, or your internet connection is "unclean" (see above).
I see a message about rate limiting.
Don't worry. Keep in mind that although downloading the internet for fun and digital preservation are the primary goals of all Archive Team activities, serious stress on the target's server may occur. The rate limit is imposed by a tracker administrator and should not be subverted.
(In other words, we don't want to DDoS the servers.)
If you like, you can switch to another project with less load.
I see a message about code being out of date.
Don't worry. There is a new update ready. You do not need to do anything about this; the warrior will update its code every hour. If you are impatient, please reboot the warrior and it will download the latest code and resume work.
I'm running the scripts manually and I see a message about code being out of date.
This happens when a bug in the scripts is discovered. Bugs are unavoidable, especially when the server is out of our control.
Try the --auto-update
option available in Seesaw version 0.8. However, please be aware that you are now executing code automatically. Be sure to run the scripts in a separate user account for safety.
I see messages about rsync errors.
Uh-oh! Something is not right. Please notify us immediately in the appropriate IRC channel.
I told the warrior to shut down from the interface, but nothing has changed.
The warrior will attempt to finish the current running tasks before shutting down. If you need to shut down right away, go ahead. Your progress will be lost, but the jobs will eventually cycle out to another user.
The warrior is eating all my bandwidth!
On VirtualBox (relatively recent versions), use this command:
vboxmanage bandwidthctl archiveteam-warrior-3 add limit --type network --limit 3m
This will limit the warrior to 3Mb/s. (Limit units are k
for kilobit, m
for megabit, g
for gigabit, K
for kilobyte, M
for megabyte, and G
for gigabyte.) Adjust as required. :)
In the latest version of VirtualBox on Windows, the syntax appears to have changed. The correct command now seems to be:
VBoxManage bandwidthctl archiveteam-warrior-3 add netlimit --type network --limit 3
For more information, consult the VirtualBox manual (Chapter 6, Section 9).
On VMWare (versions 9 and above), select a virtual machine and open Settings → Hardware → Virtual Network Adapter → Advanced. You can set a bandwidth limit here.
The warrior is using up disk space, even though it's not running a project!
Virtual machine disk images do not behave like a regular file. There are several ways to safely reclaim space:
- Delete the second disk and put back an empty disk. The warrior should reformat the second disk.
- Delete the entire warrior application and re-import it.
- Use the zerofree program and then clone the disk image. Reattach the cloned disk image.
The item I'm working on is downloading thousands of URLs and it's taking hours.
Please notify us in the appropriate IRC channel. You may need to reboot the warrior.
Why is the default project not working? / Why is a manual project not in the warrior yet?
Sorry. Sometimes the administrators are too busy...
Why are there no projects?
We finished the ones we were working on! If there are no projects showing, you can help us write one. No projects does not mean there is nothing left to archive!
The instructions to run the software/scripts are awful and they are difficult to set up.
Well, excuuuuse me, princess!
We're not a professional support team so help us help you help us all. See above for bug reports, suggestions, or code contributions.
Where can I file a bug, suggestion, or a feature request?
If the issue is related to the warrior's web interface or the library that grab scripts are using, see seesaw-kit issues. Other issues should be filed into their own repositories.
Projects
See Warrior projects.
Are you a coder?
Like the warrior? Interested in how it works under the hood? Got software skills? Help us improve it!
Expandv · t · e Archive Team |
---|