Open tima-t opened 4 years ago
hello, the error is due to the node not syncing, therefore aeternal cannot find any blocks.
Everything should work correctly if you change the docker compose in a way so it connects to a external node:
version: '3.1'
services:
image: aeternity/aeternal:latest
ports:
- "8080:80"
- "3020:3020"
entrypoint: ./docker/wait-for-it.sh node:3013 -- ./aeternal -p -s -w
environment:
- NODE_URL=ADDRESS_OF_YOUR_NODE:3013
- AESOPHIA_URL=compiler:3080
- DATABASE_URL=postgres://middleware:middleware@db/middleware
- LOG_CONF=/logs/log.yaml
volumes:
- ${PWD}/docker/wait-for-it.sh:/app/docker/wait-for-it.sh
depends_on:
- db
- node
- compiler
db:
image: postgres:11
restart: unless-stopped
environment:
- POSTGRES_USER=middleware
- POSTGRES_PASSWORD=middleware
- POSTGRES_DB=middleware
volumes:
- ae-mdw-postgres-volume:/var/lib/postgresql/data
expose: [5432]
compiler:
image: aeternity/aesophia_http:v4.1.0
hostname: compiler
expose: [3080]
volumes:
ae-mdw-postgres-volume:
external: false
node_db:
I am trying but I have some other errors. Can you send me example config file.
E.g
version: '3.1' services: middleware: build: context: . dockerfile: ./docker/Dockerfile ports:
compiler
frontend: build: context: ./frontend/ dockerfile: nginx.Dockerfile args:
middleware
node: image: aeternity/aeternity:${NODE_TAG} hostname: node expose: [3013, 3113, 3014] environment: AETERNITY_CONFIG: /home/aeterinty/aeternity.yaml volumes:
node_db:/home/aeterinty/node/data/mnesia
db: image: postgres:11 restart: unless-stopped environment:
ae-mdw-postgres-volume:/var/lib/postgresql/data expose: [5432]
compiler: image: aeternity/aesophia_http:${COMPILER_TAG} hostname: compiler expose: [3080]
volumes: ae-mdw-postgres-volume: external: false node_db:
Problems: 1 Services - depends on node - should be removed (that should be fine) 2 The node section should be removed in general 3 entrypoint should be modified : entrypoint: ./docker/wait-for-it.sh node:3013 -- ./aeternal -p -s -w node:3013 should be removed and maybe this script node:3013? Can you advice me on that
For node Url I have tried:
Can someone run it locally using public node, confirm that it is working and send me the docker-compose.yml.
This will be the easiest way for me to get it up and running.
And we are using the develop branch or some tag?
I am preparing an example, will be online soon
@tima-t can you check if the examples works for you?
Note: for support questions, please use the forum. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. forum, telegram, etc)