mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[GH-ISSUE #70] Docker Container throws exit code 1 #31
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#31
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 @kamikaze2508 on GitHub (Jun 20, 2025).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/70
Originally assigned to: @glenndehaan on GitHub.
The question
Hello everyone,
I have a problem with starting the container.
After I edit the YAML-File and start the container I've got the exit code 1. A view in the log shows following entries:
2025-06-20 07:47:40.728 INFO [Version] Git: master - Build: 11/06/2025, 18:12
2025-06-20 07:47:40.728 INFO [Service][Web] Enabled!
2025-06-20 07:47:40.728 INFO [Service][Api] Disabled!
2025-06-20 07:47:40.728 INFO [Voucher] Loaded the following types:
/app/utils/types.js:18
return match.groups.expiration ? {...match.groups, raw: type} : undefined;
^
TypeError: Cannot read properties of null (reading 'groups')
at /app/utils/types.js:18:22
at Array.map ()
at module.exports (/app/utils/types.js:16:33)
at module.exports (/app/modules/info.js:71:5)
at Object. (/app/server.js:50:1)
at Module._compile (node:internal/modules/cjs/loader:1730:14)
at Object..js (node:internal/modules/cjs/loader:1895:10)
at Module.load (node:internal/modules/cjs/loader:1465:32)
at Function._load (node:internal/modules/cjs/loader:1282:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
Node.js v22.15.1
Can someone give me a hint what I need to do, to start the container correctly?
Thanks a lot.
@glenndehaan commented on GitHub (Jun 20, 2025):
Hi @kamikaze2508,
Looking at the logs it seems the input of the
VOUCHER_TYPESenvironment variable is malformed.Could you post the environment variables section from your YAML? Please remove sensitive parts before posting.
Kind regards,
Glenn de Haan
@kamikaze2508 commented on GitHub (Jun 20, 2025):
Here it is:
Thank you for your fast replay
@glenndehaan commented on GitHub (Jun 20, 2025):
Hi @kamikaze2508,
Thank you for sharing I found the issue if you replace:
480,1,,,;1440,1,,,;2880,1,,,;20160,N2,,,;with480,1,,,;1440,1,,,;2880,1,,,;20160,2,,,;withinVOUCHER_TYPESyou should be good to go.Kind regards,
Glenn de Haan
@kamikaze2508 commented on GitHub (Jun 20, 2025):
Perfect, that's it.
One quick question. Is the admin UI also multilingual? I entered "de" for TRANSLATION_DEFAULT in the YAML, but the UI is still in English.
@glenndehaan commented on GitHub (Jun 20, 2025):
Great to hear. No the admin UI is only available in English. The idea is to change this in the future but is not on the planning right now
@kamikaze2508 commented on GitHub (Jun 20, 2025):
OK, then it's fine. Thanks again for your quick help.
Best regards,
Christian