issuer-node icon indicating copy to clipboard operation
issuer-node copied to clipboard

Standalone build error

Open ashwat287 opened this issue 3 years ago • 25 comments

After running the command "make db/migrate". I am getting the following log: Screenshot 2023-05-15 at 20 28 57

ashwat287 avatar May 15 '23 15:05 ashwat287

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?

sanketsaagar avatar May 16 '23 13:05 sanketsaagar

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. Screenshot 2023-05-16 at 19 49 28

ashwat287 avatar May 16 '23 14:05 ashwat287

@NerdyLucifer It seems Postgres is not running, please share the result of running docker logs issuer-postgres-1

sanketsaagar avatar May 16 '23 14:05 sanketsaagar

@NerdyLucifer Did you try the command? Also let us know if your issue is resolved or not.

sanketsaagar avatar May 24 '23 13:05 sanketsaagar

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?

Screenshot 2023-05-30 at 7 01 38 PM

aaishikasb avatar May 30 '23 13:05 aaishikasb

Hi @aaishikasb , Can you share the output of make db/migrate command ?

sanketsaagar avatar May 30 '23 13:05 sanketsaagar

Thanks for the speedy response! Here, what next?

Screenshot 2023-05-30 at 7 20 50 PM

aaishikasb avatar May 30 '23 13:05 aaishikasb

@aaishikasb Are you running some commands with sudo?

sanketsaagar avatar May 30 '23 14:05 sanketsaagar

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.

aaishikasb avatar May 30 '23 14:05 aaishikasb

Can you try

  1. sudo su
  2. make up

sanketsaagar avatar May 30 '23 14:05 sanketsaagar

Done, still not able to connect. What do I do next?

Screenshot 2023-05-30 at 7 50 37 PM

aaishikasb avatar May 30 '23 14:05 aaishikasb

Can you also share docker logs issuer-api-1 and docker logs issuer-api-ui-1 ?

sanketsaagar avatar May 30 '23 14:05 sanketsaagar

Here you go:

Screenshot 2023-05-30 at 8 06 19 PM

aaishikasb avatar May 30 '23 14:05 aaishikasb

@aaishikasb You can stop and remove the containers (issuer node containers) and start them again.

sanketsaagar avatar May 30 '23 14:05 sanketsaagar

Hey @sanketsaagar, is there a possibility for us to connect outside of GitHub to figure out the issues 1:1?

aaishikasb avatar May 31 '23 16:05 aaishikasb

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?

sanketsaagar avatar May 31 '23 16:05 sanketsaagar

No luck so far, tried starting from scratch and I get stuck at the same point every single time.

aaishikasb avatar May 31 '23 16:05 aaishikasb

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.

sanketsaagar avatar May 31 '23 17:05 sanketsaagar

"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. Screenshot from 2023-06-01 13-47-51

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

nagarjun-repala avatar Jun 01 '23 08:06 nagarjun-repala

After running the command "make db/migrate". I am getting the following log: Screenshot 2023-05-15 at 20 28 57

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.

nagarjun-repala avatar Jun 01 '23 16:06 nagarjun-repala