backup error "executable file not found in $PATH" #7

Closed
opened 2024-05-28 11:08:12 +00:00 by erinstorm · 3 comments

Hi, when trying to use the backup feature for authentik, I get this error:

$ abra app backup server.example.com
INFO[0006] running backup for the db service
OCI runtime exec failed: exec failed: unable to start container process: exec: "PGPASSWORD=$(cat": executable file not found in $PATH: unknown
FATA[0008] failed to run PGPASSWORD=$(cat /run/secrets/db_password) pg_dump -U ${POSTGRES_USER} ${POSTGRES_DB} > /var/lib/postgresql/data/backup.sql on e1590d1a: Status: , Code: 126

Not sure where this command is run. I can see that pg_dump executable exists in db container.

Hi, when trying to use the backup feature for authentik, I get this error: ``` $ abra app backup server.example.com INFO[0006] running backup for the db service OCI runtime exec failed: exec failed: unable to start container process: exec: "PGPASSWORD=$(cat": executable file not found in $PATH: unknown FATA[0008] failed to run PGPASSWORD=$(cat /run/secrets/db_password) pg_dump -U ${POSTGRES_USER} ${POSTGRES_DB} > /var/lib/postgresql/data/backup.sql on e1590d1a: Status: , Code: 126 ``` Not sure where this command is run. I can see that `pg_dump` executable exists in db container.
Owner

Can you provide which version of authentik and which version of backup-bot-two you have deployed.
abra app ls -S -s <your-server>
It looks like a bash quotation problem.

Can you provide which version of authentik and which version of backup-bot-two you have deployed. `abra app ls -S -s <your-server>` It looks like a bash quotation problem.
Author

Oh I didn't realise I have to also install a backup-bot app? I'm just running the command manually, and it worked to backup the "outline" app without it. The version I have of authentik is the latest one. Just reinstalled it.

$ abra app ls -S -s example.com
+-----------+------------------------+----------+-------+----------------+---------------+------------+
|  RECIPE   |         DOMAIN         |  STATUS  | CHAOS |    VERSION     |    UPGRADE    | AUTOUPDATE |
+-----------+------------------------+----------+-------+----------------+---------------+------------+
| authentik | authentik.example.com. | deployed | false | 6.1.1+2024.4.2 | latest        | true       |
| outline   | outline.example.com.   | deployed | false | 2.2.0+0.75.2   | 2.3.0+0.76.1  | false      |
| traefik   | traefik.example.com.   | deployed | false | 2.4.1+v2.10.3  | 3.0.0+v3.0.0  | true       |
|           |                        |          |       |                | 2.6.3+v2.11.2 |            |
|           |                        |          |       |                | 2.6.2+v2.11.1 |            |
|           |                        |          |       |                | 2.6.1+v2.11.0 |            |
|           |                        |          |       |                | 2.6.0+v2.11.0 |            |
|           |                        |          |       |                | 2.5.0+v2.11.0 |            |
|           |                        |          |       |                | 2.4.3+v2.10.5 |            |
|           |                        |          |       |                | 2.4.2+v2.10.4 |            |
+-----------+------------------------+----------+-------+----------------+---------------+------------+
server: example.com | total apps: 3 | versioned: 3 | unversioned: 0 | latest: 1 | upgrade: 2

(server domains altered for privacy)

Oh I didn't realise I have to also install a backup-bot app? I'm just running the command manually, and it worked to backup the "outline" app without it. The version I have of authentik is the latest one. Just reinstalled it. ``` $ abra app ls -S -s example.com +-----------+------------------------+----------+-------+----------------+---------------+------------+ | RECIPE | DOMAIN | STATUS | CHAOS | VERSION | UPGRADE | AUTOUPDATE | +-----------+------------------------+----------+-------+----------------+---------------+------------+ | authentik | authentik.example.com. | deployed | false | 6.1.1+2024.4.2 | latest | true | | outline | outline.example.com. | deployed | false | 2.2.0+0.75.2 | 2.3.0+0.76.1 | false | | traefik | traefik.example.com. | deployed | false | 2.4.1+v2.10.3 | 3.0.0+v3.0.0 | true | | | | | | | 2.6.3+v2.11.2 | | | | | | | | 2.6.2+v2.11.1 | | | | | | | | 2.6.1+v2.11.0 | | | | | | | | 2.6.0+v2.11.0 | | | | | | | | 2.5.0+v2.11.0 | | | | | | | | 2.4.3+v2.10.5 | | | | | | | | 2.4.2+v2.10.4 | | +-----------+------------------------+----------+-------+----------------+---------------+------------+ server: example.com | total apps: 3 | versioned: 3 | unversioned: 0 | latest: 1 | upgrade: 2 ``` (server domains altered for privacy)
Owner

ohh dammed, I see..
In the current release the new backup functionality of the backup-bot-two is not implemented yet, and the old backup implementation somehow handles quotes differently than the backup-bot-two.
I would recommend to deploy https://git.coopcloud.tech/coop-cloud/backup-bot-two with the --chaos flag. It's currently work in progress, but hopefully soon the first release of the rewrite will be published and integrated in abra.

ohh dammed, I see.. In the current release the new backup functionality of the backup-bot-two is not implemented yet, and the old backup implementation somehow handles quotes differently than the `backup-bot-two`. I would recommend to deploy https://git.coopcloud.tech/coop-cloud/backup-bot-two with the --chaos flag. It's currently work in progress, but hopefully soon the first release of the rewrite will be published and integrated in abra.
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/authentik#7
No description provided.