Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 410
    • Issues 410
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhalefunkwhale
  • funkwhalefunkwhale
  • Issues
  • #663
Closed
Open
Issue created Jan 19, 2019 by Julie Furry@FurryJulie

Install : Database migration script fails to run

(Sorry I messed up with the Gitlab interface on this issue ^^")

Hello, I was following the installation documentation for Debian at https://docs.funkwhale.audio/installation/debian.html and I met a problem at the execution on the database migration script (python api/manage.py migrate).

Before this command, the documentation tells to install an extension on Postgres by executing:

sudo -u postgres psql funkwhale -c 'CREATE EXTENSION "unaccent";'

Then, the documentation tells to run in the venv and as the funkwhale the command:

python api/manage.py migrate

For me, this command failed:

(virtualenv) funkwhale@julie-funkwhale:~$ python api/manage.py migrate
[...]
django.db.utils.ProgrammingError: ERREUR:  droit refusé pour créer l'extension « unaccent »
HINT:  Doit être super-utilisateur pour créer cette extension.

Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds

The workaround I came up with was to execute this command in the venv as root. I run this script as root once and then the script runs correctly with the funkwhale user.

I think this should be fixed because this workaround could be unsafe (?).

Edited Jan 19, 2019 by Julie Furry
Assignee
Assign to
Time tracking