Standalone build error
After running the command "make db/migrate".
I am getting the following log:
Hi @NerdyLucifer , it seems Postgres container is not running, Could you please tell me the result of running
docker ps and docker ps -a in the terminal?
Thanks! @sanketsaagar, I successfully set up the local environment using docker. So the stopped containers, as you can see in the screenshot, were used for it. I can't see any container running when I try to perform a standalone setup.
@NerdyLucifer It seems Postgres is not running, please share the result of running docker logs issuer-postgres-1
@NerdyLucifer Did you try the command? Also let us know if your issue is resolved or not.
Hey @sanketsaagar, I am facing similar issues while trying to self-host the issuer node. Can you please take a look at my result of running docker logs issuer-postgres-1?
Hi @aaishikasb , Can you share the output of make db/migrate command ?
Thanks for the speedy response! Here, what next?
@aaishikasb Are you running some commands with sudo?
Not yet, should I? For extra context all of this is happening on a DigitalOcean Droplet (VM in simpler terms). I've been on this for a couple of days but haven't had any luck.
Can you try
- sudo su
- make up
Done, still not able to connect. What do I do next?
Can you also share docker logs issuer-api-1 and docker logs issuer-api-ui-1 ?
Here you go:
@aaishikasb You can stop and remove the containers (issuer node containers) and start them again.
Hey @sanketsaagar, is there a possibility for us to connect outside of GitHub to figure out the issues 1:1?
Hi @aaishikasb , It would be better for us to solve the issue here. At this point in time, it's not possible for 1:1. Did you tried to remove the containers and start them again?
No luck so far, tried starting from scratch and I get stuck at the same point every single time.
So this env var ISSUER_ETHEREUM_URL has this value: <Ethereum URL of the Issuer> and that is not correct. That en var must have the RPC URL.
"make build" is not generating the binaries as per the documentation and I was able to execute "make db/migrate" after that
"./bin/platform", "./bin/pending_publisher" are not part of of bin directory to start the issuer.
Logs after "make db/migrate"
2023/06/01 14:06:03 INFO ISSUER_API_UI_SERVER_PORT value is missing
2023/06/01 14:06:03 INFO ISSUER_API_UI_SERVER_URL value is missing
2023/06/01 14:06:03 INFO ISSUER_API_UI_AUTH_USER value is missing
2023/06/01 14:06:03 INFO ISSUER_API_UI_AUTH_PASSWORD value is missing
2023/06/01 14:06:03 INFO ISSUER_API_UI_ISSUER_NAME value is missing
2023/06/01 14:06:03 INFO ISSUER_API_UI_ISSUER_DID value is missing
2023/06/01 14:06:03 INFO ISSUER_API_UI_SCHEMA_CACHE is missing and the server set up it as false
2023/06/01 14:06:03 INFO ISSUER_API_IDENTITY_METHOD value is missing and the server set up it as polygonid
2023/06/01 14:06:03 INFO ISSUER_API_IDENTITY_BLOCKCHAIN value is missing and the server set up it as polygon
2023/06/01 14:06:03 INFO ISSUER_API_IDENTITY_NETWORK value is missing and the server set up it as mumbai
time=2023-06-01T14:06:03.559+05:30 level=DEBUG msg=database url="postgres://polygonid:polygonid@localhost:5432/platformid?sslmode=disable"
2023/06/01 14:06:03 goose: no migrations to run. current version: 202304121507181
time=2023-06-01T14:06:03.572+05:30 level=INFO msg="migration done!"
Instead of "make build" use "make build-local" worked for me but the application is not able to read .env variables
After running the command "make db/migrate". I am getting the following log:
Change it to localhost:5432 instead of postgres:5432 because the migrate command is running on the host machine and the postgres:5432 dns is resolved in the docker network.
