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

bug_report #54

Open
Altria002 opened this issue Mar 5, 2022 · 5 comments
Open

bug_report #54

Altria002 opened this issue Mar 5, 2022 · 5 comments

Comments

@Altria002
Copy link

描述问题


**重现步骤**


**截图&日志**
[2022-03-01 09:52:43] 执行出错:Failed to parse dotenv file due to a missing closing quote. Failed at ['5042328466:AAGTPmHxDvbKnsf8Hl378y3T6ckI_v_zsO4]. [{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Parser.php","line":30,"function":"parseValue","class":"Dotenv\\Parser","type":"::","args":["'5042328466:AAGTPmHxDvbKnsf8Hl378y3T6ckI_v_zsO4"]},{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Loader.php","line":169,"function":"parse","class":"Dotenv\\Parser","type":"::","args":["TELEGRAM_BOT_TOKEN='5042328466:AAGTPmHxDvbK4"]},{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Loader.php","line":107,"function":"processEntries","class":"Dotenv\\Loader","type":"->","args":[["ENV_FILE_VERSION='v2'","FREENOM_USERNAME=","FREENOM_PASSWORD=1","MULTIPLE_ACCOUNTS=''","FREENOM_PROXY=''","MAIL_USERNAME=1.com","MAIL_PASSWORD=rjbjfxhddj","[email protected]","MAIL_ENABLE=0","MAIL_HOST=''","MAIL_PORT=''","MAIL_ENCRYPTION=''","TELEGRAM_CHAT_ID=1273","TELEGRAM_BOT_TOKEN='5042AGTPmHxDvbKnsf8Hl378y3T6ckI_v_zsO4","'","TELEGRAM_PROXY=''","TELEGRAM_BOT_ENABLE=1","WECHAT_CORP_ID=''","WECHAT_CORP_SECRET=''","WECHAT_AGENT_ID=''","WECHAT_ENABLE=0","SCT_SEND_KEY=''","SCT_ENABLE=0","BARK_KEY=''","BARK_URL='https:\/\/api.day.app'","BARK_IS_ARCHIVE=''","BARK_GROUP='FreeNom'","BARK_LEVEL='active'","BARK_ICON='https:\/\/q2.qlogo.cn\/headimg_dl?dst_uin=593198779&spec=100'","BARK_JUMP_URL=''","BARK_SOUND='gotosleep'","BARK_ENABLE=0","NOTICE_FREQ=1","VERIFY_SSL=0","DEBUG=0","NEW_VERSION_DETECTION=1"]]},{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Loader.php","line":91,"function":"loadDirect","class":"Dotenv\\Loader","type":"->","args":
**你做了哪些尝试**
vi .env修改配置文件后 
再次尝试重启和输入还是不能运行

**环境信息**
 - ubuntu11 x64
 - php8.0
 - freenom续期脚本版本 v0.4.5

**额外的备注**
- Add any other context about the problem here.
@luolongfei
Copy link
Owner

试试把根目录下的 .env 文件删除,然后执行 php run 会自动重新生成 .env 文件,然后再修改 .env 文件里的配置。另外问下,你 .env 文件中有没有 ^M 字符?

@Altria002
Copy link
Author

image

@Altria002
Copy link
Author

现在env文件为空,重新安装脚本提示ocker: Error response from daemon: Conflict. The container name "/freenom" is already in use by container "a05f8e5477f5c1252793b6f5ea633f89a3e1bb09cb573a6d55aba1ea58bd98f6". You have to remove (or rename) that container to be able to reuse that name.
是不是要把docker也删除

@Altria002
Copy link
Author

已恢复正常,谢谢

@luolongfei
Copy link
Owner

不客气。在docker中的话直接删除.env,重启容器就会自动重新生成.env文件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants