Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSERT INTO "acme_srv_housekeeping" -> value too long for type character varying(15) #134

Closed
rafaelorafaelo opened this issue Feb 19, 2024 · 2 comments
Labels
bug Something isn't working ready_for_testing

Comments

@rafaelorafaelo
Copy link

Hi,
when I access MYURL/acme/renewal-info, I get a 500 error response in my browser. My Docker container uses a PostgreSQL database, where I find this error message:

value too long for type character varying(15)
INSERT INTO "acme_srv_housekeeping" ("name", "value", "modified_at") VALUES (E'cert_aki_serial_update', E'True', '2024-02-19T11:13:00.526431+00:00'::timestamptz) RETURNING "acme_srv_housekeeping"."id"

The table is defined as

CREATE TABLE IF NOT EXISTS public.acme_srv_housekeeping
(
    id integer NOT NULL DEFAULT nextval('acme_srv_housekeeping_id_seq'::regclass),
    name character varying(15) COLLATE pg_catalog."default" NOT NULL,
    value character varying(30) COLLATE pg_catalog."default" NOT NULL,
    modified_at timestamp with time zone,
    CONSTRAINT acme_srv_housekeeping_pkey PRIMARY KEY (id),
    CONSTRAINT acme_srv_housekeeping_name_key UNIQUE (name)
)

The string cert_aki_serial_update has more than 15 characters, which is the problem.
Regards,
Ralf

@grindsa grindsa added bug Something isn't working ready_for_testing labels Feb 19, 2024
grindsa added a commit that referenced this issue Feb 19, 2024
@grindsa
Copy link
Owner

grindsa commented Feb 20, 2024

Hi,

Thx for your report. an Updated db-scheme including some other smaller fixes for better exception handling got included in v0.33.2. Feel free to test and let me know it solves your problem.

BR G.

@rafaelorafaelo
Copy link
Author

No more errors. Thanks.

@grindsa grindsa closed this as completed Feb 21, 2024
grindsa added a commit that referenced this issue Mar 19, 2024
db-schema, django-fixture updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready_for_testing
Projects
None yet
Development

No branches or pull requests

2 participants