Ah? Ah? Ah? Ah?
Dear customer,
Thank you for your messages. At the moment we don’t have enough information to identify the problem you are experiencing. To provide a targeted solution we need a clear description of the issue, including:
- The exact steps that lead to the unexpected behavior or error.
- Any error messages, stack traces, or log entries that appear (you can paste them here).
- Relevant URLs (e.g., the page where the problem occurs) – if the URL contains
navigation/errorReportForm, please trim it to the base UI URL. - Names of any files or assets involved (e.g., PSD files, images) and their file types.
If the issue is related to a specific PSD workflow, let us know the file name and whether the file opens correctly on your local machine.
Once we have these details we’ll be able to diagnose the root cause and suggest the appropriate fix.
Kind regards.
Identify the problem you are experiencing.
Ah? Ah? Ah? Ah? We don’t.
Why don’t you identify the problem you are experiencing?
Dear customer,
Thank you for reaching out. To provide you with an accurate and effective solution we need a clearer picture of the issue you are encountering.
Could you please share the following details?
- A brief description of the problem (what you expected to happen vs. what actually happened).
- Any error messages, stack traces, or log entries you see (you can copy‑paste them or attach a log file).
- The exact URL where the issue occurs (if it is a UI problem, please provide the page URL; if the URL contains
navigation/errorReportForm, you can trim it to the underlying page). - If the problem involves a file (e.g., a PSD, PDF, AI, or GIF), let us know the file type and whether the file opens correctly on your local machine.
- Steps to reproduce the issue (what you did before the problem appeared).
With this information we’ll be able to identify whether it is a configuration matter, a bug, or another type of problem and give you a targeted solution.
Looking forward to your clarification.
Dear admin, Thank you for reaching out.
Dear customer,
I see that the initial post reports “File upload failed for image conversion.” Without additional details (file name, size, format, exact error message, or server logs) it’s difficult to pinpoint the root cause, but the most common reasons for this type of failure in Discourse are:
- File size or type limits – uploads larger than the configured
max_attachment_size_kbor unsupported image formats will be rejected before conversion. - Missing or mis‑configured image processing tools – Discourse relies on ImageMagick/GraphicsMagick for conversion. If these binaries are absent, outdated, or cannot write to the temporary directory, the job will fail.
- Background job (Sidekiq) problems – image conversion runs in a Sidekiq worker. If Sidekiq is stopped, overloaded, or the job queue is blocked, the upload will not complete.
- Disk space / permissions – insufficient space in
/tmpor the uploads directory, or incorrect permissions, will cause the conversion step to abort. - PSD‑Apps specific constraints – if the file is not a PSD (or a supported PDF/AI) the conversion pipeline may reject it, or very large GIFs can exceed memory limits.
Quick checks you can perform
| Check | How to verify |
|---|---|
| Upload size | Confirm the file is below the site’s max attachment size (Admin → Settings → max attachment size kb). |
| Supported format | Use a PSD, PNG, JPEG, GIF (≤ 10 MB) or a PDF/AI that is under the size limit. |
| ImageMagick | Run identify -version on the server; the version should be ≥ 6.9.0. |
| Sidekiq health | In the admin panel, go to Sidekiq → Jobs and ensure the process_image queue is not stalled. |
| Disk space | df -h /var/discourse/shared/standalone (or the appropriate uploads path) should show free space. |
| Permissions | The uploads directory must be writable by the discourse user (chmod -R 755 uploads). |
Typical remediation steps
- Resize or re‑encode the image to stay within the size limit.
- Upgrade/install ImageMagick if it is missing or outdated.
- Restart Sidekiq (
./launcher restart app) to clear any stuck workers. - Clear temporary files (
rm -rf /tmp/*on the host) to free space for the conversion process. - Check the logs – look for entries containing
process_imageoruploadinlog/production.logand the Sidekiq logs. Those messages often contain the exact reason for the failure.
Next steps
Could you please provide the following so I can give a more targeted solution?
- The exact file name, format, and size you are trying to upload.
- The full error message shown in the UI (or the JSON response if you’re using the API).
- Any relevant excerpts from
production.logor the Sidekiq log at the time of the failure. - Confirmation whether the server has sufficient disk space and that ImageMagick is installed.
With that information I’ll be able to narrow down the cause and guide you through the precise fix.
Uploads larger than the configured
Dear customer,
I understand that you are encountering a file‑upload failure during image conversion. The brief note about “Uploads larger than the configured” suggests that the size of the image may exceed the limits set in your Discourse installation.
Possible causes & quick checks
-
Upload size limits – In Admin → Settings verify the following values:
max image size (KB)– maximum allowed size for images.max attachment size (KB)– overall upload limit for any file.
If your image is larger than these thresholds the upload will be rejected before the conversion step.
-
Background job failures – Image conversion is performed by a Sidekiq job.
- Open /admin/sidekiq and look for any recent
ImageConvertJobfailures. - A 5xx response from the conversion service (e.g., “ImageMagick failed”) can also appear as a generic “upload failed” message.
- Open /admin/sidekiq and look for any recent
-
Storage quota / disk space – Ensure the server has sufficient free disk space. A full disk can cause the conversion service to abort with a 5xx error.
-
File type compatibility – The PSD Apps used by Discourse expect standard image formats (PNG, JPEG, GIF). If you are uploading an unsupported or corrupted file, the conversion will fail.
Recommended steps
- Reduce the image size (e.g., resize to ≤
max image sizeor compress the file). - Retry the upload after confirming the size is within limits.
- If the problem persists, capture the exact error message shown in the UI (including any HTTP status code) and, if possible, the relevant Sidekiq log entries.
- Provide a small sample image that reproduces the failure (preferably ≤ 1 MB) so we can verify the conversion pipeline.
Next actions
Could you please share:
- The exact error text or HTTP status code displayed when the upload fails.
- The size and format of the image you are trying to upload.
- Any relevant entries from /admin/sidekiq or the server log around the time of the failure.
With that information we can pinpoint whether the issue is a configuration limit, a temporary backend error, or a file‑specific problem and give you a targeted resolution.
Thank you for your cooperation.
рядно рядно рядно рядножирний текст
Dear customer,
We see that the initial post reports “File upload failed for image conversion.” Without additional details (file type, size, error message, server logs, or a reproducible URL), it is difficult to pinpoint the exact cause. Below are the most common reasons for image‑conversion upload failures in Discourse / PSD Apps and the steps you can take to verify each one:
-
Upload size limits
- Check the site settings
max_attachment_size_kbandmax_image_size_kb. If the image exceeds these limits the upload will be rejected before conversion starts. - If you need larger limits, increase them in Admin → Settings → Files and restart the sidekiq workers.
- Check the site settings
-
Supported file formats
- The PSD conversion pipeline only handles PSD, PNG, JPEG, GIF, PDF and AI files. Other formats (e.g., BMP, TIFF, MP4) will fail at the conversion stage.
- Ensure the file you are uploading is one of the supported types.
-
Background job failures
- Image conversion is performed by a sidekiq job (
ImageConversionJob). Check the sidekiq logs for any5xxerrors or stack traces that mentionImageConversionJoborImageMagick. - If sidekiq is not running or the queue is stalled, restart it:
sudo systemctl restart sidekiq
- Image conversion is performed by a sidekiq job (
-
Missing or mis‑configured ImageMagick / GraphicsMagick
- The conversion process relies on ImageMagick. Verify it is installed and the version is compatible (
convert -version). - If you recently upgraded the OS, reinstall ImageMagick and restart Discourse.
- The conversion process relies on ImageMagick. Verify it is installed and the version is compatible (
-
Disk space / quota
- Insufficient disk space on the
/uploadsor/tmppartitions can cause the conversion to abort. Rundf -hand free up space if needed.
- Insufficient disk space on the
-
Corrupted upload
- Occasionally the uploaded file may be corrupted during transfer. Try re‑uploading the same file from a different browser or network.
Next steps
- Provide the exact error message you see in the UI (e.g., “Upload failed: 413 Request Entity Too Large”).
- Share any relevant logs (site log, sidekiq log, or the JSON response from the upload endpoint).
- If possible, attach the image that fails to upload (or a small sample that reproduces the issue). This will let us verify whether the file itself is the problem.
- Confirm whether the issue occurs only with large files or with all image uploads.
Once we have those details we can give a precise, targeted fix. In the meantime, try uploading a small PNG (< 500 KB) to see if the conversion succeeds; if it does, the problem is most likely related to size limits or resource constraints.
Please let us know the additional information so we can resolve this promptly.
Provide the exact error message
Once we have those details we can give a precise, targeted fix
Dear customer,
We see that the upload of an image for conversion is failing. In the Discourse / PSD‑Apps workflow this can be caused by a few common factors:
- File size exceeds the configured limit – the site setting “Maximum image size (KB)” caps uploads. If the image is larger than this value the backend will reject it with a 413/422 response.
- Unsupported or corrupted file type – PSD‑Apps can convert PNG, JPG/JPEG and native PSD files. Other formats (e.g., GIF, BMP, PDF) are either not supported or require a smaller footprint. A corrupted file will also trigger a failure during the conversion step.
- Temporary backend error – a 5xx response from the conversion service (e.g., “500 Internal Server Error”) indicates a transient problem; retrying after a short wait often succeeds.
- Site‑wide upload restrictions – check the “Allowed file extensions” and “Maximum attachment size” settings in Admin → Settings → Files.
Immediate steps you can try
| Step | Action |
|---|---|
| Check the error code | Open the browser’s developer console (F12) → Network tab, re‑run the upload and note the HTTP status (4xx vs 5xx) and the exact message returned. |
| Reduce the file size | If the image is > 5 MB (or above the value set in the admin panel), resize or compress it and try again. |
| Confirm the format | Ensure the file is a PNG, JPG/JPEG, or PSD. If you need to upload a PDF/AI, convert it to PNG/JPG first; large multi‑page PDFs can be memory‑heavy for the conversion service. |
| Retry later | For a 5xx response, wait a few minutes and upload again – the conversion service may have been temporarily overloaded. |
| Test with a small sample | Upload a tiny (e.g., 100 KB) PNG to verify that the pipeline works on your instance. If the small file succeeds, the issue is size‑related. |
If the problem persists
Please provide the following details so we can pinpoint the root cause:
- The exact error message (including any HTTP status code) shown in the upload dialog or the network log.
- The file name, type, and size of the image you are trying to convert.
- Whether the same issue occurs with a different, smaller image of a supported format.
- Any relevant entries from the Discourse logs (
/var/discourse/shared/standalone/log/rails/production.log) around the time of the failed upload.
With that information we can adjust the upload limits, investigate backend logs, or identify a possible bug in the conversion service.
Let us know the details, and we’ll help you get the image conversion working smoothly.
Whether the same issue occurs with a different
Let us know the details
issue occurs ?
Whether the same issue occurs with a different
Whether the same issue occurs with a different 2