Problem: Task Template page got stuck in loading state and not coming up.
Issue
I have deployed semaphore as a containazed environment. and after a week or so when i open the semaphore UI and goes to the task template page it hangs in loading state (shows nothing). In the api call we have observed that some of the API calls are resulting into 401 unauthorized error.
the api call from semaphore task template page is below:
this.inventory = (await axios({
method: 'get',
url: /api/project/${this.projectId}/inventory,
responseType: 'json',
})).data;
Below is the request object of the API which is getting 401:
{ "message": "**
**", "name": "AxiosError", "stack": "AxiosError: Request failed with status code 401\n at ce (<aplication URL>/js/chunk-vendors.9cdbf3a4.js:308:157977)\n at XMLHttpRequest.g (<aplication URL>/js/chunk-vendors.9cdbf3a4.js:308:162602)\n at sn.request (<aplication URL>/js/chunk-vendors.9cdbf3a4.js:308:170794)\n at async a.loadAppsDataFromBackend (<aplication URL>/js/app.98f56337.js:1:257488)\n at async a.created (<aplication URL>/js/app.98f56337.js:1:257215)", "config": { "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false }, "adapter": [ "xhr", "http", "fetch" ], "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "env": {}, "headers": { "Accept": "application/json, text/plain, /" }, "baseURL": "<aplication URL>/", "method": "get", "url": "/api/apps", "responseType": "json", "allowAbsoluteUrls": true }, "code": "ERR_BAD_REQUEST", "status": 401 }
Impact
Web-Frontend (what users interact with)
Installation method
Docker
Database
Postgres
Browser
Chrome
Semaphore Version
2.13.14
Ansible Version
Logs & errors
No response
Manual installation - system information
No response
Configuration
No response
Additional information
No response
Hi @Devashishkatiyar could you try 2.15?
I'm not sure. But I can't reproduce your issue in 2.15.
I have the same issue, and I can't find a solution. I'm currently using v2.15
@AlejandroCavero what database?
@AlejandroCavero please provide more details by the issue.
I'm sorry for not giving details. I'm running Semaphore using Docker with a Docker Compose file. I have mysql 8.0 as database and Semaphore is set on latest (inside semaphore It says that is on version v2.15.0).
I also have the following enviroment variables in my Docker Compose:
SEMAPHORE_DB_USER: semaphore
SEMAPHORE_DB_PASS: semaphore
SEMAPHORE_DB_HOST: mysql
SEMAPHORE_DB_PORT: 3306
SEMAPHORE_DB_DIALECT: mysql
SEMAPHORE_DB: semaphore
SEMAPHORE_PLAYBOOK_PATH: /home/semaphore/playbooks
SEMAPHORE_ADMIN_PASSWORD: ${SEMAPHORE_ADMIN_PASSWORD}
SEMAPHORE_ADMIN_NAME: semaphore
SEMAPHORE_ADMIN_EMAIL: admin@localhost
SEMAPHORE_ADMIN: semaphore
SEMAPHORE_ACCESS_KEY_ENCRYPTION: some random characters
SEMAPHORE_WEB_HOST: "https://semaphore.cloud"
SEMAPHORE_WEB_ROOT: /
I can log in but when I’m using the UI it gets stuck loading forever and giving me this error in the console:
{message: 'Request failed with status code 401', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
If I reload the page, it sometimes works and I can run some tasks, but after a while it gets stuck again.
I forgot to mention that Semaphore is running behind an Nginx reverse proxy.
Any help would be appreciated, Thank you very much!
@fiftin I've just tested it on another Linux machine with Docker, and it's working fine. The difference between the two machines is the Linux version. The one that isn't working is running Ubuntu 24.04 with Docker 28.2.2, while the one that is working is running Ubuntu 22.04 with Docker 27.5.1. The problem is that I need to run it on the Ubuntu 24.04 machine.
In my Case I am not getting this error instantly , It is comming exactly After 7 days or so , Only the task template page is getting Stuck and other than this its working fine.
@AlejandroCavero if you have any idea around it , pls let me know.
Note : For Error refrence you can check the above message thread.
Hi! Sorry for the late response.
Well, my solution was to move Semaphore to the machine where it was working. While doing that, I noticed that we had another Semaphore container used for deployments, and both containers were using the same database name. It's a silly mistake, but I think that was the root of our problem.
@fiftin Thank you for all the help and your quick response!
Hi! We experiencing a similar issue in Semaphore v2.16.36 running in a podman quadlet setup with a MariaDB 10.11 container. We only have one Semaphore container running. The issue started after upgrading the Semaphore container.
Same problem here with version v2.16.36. Everything is working except the Task Templates page.
docker logs error:
time="2025-10-30T15:19:54Z" level=error msg="gorp: no fields [hidden type filter sort_column sort_reverse] in type View"
goroutine 26 [running]:
Same error for Semaphore v2.16.37-349f60d-1761809565.
Same problem here with version v2.16.36. Everything is working except the Task Templates page.
docker logs error:
time="2025-10-30T15:19:54Z" level=error msg="gorp: no fields [hidden type filter sort_column sort_reverse] in type View" goroutine 26 [running]:
Ditto for Semaphore v2.16.43-5507a11-1762372271. I attempted downgrading to previous versions, but no luck there.
It is latest tag issue. By mistake, the beta version was marked as latest.
To fix the issue you need:
- Upgrade to 2.17.0-betaXX
- Run command:
semaphore migrate --undo-to 2.16.100 - Downgrade to 2.16.35+
That did the trick. I'll make a note of sticking to specific versions. Life in the "latest" lane can be a bit too exciting sometimes. 😉
It works, thank you.