Giter VIP home page Giter VIP logo

Comments (3)

kmadhusudhan avatar kmadhusudhan commented on August 28, 2024

@Dilshandila
It seems one of your instances is not running. jackhammer depend on multiple Docker containers (ex Database, Redis ..) which runs independently. please make sure all instances are up and running.

you can check the status of each instance by running docker ps command.

from jackhammer.

Dilshandila avatar Dilshandila commented on August 28, 2024

@kmadhusudhan I ran the command you have me. here is the output:

root@ubuntu:/home/test/jackhammer# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea97b219095e jackhammer_web "bash -c 'mkdir -p..." 11 hours ago Up 11 hours 0.0.0.0:5000->3000/tcp jackhammer_web_1
a037d1d55788 mysql "docker-entrypoint..." 11 hours ago Up 11 hours (unhealthy) 0.0.0.0:3306->3306/tcp jackhammer-db
cd4d5ab269bb redis "docker-entrypoint..." 11 hours ago Up 11 hours 0.0.0.0:32768->6379/tcp jackhammer_redis_1
root@ubuntu:/home/test/jackhammer#

I removed the mysql container and image and reinstalled it, yet still gives the same error. Also i've disabled the mysql health check but didn't work either.

Jackhammer web logs-

root@ubuntu:/home/test/jackhammer# docker logs c51b296050ba
Puma starting in single mode...

  • Version 3.11.0 (ruby 2.3.0-p0), codename: Love Song
  • Min threads: 0, max threads: 16
  • Environment: production
    /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:458: warning: already initialized constant Readline::HISTORY
    /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:486: warning: already initialized constant Readline::FILENAME_COMPLETION_PROC
    /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:517: warning: already initialized constant Readline::USERNAME_COMPLETION_PROC
    /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rb-readline-0.5.1/lib/readline.rb:523: warning: already initialized constant Readline::VERSION
  • Listening on tcp://0.0.0.0:3000
    Use Ctrl-C to stop
    root@ubuntu:/home/test/jackhammer#

When i checked mysql logs i noticed ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'root'@'%'

can this be an issue?
Pls. advice.

from jackhammer.

kmadhusudhan avatar kmadhusudhan commented on August 28, 2024

@Dilshandila
Yes , creating user table is must for running jackhammer. please run db migration manually by login to web docker .
Steps to Run migration:

  1. docker exec -it jackhammer_web_1 bash
    2)RAIL_ENV=production bundle exec rake db:drop
    3)RAIL_ENV=production bundle exec rake db:create
    4)RAIL_ENV=production bundle exec rake db:migrate
    5)RAIL_ENV=production bundle exec rake db:seed

from jackhammer.

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.