500 Internal Server Error when selecting Unsplash background image

Not sure what didn’t work before but now I was able to debug this on try and locally. I’ve pushed a potential fix in 1ee243f2bd. Please check with the next unstable build (in ~45min) if the problem went away.

Thanks. I’ll have to see how I can try this build out. I’m not sure the quickest way to do it. May take me a bit to try it out. I didn’t realized you had posted this so long ago.

If you’re using docker, it’s as simple as pointing to the unstable image tag and pulling. For a “classic” install you’d need to download the unstable binary and replace it.

Here’s more info about the different releases: Versions | Vikunja

Whew. Finally tried it out tonight.

Frontend Version: 0.21.0+333-59a7360608
API Version: v0.21.0+205-6169c2e12e

The current unstable build does not have the same problem as before, but it has a different problem.

STEPS TAKEN:

  • Create brand-new project
  • Add a background (upload from computer)
  • Attempt to duplicate

EXPECTED OUTCOME:

  • It happily duplicates the project, background picture and all

ACTUAL OUTCOME:

  • It throws a server error. Docker log output:
docker-compose-api-1       | 2023-11-10T06:03:36.047703907Z: ERROR	▶ handler/CreateWeb 447 file was not downloaded from unsplash [FileID: 1]
docker-compose-api-1       | 2023-11-10T06:03:36.047812561Z: WEB 	▶ 172.20.0.5  PUT 500 /api/v1/projects/2/duplicate 31.083627ms - Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
docker-compose-proxy-1     | 172.20.0.1 - - [10/Nov/2023:06:03:36 +0000] "PUT /api/v1/projects/2/duplicate HTTP/1.1" 500 36 "http://localhost/projects/2/settings/duplicate" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-"

I guess that may be intentional, I’m not sure. At least the thing doesn’t get stuck, so that’s at least a step ahead. I would’ve preferred this current outcome over what actually happened.

EDIT:

Actually… it did seem to work, but … hm. I have to try some other stuff and get clear details. But one of my ‘projects’ went missing from the side bar (one I was trying to duplicate). I did notice it sitting in the ‘overview’ section as one of the recent projects. So I refreshed the page and suddenly I had a BUNCH of copies of it in the sidebar. I can say that I had clicked ‘duplicate’ several times to make sure I could easily spot the resulting log lines to paste them here. So while it returned a 500 error… something did take place. I’ll try to gather detail and send it when I am free again.

That sounds like the failed creation attempt was not properly rolled back when the duplication of the project background failed.