Giter Club home page Giter Club logo

Comments (9)

antonror avatar antonror commented on July 24, 2024

@hashingitout Hi! It means that you have 0 currencies in your database (probably rake db:seeds failed upon setup). Do the following, assuming you are running a docker container:

  1. do docker ps this will display your running docker containers.
  2. copy id of peatio container
    selection_009
  3. run docker exec -it 21583144f2cc /bin/bash with your container id insted of this one
  4. now you are inside application folder of docker container, simply launch
    rake db:reset it will recreate database properly

from workbench.

hashingitout avatar hashingitout commented on July 24, 2024

Thank you but i get

OCI runtime exec failed: exec failed: container_linux.go:296: starting container process caused "chdir to cwd ("/home/app") set in config.json failed: no such file or directory": unknown

from workbench.

antonror avatar antonror commented on July 24, 2024

@hashingitout looks like some earlier steps were missed. There's a config option which puts you inside /home/app folder when launching bash. Now the error tells you that there's no /home/app directory inside a container. Please make sure that containers were setup and built properly. Try to look precisely at building process and watch for any errors on the way.

from workbench.

antonror avatar antonror commented on July 24, 2024

@hashingitout try:
docker exec -it <container-id> /bin/sh instead of docker exec -it <container-id> /bin/bash

from workbench.

hashingitout avatar hashingitout commented on July 24, 2024

@antonror Where can i find more info on the config option which puts you inside /home/app ?

Now i get

OCI runtime exec failed: exec failed: container_linux.go:296: starting container process caused "chdir to cwd ("/home/app") set in config.json failed: no such file or directory": unknown

Should i start from scratch? With a fresh install of everything? If so how would i go about removing the containers and everything ive done so far?

from workbench.

antonror avatar antonror commented on July 24, 2024

@hashingitout please reach https://github.com/rubykube
my docker build works flawlessly on Ubuntu with docker and docker-compose, I'm not sure what causes the problem you are experiencing. However peatio's dockerfile sets the ENV APP_HOME=/home/app constant

from workbench.

hashingitout avatar hashingitout commented on July 24, 2024

I have tried on ubuntu as well. I am getting the same error.

from workbench.

hashingitout avatar hashingitout commented on July 24, 2024

This is what I am doing:

Clone peatio and barong and workbench to ~/Development/
in workbench directory: make build
Then: make prepare.
Then: make setup-apps
Edit /etc/hosts: 0.0.0.0 peatio 0.0.0.0 barong

Start barong: docker-compose up -d barong
Start peatio server: docker-compose up -d peatio

from workbench.

hashingitout avatar hashingitout commented on July 24, 2024

Fixed With:

docker-compose run --rm peatio "rake db:reset"
docker-compose run --rm peatio "rake db:migrate"

from workbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.