aeternity / aeternal

Æterrnal--the caching and reporting layer for the æternity blockchain
https://aeternal.io
ISC License
18 stars 10 forks source link

middleware_1 | 2019-12-17T17:39:14.514634226+00:00 ERROR aeternal::loader - Couldn't load generation -1 from DB middleware_1 | 2019-12-17T17:39:20.537184677+00:00 ERROR aeternal::models - Error loading key block: NotFound middleware_1 | 2019-12-17T17:39:20.537286210+00:00 ERROR aeternal::loader - Couldn't load generation -1 from DB #249

Open tima-t opened 4 years ago

tima-t commented 4 years ago

Note: for support questions, please use the forum. This repository's issues are reserved for feature requests and bug reports.

noandrea commented 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:
tima-t commented 4 years ago

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:

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?

noandrea commented 4 years ago

I am preparing an example, will be online soon

noandrea commented 4 years ago

@tima-t can you check if the examples works for you?