{"action":"opened","issue":{"url":"https://api.github.com/repos/graphite-project/docker-graphite-statsd/issues/46","repository_url":"https://api.github.com/repos/graphite-project/docker-graphite-statsd","labels_url":"https://api.github.com/repos/graphite-project/docker-graphite-statsd/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/graphite-project/docker-graphite-statsd/issues/46/comments","events_url":"https://api.github.com/repos/graphite-project/docker-graphite-statsd/issues/46/events","html_url":"https://github.com/graphite-project/docker-graphite-statsd/issues/46","id":352917084,"node_id":"MDU6SXNzdWUzNTI5MTcwODQ=","number":46,"title":"Getting an error when running on kubernetes with persistent volume (OperationalError: no such table: auth_user)","user":{"login":"groupvrg","id":29442713,"node_id":"MDQ6VXNlcjI5NDQyNzEz","avatar_url":"https://avatars2.githubusercontent.com/u/29442713?v=4","gravatar_id":"","url":"https://api.github.com/users/groupvrg","html_url":"https://github.com/groupvrg","followers_url":"https://api.github.com/users/groupvrg/followers","following_url":"https://api.github.com/users/groupvrg/following{/other_user}","gists_url":"https://api.github.com/users/groupvrg/gists{/gist_id}","starred_url":"https://api.github.com/users/groupvrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupvrg/subscriptions","organizations_url":"https://api.github.com/users/groupvrg/orgs","repos_url":"https://api.github.com/users/groupvrg/repos","events_url":"https://api.github.com/users/groupvrg/events{/privacy}","received_events_url":"https://api.github.com/users/groupvrg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T11:46:05Z","updated_at":"2018-08-22T11:46:05Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI'm trying to run the docker image on kubernetes when I try to enter the portal I get this error:\r\n`Traceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py\", line 41, in inner\r\n    response = get_response(request)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py\", line 187, in _get_response\r\n    response = self.process_exception_by_middleware(e, request)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py\", line 185, in _get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/opt/graphite/webapp/graphite/composer/views.py\", line 35, in composer\r\n    profile = getProfile(request)\r\n  File \"/opt/graphite/webapp/graphite/user_util.py\", line 25, in getProfile\r\n    return default_profile()\r\n  File \"/opt/graphite/webapp/graphite/user_util.py\", line 41, in default_profile\r\n    'password': '!'})\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py\", line 85, in manager_method\r\n    return getattr(self.get_queryset(), name)(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/query.py\", line 464, in get_or_create\r\n    return self.get(**lookup), False\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/query.py\", line 374, in get\r\n    num = len(clone)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/query.py\", line 232, in __len__\r\n    self._fetch_all()\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/query.py\", line 1118, in _fetch_all\r\n    self._result_cache = list(self._iterable_class(self))\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/query.py\", line 53, in __iter__\r\n    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)\r\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py\", line 900, in execute_sql\r\n    raise original_exception\r\nOperationalError: no such table: auth_user\r\n`\r\n\r\nthis is the configuration I'm using:\r\n`---\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: graphite-svc\r\n  labels:\r\n    app: graphite\r\nspec:\r\n  type: LoadBalancer\r\n  ports:\r\n  - port: 80\r\n    targetPort: 80\r\n  selector:\r\n    app: graphite\r\n---\r\napiVersion: v1\r\nkind: PersistentVolumeClaim\r\nmetadata:\r\n  name: graphite-persistent-storage\r\nspec:\r\n  accessModes:\r\n    - ReadWriteOnce\r\n  storageClassName: fast\r\n  resources:\r\n    requests:\r\n      storage: 300Gi\r\n---\r\napiVersion: apps/v1\r\nkind: Deployment\r\nmetadata:\r\n  name: graphite-deploy\r\n  labels:\r\n    app: graphite\r\nspec:\r\n  replicas: 1\r\n  selector:\r\n    matchLabels:\r\n      app: graphite\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: graphite\r\n    spec:\r\n      containers:\r\n      - name: graphite\r\n        image: graphiteapp/graphite-statsd\r\n        ports:\r\n         - containerPort: 80\r\n         - containerPort: 2003\r\n           protocol: UDP\r\n        volumeMounts:\r\n          - name: graphite-data\r\n            mountPath: /opt/graphite/storage\r\n        env:\r\n          - name: GRAPHITE_STORAGE_DIR\r\n            value: /opt/graphite/storage\r\n      volumes:\r\n      - name: graphite-data\r\n        persistentVolumeClaim:\r\n          claimName: graphite-persistent-storage \r\n`\r\n\r\nwhen running without persistent volume the image works as expected. I don't really know where to start looking. the only other different thing I see is that there is a lost+found dir in /opt/graphite/storage\r\n\r\nThanks."}}
{"actor":{"display_login":"groupvrg"}}