mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #608] Adding project doesn't work #443
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#443
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rafaelorafaelo on GitHub (Feb 11, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/608
Hi,
I installed healthchecks v1.25.0 as Docker instance from https://hub.docker.com/r/linuxserver/healthchecks. I can't add new project, the result is a Server Error (500) in the browser. I tried sqlite and postgres as database with the same result. With PostgreSQL server I see this error message:
There is a missing owner_id in the SQL statement. In Healthchecks I see a dash as owner on the Add project page. Looks like it should be the current username as shown in the Default Project.
Regards
Ralf
@cuu508 commented on GitHub (Feb 11, 2022):
Hi @rafaelorafaelo – are you adding the project through Django admin?
@rafaelorafaelo commented on GitHub (Feb 11, 2022):
Hi, what is Django admin, some kind of CLI? No, I add the project through this URL http://abc:8080/admin/accounts/project/add/
@rafaelorafaelo commented on GitHub (Feb 11, 2022):
Hi, the problem is the Site Administration page under /admin/. If I add a project with the new project wizard on the homepage, everything works. Adding a project via Site Administration fails.
@cuu508 commented on GitHub (Feb 14, 2022):
That's the correct way to add a project.
Don't use the admin interface for normal operations (creating projects, creating checks, creating integrations etc.).
I've marked the field as read-only in the admin (here). This field normally renders as a dropdown control with all possible owners (all users in the system). This would slow things down if there are many users, and marking the field as read-only was a quick, simple fix.
@rafaelorafaelo commented on GitHub (Feb 14, 2022):
Thank's, I got it. Great tool. I've been dreaming of this for years.