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]: Paste .env file not working trim #542

Closed
1 task done
dondonjang opened this issue Aug 17, 2022 · 8 comments · Fixed by #544
Closed
1 task done

[Bug]: Paste .env file not working trim #542

dondonjang opened this issue Aug 17, 2022 · 8 comments · Fixed by #544
Assignees

Comments

@dondonjang
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

I pasted Paste .env file

It used to be "trim" normally,
"Trim" doesn't work after this upgrade
An error is occurring when the service is running.

Steps To Reproduce

I pasted Paste .env file

Version

v3.4.0

@andrasbacsai
Copy link
Member

andrasbacsai commented Aug 17, 2022

Can you please show me an example .env file (of course, without actual values)?

I cannot reproduce it.

@dondonjang
Copy link
Author

dondonjang commented Aug 17, 2022

example
i am pasted under db server info

DATABASE_HOST = 1111.sldb.222.net
DATABASE_USERNAME = root
DATABASE_PASSWORD = 2222
DATABASE_NAME = 333

server not start after deploy

@dondonjang
Copy link
Author

2022-08-17T09:53:27.705246042Z at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
2022-08-17T09:53:27.705241393Z Error: getaddrinfo ENOTFOUND 1111.sldb.222.net
2022-08-17T09:53:27.705173958Z [Nest] 21 - 08/17/2022, 6:53:27 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...

my local is working
but if I add host name after add blank
it is not working

@andrasbacsai
Copy link
Member

Is that DB hosted by Coolify? If yes, is it set to public or are you using it internally (without setting it to public)?

Pasting the exact .env to Paste .env file works, so the problem is different.

@dondonjang
Copy link
Author

I use Paste .env file
this DB host is another service

@dondonjang
Copy link
Author

It worked fine before the version update.
After updating this version, an error occurred when deploying,
So I pasted it again, and the error is occurring.
There is a space after the host name

@dondonjang
Copy link
Author

An error occurred during distribution because some values had "" in the previously registered env file.

[00:28:44.235] Error: Command failed: DOCKER_BUILDKIT=1 DOCKER_HOST="unix:///var/run/docker.sock" docker compose --project-directory /tmp/build-sources/dondonjang/pantaoapi/cl6wvktjc00090oppdsv14sk9 up -d
unexpected character "'" in variable name near "espacio' '\n

@andrasbacsai
Copy link
Member

Ah, I found the problem (again). It was introduced by this. I reverted docker compose version to 2.6.1 till it is fixed.

Will be fixed in the next version (releasing soon).

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

Successfully merging a pull request may close this issue.

3 participants