Git Product home page Git Product logo

Comments (8)

thomasvisco avatar thomasvisco commented on August 17, 2024

I'm experiencing this exact error on a Raspberry Pi 3b+ running Raspbian Lite.

from docker.

ch3sn3k avatar ch3sn3k commented on August 17, 2024

I am experiencing the same issue. I think this could be the problem with connection between monica container and db container. I also would appreciate any help. I am using SYNOLOGY NAS with portainer.

from docker.

ch3sn3k avatar ch3sn3k commented on August 17, 2024

@asbiin Can I kindly ask you if you can help us with this issue? I really would like to use Monica but still I am unable to run any docker version using the examples.
Thank you in advanced

from docker.

irwing-reza avatar irwing-reza commented on August 17, 2024

Could the problem be the mysql version?
most of the examples mention mysql:5.7

from docker.

rooq avatar rooq commented on August 17, 2024

I am having the same issue where the database crashes on InnoDB initialization, resulting in a loop for the database service.
Although Instead of an "Upgrade not supported", I am getting this error instead:

[System] [MY-013576] [InnoDB] InnoDB initialization has started.
[ERROR] [MY-012960] [InnoDB] Cannot create redo log files because data files are corrupt or the database was not shut down cleanly after creating the data files.
[ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
[ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
[ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
[ERROR] [MY-010119] [Server] Aborting

I am following the guide Running the image with docker-compose (Apache version).

from docker.

asbiin avatar asbiin commented on August 17, 2024

Hello. Sorry, I don't know why this happens, but it's not related to monica. I also tested it, and the mysql container needs some time to startup, and indeed restart multiple times, but it eventually works.
Have you experienced the same issue with a mariadb container? It's 100% compatible, and might solve it.

from docker.

rooq avatar rooq commented on August 17, 2024

Hello. Sorry, I don't know why this happens, but it's not related to monica. I also tested it, and the mysql container needs some time to startup, and indeed restart multiple times, but it eventually works.

Thanks for the response. After some time and more digging, I found a working solution with mysql. It seems that the documentation for the docker-compose.yml may need some updates. What fixed my issue in particular was changing the volume name for the db container from mysql to mysqldata Here is my docker-compose.yml for those that want a simple working solution: mysql db, apache server, and no reverse-proxy:

services:
  app:
    image: monica:apache
    depends_on:
      - db
    ports:
      - *desired_port*:80
    environment:
      - APP_ENV=production
      - APP_ENV=local
      - DB_HOST=db
      - DB_DATABASE=monica
      - DB_USERNAME=monica
      - DB_PASSWORD=secret
      - LOG_CHANNEL=stderr
      - CACHE_DRIVER=database
      - SESSION_DRIVER=database
      - QUEUE_DRIVER=sync
      - APP_DISABLE_SIGNUP=false
    volumes:
      - data:/var/www/html/storage
    restart: always

  db:
    image: mysql:8.0
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=true
      - MYSQL_DATABASE=monica
      - MYSQL_USER=monica
      - MYSQL_PASSWORD=secret
    volumes:
      - mysqldata:/var/lib/mysql
    restart: always

volumes:
  data:
  mysqldata:

Also, unrelated to this issue, monica was forcing https, so I found a solution to change APP_ENV from production to local and I have no issues running it.

Have you experienced the same issue with a mariadb container? It's 100% compatible, and might solve it.

I will try mariadb in the future, as I have monica running fine, for now. Thank you, again.

from docker.

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.