GithubHelp home page GithubHelp logo

Getting an error when running on kubernetes with persistent volume (OperationalError: no such table: auth_user) about docker-graphite-statsd HOT 5 CLOSED

groupvrg avatar groupvrg commented on August 17, 2024
Getting an error when running on kubernetes with persistent volume (OperationalError: no such table: auth_user)

from docker-graphite-statsd.

Comments (5)

deniszh avatar deniszh commented on August 17, 2024

Yes, init script should be fixed to skip lost+found dir

from docker-graphite-statsd.

deniszh avatar deniszh commented on August 17, 2024

Fixed in 1.1.4-1 release

from docker-graphite-statsd.

ertwroc avatar ertwroc commented on August 17, 2024

Please reopen this issue - now graphite doesn't start when you run it second time. It hangs on django-admin.py createsuperuser

root@graphite:/# ps axf
  PID TTY      STAT   TIME COMMAND
   44 ?        Ss     0:00 /bin/sh
   51 ?        S      0:00  \_ bash
  100 ?        R+     0:00      \_ ps axf
    1 ?        Ss     0:00 /usr/bin/python3 -u /sbin/my_init
    9 ?        S      0:00 /bin/bash /etc/my_init.d/01_conf_init.sh
   19 ?        Sl     0:00  \_ expect /usr/local/bin/django_admin_init.exp
   20 pts/0    Ss+    0:00      \_ /bin/bash /usr/local/bin/manage.sh
   39 pts/0    S+     0:00          \_ /usr/bin/python /usr/local/bin/django-admin.py createsuperuser --settings=graphite.settings

The problem is with line graphite_storage_dir_contents=$(find /opt/graphite/storage -mindepth 1 -print -quit | grep -v lost+found) in /etc/my_init.d/01_conf_init.sh. When find returns as first and the only line lost+found then it is excluded by grep no mater if there are any other directories. It can be solved by doing exclude directly in find command, so please replace this line with

graphite_storage_dir_contents=$(find /opt/graphite/storage -mindepth 1 -not -path /opt/graphite/storage/lost+found -print -quit | grep -v lost+found)

from docker-graphite-statsd.

deniszh avatar deniszh commented on August 17, 2024

Argh, will fix it asap

from docker-graphite-statsd.

deniszh avatar deniszh commented on August 17, 2024

Fix released in 1.1.4-3, also opened PR for official helm chart to upgrade.
Thanks for testing, @ertwroc, sorry for messing that up. 😭

from docker-graphite-statsd.

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.