mirror of
https://github.com/pelican-dev/panel.git
synced 2026-03-01 11:21:31 +03:00
Docker: Panel doesn't start with spaces/special chars in variable values in .env #528
Reference in New Issue
Block a user
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 @InterXellar on GitHub (Dec 23, 2025).
Originally assigned to: @parkervcp on GitHub.
Current Behavior
When having a space or special character in a variable name (example APP_NAME or MAIL_FROM_NAME) in the .env file the docker container of panel doesn't start anymore, due to the way how the environment variables are loaded in the entrypoint.sh script.
Expected Behavior
The panel should start normally.
Steps to Reproduce
Have a space in an environment variable (for example APP_NAME) and start the panel, the panel will not start.
Panel Version
v1.0.0-beta30
Wings Version
nA
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Is there an existing issue for this?
@coderabbitai[bot] commented on GitHub (Dec 23, 2025):
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Similar Issues
Possible Duplicates
Related Issues
👤 Suggested Assignees
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord or schedule a call!
@notAreYouScared commented on GitHub (Dec 23, 2025):
I think your env has a bad variable.... APP_URL is correct along with all the others with _
@InterXellar commented on GitHub (Dec 23, 2025):
I had spaces in APP_NAME and a "-" in MAIL_FROM_NAME, removing any special characters fixed it for me... but anything after a space in a variable gets cut, for example APP_NAME="Pelican Panel" turns into just Pelican
the
export $(grep -v '^#' .env | xargs)dislikes any special characters.I changed it to
. /var/www/html/.envwhich fixed it not accepting any special characters@notAreYouScared commented on GitHub (Dec 23, 2025):
Ohhh, I thought you meant the variable name itself had a space... My bad.
@mristau commented on GitHub (Dec 23, 2025):
had the same in the discord there was a suggestion for this from Mainfrezzer
@parkervcp commented on GitHub (Jan 5, 2026):
You can try using #2063 and see if that works for you.
I too agreed that sourcing the env with
. /var/www/html/.envworks but there is an issue with it potentially running shell commands if someone updates config values in the panel.