Heimdall icon indicating copy to clipboard operation
Heimdall copied to clipboard

Server error 500 when adding new app/site

Open kinslayer1982 opened this issue 9 months ago • 5 comments

Heimdall running in Docker behind Nginx reverse proxy. Trying to add a new app (or rather url) suddenly results in server error 500. I found many topics on the web reagrding this, but no solution. Blocking cookies doesn't help and instead results in an server error 419. I updated the image from 2.5.8 to 2.6.3 with the same result. Laravel log shows local.ERROR: Undefined array key "extension" {"exception":"[object] (ErrorException(code: 0): Undefined array key \"extension\" at /app/www/app/Http/Controllers/ItemController.php:232) which didn't help me much.

After some fiddling around I found out the following: Adding the site and selecting one of the icons it shows, results in the above mentioned error 500. Saving the image and manually uploading it works without a problem. So Heimdall has a problem saving the displayed icon although it is displayed correctly and can be saved by right clicking and choosing save as... For now I only faced this error on self hosted apps/sites, but not all of them, only some. This might be related to my reverse proxy or Docker, but I don't see why it should, as the icons are displayed correctly and can be saved like I said befor.

While a workaround is fine for now, it would be nice to fix this behaviour. Maybe someone can help with that.

kinslayer1982 avatar Mar 25 '25 13:03 kinslayer1982

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

LinuxServer-CI avatar Apr 24 '25 15:04 LinuxServer-CI

same happens when trying to edit old apps :-/

rzv-trsc avatar Apr 26 '25 18:04 rzv-trsc

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

LinuxServer-CI avatar May 27 '25 15:05 LinuxServer-CI

Same here get 500 internal server error if I try to add or edit app/site. Why got this stale all the time? Please fix it. I have this issue with Portainer. If I fill out API credentials 500 is gone.

Wikibear avatar Jun 04 '25 19:06 Wikibear

Version: v2.6.3-ls309 Same problem .... the problem seems to appear when we load the website and add the icon.

voodoopt avatar Jun 11 '25 13:06 voodoopt

I'm experiencing this as well, 500 error when trying to set the logo of an app or site via a fetched image. Manual upload of an icon works fine.

controlaltnerd avatar Jul 06 '25 11:07 controlaltnerd

Do you have an example website?

KodeStar avatar Jul 11 '25 15:07 KodeStar

The process involves filling in the URL and click on "GO" after that, when open the icon, I right-click and open it in a new tab, then click Save. I save it and upload it above. But I already did this process automatically in previous versions

For example, with Opnsense. error is "Icon must be an image." I didn't get a 500 error.

voodoopt avatar Jul 11 '25 15:07 voodoopt

I just tried opnsense, selected the first image and it worked fine (image was a .ico) and I also tried a .png and that also worked? Though this is with the current dev version, I'm not sure if that makes any difference.

KodeStar avatar Jul 13 '25 16:07 KodeStar

I don't get a 500 error now, but when, for example, Omada uses .ico, it says it has to be an image. "The file field must be an image." or "Icon must be an image."

voodoopt avatar Jul 16 '25 12:07 voodoopt

I tried https://www.omadanetworks.com/ and it brought in a .ico, it didn't show it (probably has hotlinking disabled) but selecting it and saving worked (because it downloads the ico and serves it locally) I didn't get any issues with it complaining it's not an image. Again though, I'm using the development version, it might be worth trying the :development tag and see if that's any different.

edit I switched to a :latest tag, and got the same, so I guess this will be fixed in 2.7.0 as I don't get it on dev.

KodeStar avatar Jul 17 '25 13:07 KodeStar

I usually use it in dockers and when I start the service it gets the .ico files from the web services

voodoopt avatar Jul 17 '25 21:07 voodoopt

Encountered same issue today. Tried to edit Pi-hole entry only to get "server 500" error. Had to create a new entry and remove an old one. As for the rest - most entries are editable, while some are not with the same error.

To-Azamat avatar Jul 20 '25 09:07 To-Azamat

This should be fixed now, let me know if anyone still has an issue

KodeStar avatar Aug 02 '25 16:08 KodeStar

I'm getting the same error. Fresh install with the Docker-Compose file. As soon as I go to add an application it gives me a 500 internal server error.

Lex1020 avatar Oct 05 '25 03:10 Lex1020

Same here. As soon as I click an the application name from the dropdown there is an error in js:

Image

and after that saving results in Error 500. If I do not choose the application type the app is saved without an error.

caasox avatar Oct 06 '25 09:10 caasox

I seem to consisitanly have this issue when deploying from Portainer via a stack

andrewseago avatar Oct 23 '25 21:10 andrewseago