ansible issueshttps://dev.funkwhale.audio/funkwhale/ansible/-/issues2020-11-21T10:15:54Zhttps://dev.funkwhale.audio/funkwhale/ansible/-/issues/8Installation fails on ubuntu server 20.04 LTS2020-11-21T10:15:54ZValerii LashmanovInstallation fails on ubuntu server 20.04 LTS/label funkwhale~65 funkwhale~81
## Steps to reproduce
1. Run `sudo sh -c "$(curl -sSL https://get.funkwhale.audio/)"`
2. Skip nginx and certbot installation
3. Observe installation failure
## What happens?
```
TASK [funkwhale : Inst.../label funkwhale~65 funkwhale~81
## Steps to reproduce
1. Run `sudo sh -c "$(curl -sSL https://get.funkwhale.audio/)"`
2. Skip nginx and certbot installation
3. Observe installation failure
## What happens?
```
TASK [funkwhale : Install system packages] ***********************************************************************************************************************************************************************
[WARNING]: Could not find aptitude. Using apt-get instead
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "No package matching 'python-virtualenv' is available"}
```
## What is expected?
Successful installation.
## Context
<!--
The version of your instance can be found on the footer : Source code (x.y)
-->
**Funkwhale version(s) affected**: 0.21.1
```
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
```backloghttps://dev.funkwhale.audio/funkwhale/ansible/-/issues/3Cannot disable certbot2020-01-02T13:25:59ZNicholas EckardtCannot disable certbotI have a sort of weird setup where I am installing funkwhale within a container, and using an Apache webserver on the outside to decrypt the traffic going to funkwhale, and pass it down to the container using ProxyPass. With the sudo sh ...I have a sort of weird setup where I am installing funkwhale within a container, and using an Apache webserver on the outside to decrypt the traffic going to funkwhale, and pass it down to the container using ProxyPass. With the sudo sh -c "$(curl -sSL https://get.funkwhale.audio/)" installation script, there is no way to disable running certbot.
There are various solutions that would work, but here are a few ideas I have:
- If funkwhale_hostname is empty, skip running certbot
- Add another question to the customize install questions: "Install and manage certificates" or something.
Thanks,
- Nickbackloghttps://dev.funkwhale.audio/funkwhale/ansible/-/issues/5Cannot create Postgresql database2020-01-02T13:25:15ZAustin BohannonCannot create Postgresql databaseI am installing via the recommended method on the [quickstart](https://docs.funkwhale.audio/installation/) (`sudo sh -c "$(curl -sSL https://get.funkwhale.audio/)"`). I am installing on an Ubuntu 19.04 lxc container which did not have Po...I am installing via the recommended method on the [quickstart](https://docs.funkwhale.audio/installation/) (`sudo sh -c "$(curl -sSL https://get.funkwhale.audio/)"`). I am installing on an Ubuntu 19.04 lxc container which did not have Postgresql previously installed. However, I get the following error:
```
TASK [funkwhale : Create funkwhale database] **********************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: HINT: Use the same encoding as in the template database, or use template0 as template.
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Database query failed: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)\nHINT: Use the same encoding as in the template database, or use template0 as template.\n"}
PLAY RECAP ********************************************************************************************************************************************************************************************************
127.0.0.1 : ok=5 changed=2 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
```
If I add `template: template0` after [this line](https://dev.funkwhale.audio/funkwhale/ansible/blob/master/tasks/db.yml#L22), the error goes away and the playbook continues to install. (This suggestion comes from [this](https://stackoverflow.com/questions/18870775/how-to-change-the-template-database-collection-coding) Stack Overflow answer.) If this is an issue that others face, and if using `template0` does not have any adverse effects, it may be a useful addition to the Ansible script.backlog