Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Typo error on arch install on step 5 and problem on step 3 #55

Open
KNobles opened this issue Mar 15, 2022 · 1 comment
Open

Typo error on arch install on step 5 and problem on step 3 #55

KNobles opened this issue Mar 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@KNobles
Copy link

KNobles commented Mar 15, 2022

I had problems at step 5 when running migrations when copy pasting
migrate -database postgres://postgres:password@localhost:5432/erupe?sslmode=disable -path migrations up

it gave me the error
No matches for wildcard "migrate -database postgres://postgres:password@localhost:5432/erupe?sslmode=disable -path migrations up"

for me what made it work was to add double quotes for the database part
migrate -database "postgres://postgres:password@localhost:5432/erupe?sslmode=disable" -path migrations up

Also I don't know why but for the 3rd step I had a problem with the command
sudo su postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'"
where it said I couldn't create the folder because Permission denied so I ended up creating the folder myself then I changed the owner of the folder to postgres user.

@tolly765
Copy link

For the line that you posted in your issue:
migrate -database postgres://postgres:password@localhost:5432/erupe?sslmode=disable -path migrations up

Did you replace the password segment in the line with the one you set up with your postgresql install? The section you need to look at is in bold below:
postgres://postgres: password @localhost:5432

@ricochhet ricochhet added the bug Something isn't working label Mar 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants