Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
3 tasks
tima-t opened this issue Dec 17, 2019 · 4 comments

Comments

@tima-t
Copy link

tima-t commented Dec 17, 2019

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

  • I'm submitting a ...

    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.
  • 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:

    • Node Version: v0.0.0
    • Protocol Version: 1
    • Sophia Compiler version: v0.0.0
    • Rust version: v0.00
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. forum, telegram, etc)

@noandrea
Copy link

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
Copy link
Author

tima-t commented Dec 19, 2019

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:
- "8080:80"
- "3020:3020"
entrypoint: ./docker/wait-for-it.sh node:3013 -- ./aeternal -p -s -w
environment:
- NODE_URL=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

frontend:
build:
context: ./frontend/
dockerfile: nginx.Dockerfile
args:
- NODE_URL=http://localhost:8080
- NODE_WS=http://localhost:3020
- NETWORK_NAME='TEST NET'
ports:
- "8081:80"
depends_on:
- middleware

node:
image: aeternity/aeternity:${NODE_TAG}
hostname: node
expose: [3013, 3113, 3014]
environment:
AETERNITY_CONFIG: /home/aeterinty/aeternity.yaml
volumes:
- ${PWD}/docker/aeternity.yaml:/home/aeterinty/aeternity.yaml
- node_db:/home/aeterinty/node/data/mnesia

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:${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?

@noandrea
Copy link

I am preparing an example, will be online soon

noandrea added a commit that referenced this issue Dec 20, 2019
* uppdate base images version
* include the wait-for-it script in the base images
* fix node configuration
* add examples for docker

ref #249
@noandrea
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants