Uploading a file means copying it to a different computer.
Allsky supports several ways to upload files including
ftp, scp, and others.
Testing an upload
After you've configured settings such as Server Name and Protocol for a remote Website or remote server, run one of the commands below, depending on whether you are testing uploads to a remote Allsky Website or a remote server:
testUpload.sh --website
OR
testUpload.sh --server
This attempts to upload a file and if it fails, it tries to determine why it failed and display how to fix it.
If that doesn't help, look at the sections below for additional information.
Incorrect WebUI settings or URL mapping
Most people useftporsftpto transfer files to another machine, so this section will assume that. The term "remote Website" means an Allsky Website not on your Pi, but on a remote server, possibly one you pay for services on.
The Server Name, User Name, and Password settings in WebUI must be correct. If you can't log into to your remote server with that information, Allsky won't be able to either. Single quotes in the password can cause a problem for Allsky.
The directory structure on your remote server must match the Allsky standard; changing locations and/or names of files and directories on the remote Website will cause uploads to fail.
If you don't know the difference in a file location on a server and its associated URL, check out the Mapping server locations to URLs page.
Certificate-related errors
There are three main certificate-related error messages you'll see.
- Host key verification failed OR
The authenticity of host 'xxxxx' can't be established
These errors typically occur when using thesftpPROTOCOL. On the Pi,sshto your remote server:ssh -p 22 username@host(replacing "username" and "host" with the appropriate values). The host will display a message and prompt for "yes" or "no". Enter "yes". This only needs to be done once for a given host.
The remote server now knows about the Pi. - Certificate verification: certificate common name doesn't match requested host name "xyz.com"
There are two ways to fix this:- Create a file called ~/.lftprc and add
set ssl:check-hostname falseto it:echo "set ssl:check-hostname" > ~/.lftprc
- Set the FTP Commands setting to
set ssl:check-hostname false.
If you expect to execute
lftpmanually the first method is better, otherwise use the second method so all your configuration changes are in one place.
- Create a file called ~/.lftprc and add
- Certificate verification: Not trusted
Addset ssl:verify-certificate noto FTP Commands or the ~/.lftprc file as above.
Missing directories on the remote Website or server
Review the Allsky Website installation instructions or the Remote server installation instructions to determine how to create the necessary directories.