Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 389
    • Issues 389
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhale
  • funkwhalefunkwhale
  • Issues
  • #1369

Closed
Open
Created Mar 19, 2021 by Porrumentzio@Porrumentzio

Installation/Upgrading script is user dependent

Steps to reproduce

  1. Run the script first time with a user, lets say marcel@instance.url
  2. Try to run the script to upgrade the software with another user, lets say root@instance.url. You'll get this error
# sudo sh -c "$(curl -sSL https://get.funkwhale.audio/upgrade.sh)"

[Beginning upgrade]
[1/4] Retrieving currently installed version from /srv/funkwhale/ansible/playbook.yml
[1/4] No target version specified, retrieving latest version from https://docs.funkwhale.audio/latest.txt

Upgrade summary:

- Current version: 1.1
- Target version: 1.1
- Upgrading may cause temporary downtime on your pod

Do you want to proceed with the upgrade? [YES/no]: 
[2/4] Replacing current version number in /srv/funkwhale/ansible/playbook.yml…
[3/4] Upgrading ansible dependencies...
[3/4] Upgrading Funkwhale using ansible playbook in /srv/funkwhale/ansible...
sh: 98: /root/.local/bin/ansible-galaxy: not found

What happens?

Seems that this happens because the installation of dependencies is made with a per-user basis, so running the script with other users will not find out the dependencies.

Workaround

Maybe running the script with other users but from the first user's /home directory could work.

What is expected?

I expected that the dependencies are not user dependent, so the script can be run with any other user too.

Edited Apr 09, 2021 by funkwhale-bot
Assignee
Assign to
Time tracking