Errors Connecting to the Server
Server error: Not authorized: USER@ADDRESS (ID=EMAIL) --> REMOTE_USER
Either:
- There is no account REMOTE_USER on server ADDRESS
- Account REMOTE_USER on server ADDRESS has not been initialized for WANFast use and does not have an authorized_keys file.
- Your public key was not found in the authorized_keys file in the REMOTE_USER account on server ADDRESS.
ERROR: wfst client: negotiatePhase3: RSA_private_decrypt
The wrong public key was found for your ID in the authorized_keys file on the target machine. Have you changed your private key? Is there another user with the same (supposedly) unique ID?
You have insecure file permissions on the file /root/.wfst/wfst.key.
Your private key file is readable by other users. This is very insecure. At a minimum you should reset the file permissions so that it is only readable by you. You should also consider replacing it with a new key that has not been exposed to other users. If you replace your current private key, be sure to also replace your public key in the authorized_keys files in any accounts to which you have access.
Server error: You have insecure file permissions on the file /root/.wfst/authorized_keys.
The authorized_keys file in the account on the server that you are trying to log into is readable by users other than the account owner. This is very secure. You, or the account holder on the server, should reset the file permissions so that it is only readable by the account holder. You should also verify that only public keys belonging to appropriately authorized users are present in the file.
ERROR: wfst client: bind() -- 98, Address already in use
The WANFast tunnel daemon was unable to bind to the specified tunnel port. This message will be found in the WANFast log file. It will occur if you already have a previous tunnel daemon running.
Invalid License Type.
If you receive the following error after installing a master license key on a machine, the message indicates that the master license is invalid. Most likely this means that:
- The master license has expired. You can verify the expiration date by using a text editor to examine the expiration_date field within the license file.
- The master license has already been used to activate its maximum number of machines. Log into your WANFast account. Under the Your Account menu access the View Current Licenses page to view your licenses. Each you see which machines have been activated by a license by clicking on the ID link for the license.
Exit Codes
The exit code returned upon completion of a WANFast program is the result of all errors that were encountered during the program's operation. The low order 4 bits of the exit status provide the termination status -- i.e., the reason why the program terminated.
Termination Code = Exit Value & 0x0F
The high order 4 bits indicate non-fatal errors that may have occurred during the operation. Thus an exit status of 0x10 indicates successful completion of the operation, but with an error on one or more files, while an exit status of 0x9C indicates that at least one fail failed to transfer because the target disk ran out of space. The specific error encountered for each file will be printed to the program's standard output.
The full list of WANFast exit codes is shown in the table below.
Exit Code | Description |
---|---|
0 | Operation ran to completion. |
1 | Operation terminated for unknown reason. |
2 | Invalid parameters to command. |
3 | Invalid configuration setting. |
4 | Invalid or expired license on client or server |
5 | Operation not allowed due to a license restriction. |
6 | Unable to connect to peer. |
7 | Connection dropped after being established. |
8 | The user canceled the operation. |
9 | Incompatible versions between client and server |
10 | Internal, coding error. |
11 | User authentication issue. |
12 | Terminated because target disk was full. |
13 | Source volume disappeared during transfer. |
14, 15 | Internal use only. Never returned to user. |
0x10 | At least one file transfer failed. |
0x20 | At least one file on target not deleted. |
0x40 | At least one file not set with full attributes |
0x80 | Disk full on at least one volume in multi-volume |
0xFF | The program crashed |
Complete List of Error Codes
In adition to returning and exit code, WANFast programs will print an error message to standard output whenever they encounter an error. Each error message will include a WANFast error code as well as a string description. These are shown in the table below. Each error encountered will also result in a non-zero exit code. The exit code associated with each WANFast error is also listed in the table below. Not all errors result in the termination of the WANFast application -- particularly when copying or syncing files. The exit status returned upon completion of the program is the result of all errors that were encountered during the program's operation as described in the previous section.
WANFast Error Code | Exit Code | Description |
---|---|---|
24 | 11 | "%s: failed authentication" |
28 | 9 | "Invalid WFST version" |
29 | 11 | "Authentication failure" |
30 | 3 | "Unsupported compression algorithm" |
31 | 3 | "Unsupported encryption algorithm" |
32 | 3 | "Too many tunnels" |
33 | 2 | "Command string too long" |
34 | 2 | "Invalid command" |
35 | 2 | "Invalid tunnel specification" |
36 | 11 | "Unable to read file: %s" |
37 | 10 | "Thread creation failed", |
38 | 11 | "negotiatePhase%d: %s" |
39 | 11 | "readSessionBuffer %d: received oversized buffer" |
50 | 5 | "The server has reached its limit of licensed sessions" |
93 | 11 | "Unrecognized user %s" |
96 | 1 | "Server error: %s" |
162 | 10 | "Memory allocation error" |
183 | 11 | "Not authorized: %s@%s (ID=%s) --> %s" |
184 | 11 | "Invalid public key in server response" |
197 | 11 | "Can only log into target mode server as user %s" |
213 | 4 | "Your license has expired. Please contact WANFast sales to renew your license\n" |
214 | 3 | "The number of tunnels specified exceeds the licensed limit\n" |
220 | 5 | "The server license does not permit remote login\n" |
221 | 5 | "The server license does not permit remote commands\n" |
222 | 5 | "The server license does not permit tunnels\n" |
225 | 5 | "You have exceeded your licensed number of peers. |
228 | 5 | "The server does not allow remote login\n" |
229 | 5 | "The server does not allow remote commands\n" |
230 | 5 | "The server does not allow tunnels\n" |
252 | 10 | "Data error." |
255 | 0x10 | "Path (%s) not found." |
256 | 0x10 | "Access error %s." |
257 | 0x10 | "Unsupported file type" |
259 | 0x10 | "Access error (%s) %s." |
261 | 10 | "Internal error, unsupported operation type %c %s" |
266 | 3 | "Regex compilation error: %s" |
267 | 2 | "Invalid specification of local and remote paths." |
272 | 0x10 | "Skipping encrypted file %s" |
275 | 7 | "Communication error (%s) %s" |
309 | 5 | "Your license does not support WANFast file copy\n" |
310 | 5 | "Your license does not support WANFast file synchronization\n" |
316 | 0x10 | "Output buffer overflow" |
320 | 0x40 | "Unable to set all file attributes" |
327 | 4 | "The server license has expired\n" |
337 | 0x17 | "Incomplete file transfer" |
349 | 5 | "The server does not allow file copies\n" |
350 | 5 | "The server does not allow pings\n" |
351 | 5 | "The server license does not permit file copy\n" |
363 | 0x10 | "Access error" |
364 | 0x10 | "Target exists" |
365 | 0x10 | "Too many links" |
366 | 0x10 | "File name too long" |
367 | 0x10 | "No such file or directory" |
368 | 0x90 | "No space left on device" |
369 | 0x10 | "Not a directory" |
370 | 0x10 | "Operation not permitted" |
371 | 0x10 | "Read-only file system" |
372 | 0x10 | "Is a directory" |
373 | 0x10 | "File table overflow" |
374 | 0x10 | "Too many open files" |
375 | 0x10 | "File too large" |
376 | 0x10 | "Invalid argument" |
377 | 0x10 | "I/O error" |
378 | 0x10 | "No such device or address" |
379 | 0x10 | "Device or resource busy" |
380 | 1 | "Unknown error" |
381 | 0x10 | "Bad file number" |
382 | 0x10 | "Cross-device link" |
383 | 0x10 | "Directory not empty" |
384 | 0x10 | "Lock or sharing violation" |
385 | 0x10 | "Invalid drive" |
386 | 0x10 | "Illegal seek" |
387 | 7 | "Network connection dropped" |
388 | 10 | "Internal error" |
389 | 10 | "Unsupported operation" |
390 | 6 | "Connecting to server" |
391 | 2 | "Invalid path" |
392 | 7 | "Timed out waiting for peer" |
393 | 7 | "Session closed without final handshake" |
394 | 10 | "Invalid response from peer" |
395 | 7 | "Timed out waiting for client request" |
396 | 2 | "Invalid operation file" |
397 | 8 | "User canceled operation" |
398 | 7 | "Keep alive timeout exceeded" |
400 | 0x40 | "Unrecogized Windows user" |
401 | 0x1D | "Source volume no longer accessible" |
402 | 0x10 | "Sender error" |
404 | 3 | "Invalid regex pattern" |
405 | 0x1D | "Device not ready" |
406 | 0x10 | "Converting wide --> UTF-8" |
407 | 0x10 | "Converting UTF-8 --> wide" |
409 | 0x10 | "Invalid pointer" |
410 | 0x10 | "Invalid unicode encoding" |
412 | 2 | "Multiple source files but only one target file" |