执行出错:Failed to parse dotenv file due to an invalid name. Failed at #2815

Closed
opened 2026-02-05 05:17:09 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @cclives789 on GitHub (May 28, 2022).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

docker中删除了.env 重新配置也是这个问题

密码中也仅有一个@符号,无其他特殊符号

php 7.4

Exact BookStack Version

v2.4

Log Content

执行出错:Failed to parse dotenv file due to an invalid name. Failed at [#####################################################################]. [{"file":"/app/vendor/vlucas/phpdotenv/src/Parser.php","line":30,"function":"parseName","class":"Dotenv\Parser","type":"::","args":["#####################################################################"]},{"file":"/app/vendor/vlucas/phpdotenv/src/Loader.php","line":169,"function":"parse","class":"Dotenv\Parser","type":"::","args":["#####################################################################"]},{"file":"/app/vendor/vlucas/phpdotenv/src/Loader.php","line":107,"function":"processEntries","class":"Dotenv\Loader","type":"->","args":[["#####################################################################"

PHP Version

7.4

Hosting Environment

ubuntu 18

Originally created by @cclives789 on GitHub (May 28, 2022). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario docker中删除了.env 重新配置也是这个问题 密码中也仅有一个@符号,无其他特殊符号 php 7.4 ### Exact BookStack Version v2.4 ### Log Content 执行出错:Failed to parse dotenv file due to an invalid name. Failed at [#####################################################################]. [{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Parser.php","line":30,"function":"parseName","class":"Dotenv\\Parser","type":"::","args":["#####################################################################"]},{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Loader.php","line":169,"function":"parse","class":"Dotenv\\Parser","type":"::","args":["#####################################################################"]},{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Loader.php","line":107,"function":"processEntries","class":"Dotenv\\Loader","type":"->","args":[["#####################################################################" ### PHP Version 7.4 ### Hosting Environment ubuntu 18
OVERLORD added the 🐕 Support label 2026-02-05 05:17:09 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 28, 2022):

Hi @cclives789,

I'm confused by your setup.
Are you hosting BookStack using docker or are you running directly on Ubuntu? If using docker, what docker container image are you using?

Additionally, when i translate your message it mentions deleting a file. Is this correct and what exact file are you deleting?

@ssddanbrown commented on GitHub (May 28, 2022): Hi @cclives789, I'm confused by your setup. Are you hosting BookStack using docker or are you running directly on Ubuntu? If using docker, what docker container image are you using? Additionally, when i translate your message it mentions deleting a file. Is this correct and what exact file are you deleting?
Author
Owner

@ssddanbrown commented on GitHub (Jun 7, 2022):

Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed respond to my previous comment and this can then be re-opened.

@ssddanbrown commented on GitHub (Jun 7, 2022): Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed respond to my previous comment and this can then be re-opened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2815