diff --git a/content/Software and Downloads/Compilation/Error-exit-status-1.md b/content/Software and Downloads/Compilation/Error-exit-status-1.md deleted file mode 100644 index b8f5fc4f..00000000 --- a/content/Software and Downloads/Compilation/Error-exit-status-1.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: "Error: exit status 1" ---- - -When uploading your sketch you may get: - -``` -Upload error: Error: 2 UNKNOWN: uploading error: uploading error: exit status 1 -``` - -When verifying _or_ uploading your sketch you may get: - -``` -Compilation error: Error: 2 UNKNOWN: exit status 1 -``` - -This message simply indicates that either the compilation or upload process has failed and that the process has been terminated. Look at any messages printed before this line, as these will likely be more informative. You may have to scroll up to view the full output. - -![Upload error in the IDE console. The line "No device found on cu.Bluetooth-Incoming-Port" is followed by "Upload error: Error: 2 UNKNOWN: uploading error: uploading error: exit status 1"](img/upload-error-error-2-unknown-uploading-error-no-upload-port-provided.png) - -In the above image, the problem is that the board was not found on the selected board. You can get a more detailed output by enabling _verbose mode_ in the settings. Do enable verbose mode, open preferences (`File > Preferences` on Windows/Linux and `Arduino > Preferences` on macOS) and after **Show verbose output during** tick both the **Compilation** and **Upload** boxes. diff --git a/content/Software and Downloads/Compilation/img/upload-error-error-2-unknown-uploading-error-no-upload-port-provided.png b/content/Software and Downloads/Compilation/img/upload-error-error-2-unknown-uploading-error-no-upload-port-provided.png deleted file mode 100644 index 5946896e..00000000 Binary files a/content/Software and Downloads/Compilation/img/upload-error-error-2-unknown-uploading-error-no-upload-port-provided.png and /dev/null differ diff --git a/content/Software and Downloads/Upload/Error-exit-status-1.md b/content/Software and Downloads/Upload/Error-exit-status-1.md new file mode 100644 index 00000000..0bbee267 --- /dev/null +++ b/content/Software and Downloads/Upload/Error-exit-status-1.md @@ -0,0 +1,28 @@ +--- +title: "Error: exit status 1" +--- + +**Exit status 1** only indicates that a process has failed, it does not tell us anything specific about the problem. + +## Check the error output for more information + +Look for more specific errors in the console output. Typically these are output before (above) the exit status message. By searching for the error message in this [Help Center](https://support.arduino.cc/hc/en-us) or in the [Arduino Forum](https://forum.arduino.cc/) you can find more information on the issue. + +In the below example, the output ends with an `exit status 1` error. The line above is more helpful, which tells us that no device (board) was found on the selected port. Most likely the wrong port is selected in _Tools > Port_. + +![Upload error in the IDE console. The line "No device found on cu.Bluetooth-Incoming-Port" is followed by "Upload error: Error: 2 UNKNOWN: uploading error: uploading error: exit status 1"](img/upload-error-error-2-unknown-uploading-error-no-upload-port-provided.png) + +## Find troubleshooting instructions + +First, determine if the error occurs during compilation or upload: + +* `Upload error: Error: 2 UNKNOWN: uploading error: uploading error: exit status 1`. This message indicates an **upload error**. +* `Compilation error: Error: 2 UNKNOWN: exit status 1`. This message indicates a **compilation error**. +* If it only reads `exit status 1`, or if you are unsure, you can check where the process fails by clicking the ![Verify button](img/symbol_verify.png) **Verify** button. This compiles the sketch **without** trying to upload it to the board. + * If you still get an error, it occurs during **compilation**. + * If this passes with a `Compilation complete` message, the error occurs during **upload**. + +You can now proceed with the instructions for your error type: + +* For **upload errors**, see [Errors when uploading a sketch](https://support.arduino.cc/hc/en-us/articles/4403365313810-Errors-when-uploading-a-sketch). +* For **compilation errors**, see [Compilation errors when uploading](https://support.arduino.cc/hc/en-us/articles/4402764401554-Compilation-errors-when-uploading). diff --git a/content/Software and Downloads/Upload/img/upload-error-error-2-unknown-uploading-error-no-upload-port-provided.png b/content/Software and Downloads/Upload/img/upload-error-error-2-unknown-uploading-error-no-upload-port-provided.png new file mode 100644 index 00000000..20fe74bf Binary files /dev/null and b/content/Software and Downloads/Upload/img/upload-error-error-2-unknown-uploading-error-no-upload-port-provided.png differ