abra app new traefik: FATA[0000] .env.sample no such file #310

Closed
opened 2022-04-07 22:31:23 +00:00 by nicholas_a_b_ · 5 comments

Context:

  • Running abra version 0.3.0-alpha-de7054f
  • MacOS Big Sur 11.2, MacBook Pro 2015
  • My first server set-up

To add my server successfully, I had to run:

abra server add server1.nicholasab.com root 22 -p

otherwise (without the root 22 -p) terminal returned

FATA[0000] couldn't make a remote docker connection to server1.nicholasab.com? use --provision/-p to attempt to install 

Error:
Currently

abra app new traefik

returns

FATA[0000] open /Users/nicholas/.abra/apps/traefik/.env.sample: no such file or directory

and previously returned

FATA[0000] Get "https://git.coopcloud.tech/coop-cloud/traefik.git/info/refs?service=git-upload-pack": dial tcp: lookup git.coopcloud.tech on [::1]:53: read udp [::1]:49922->[::1]:53: read: connection refused 

I just tried manually deleting the

/Users/nicholas/.abra/apps/traefik/

folder and now I get

FATA[0000] repository already exists   
**Context:** * Running abra version 0.3.0-alpha-de7054f * MacOS Big Sur 11.2, MacBook Pro 2015 * My first server set-up To add my server successfully, I had to run: ``` abra server add server1.nicholasab.com root 22 -p ``` otherwise (without the root 22 -p) terminal returned ``` FATA[0000] couldn't make a remote docker connection to server1.nicholasab.com? use --provision/-p to attempt to install ``` **Error:** Currently ``` abra app new traefik ``` returns ``` FATA[0000] open /Users/nicholas/.abra/apps/traefik/.env.sample: no such file or directory ``` and previously returned ``` FATA[0000] Get "https://git.coopcloud.tech/coop-cloud/traefik.git/info/refs?service=git-upload-pack": dial tcp: lookup git.coopcloud.tech on [::1]:53: read udp [::1]:49922->[::1]:53: read: connection refused ``` I just tried manually deleting the ``` /Users/nicholas/.abra/apps/traefik/ ``` folder and now I get ``` FATA[0000] repository already exists ```
nicholas_a_b_ added the
bug
abra
labels 2022-04-07 22:31:23 +00:00
Owner

Hmmmm, yes, this looks familiar. I remember a lot of these abra internal confusions on the v0.3 series. Sorry you ran into these weird error messages & thanks for the patience 🙏

It looks like there was some sort of network failure during this operation... perhaps deleting both the traefik recipe & the ~/.abra/servers/$yourserver/$yourtraefikapp.env might get you back to a clean slate?

We're gonna try release the new v0.4 stable next week, I hope!

Hmmmm, yes, this looks familiar. I remember a lot of these `abra` internal confusions on the v0.3 series. Sorry you ran into these weird error messages & thanks for the patience 🙏 It looks like there was some sort of network failure during this operation... perhaps deleting both the traefik recipe & the `~/.abra/servers/$yourserver/$yourtraefikapp.env` might get you back to a clean slate? We're gonna try release the new v0.4 stable next week, I hope!
Author

thanks for the reply. hm, i didn't have the file you suggested, but i deleted the abra/apps/traefik folder again, and running abra app new traefik returned a different error:

FATA[0001] unexpected character "." in variable name near ".Domain }}\nLETS_ENCRYPT_ENV=production\n\nLETS_ENCRYPT_EMAIL=certs@example.com\n# DASHBOARD_ENABLED=true\n# WARN, INFO etc.\nLOG_LEVEL=WARN\n\n# This is here so later lines can extend it; you likely don't wanna edit\nCOMPOSE_FILE=\"compose.yml\"\n\n#####################################################################\n# General settings                                                  #\n#####################################################################\n\n## Host-mode networking\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.host.yml\"\n\n## \"Headless mode\" (no domain configured)\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.headless.yml\"\n\n#####################################################################\n# Automatic DNS set-up for Letsencrypt                              #\n#####################################################################\n\n## Enable dns challenge (for wildcard domains)\n##   https://doc.traefik.io/traefik/https/acme/#dnschallenge\n#LETS_ENCRYPT_DNS_CHALLENGE_ENABLED=1\n#LETS_ENCRYPT_DNS_CHALLENGE_PROVIDER=ovh\n\n## OVH, https://ovh.com\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.ovh.yml\"\n#OVH_ENABLED=1\n#OVH_APPLICATION_KEY=\n#OVH_ENDPOINT=\n#SECRET_OVH_APP_SECRET_VERSION=v1\n#SECRET_OVH_CONSUMER_KEY=v1\n\n## Gandi, https://gandi.net\n## note(3wc): only \"V5\" (new) API is supported, so far\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.gandi.yml\"\n#GANDI_ENABLED=1\n#SECRET_GANDIV5_API_KEY_VERSION=v1\n\n#####################################################################\n# Keycloak log-in                                                   #\n#####################################################################\n\n## Enable Keycloak\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.keycloak.yml\"\n#KEYCLOAK_MIDDLEWARE_ENABLED=1\n#KEYCLOAK_TFA_SERVICE=traefik-forward-auth_app\n#KEYCLOAK_MIDDLEWARE_2_ENABLED=1\n#KEYCLOAK_TFA_SERVICE_2=traefik-forward-auth_app\n\n#####################################################################\n# Prometheus metrics                                                #\n#####################################################################\n\n## Enable prometheus metrics collection\n## used used by the coop-cloud monitoring stack\n#METRICS_ENABLED=1\n\n#####################################################################\n# Additional services                                               #\n#####################################################################\n\n## SMTP port 587\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.smtp.yml\"\n#SMTP_ENABLED=1\n\n## Compy\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.compy.yml\"\n#COMPY_ENABLED=1\n\n## Gitea SSH\n# COMPOSE_FILE=\"$COMPOSE_FILE:compose.gitea.yml\"\n# GITEA_SSH_ENABLED=1\n\n## Foodsoft SMTP\n# COMPOSE_FILE=\"$COMPOSE_FILE:compose.foodsoft.yml\"\n# FOODSOFT_SMTP_ENABLED=1\n\n## Peertube RTMP\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.peertube.yml\"\n#PEERTUBE_RTMP_ENABLED=1\n\n## Secure Scuttlebutt MUXRPC\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.ssb.yml\"\n#SSB_MUXRPC_ENABLED=1\n\n## MSSQL\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.mssql.yml\"\n#MSSQL_ENABLED=1\n\n## Mumble\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.mumble.yml\"\n#MUMBLE_ENABLED=1\n\n## Matrix\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.matrix.yml\"\n#MATRIX_FEDERATION_ENABLED=1\n" 

i also tried to upgrade the traefik recipe, abra recipe upgrade traefik, and it returns the same error.

deleting the folder and trying the latter command, abra recipe upgrade traefik, returns the same error again. anycase looking forward to the next stable release - mean time i'll see what else i can do / pivot to installing traefik and some other stuff manually and see how that goes.

thanks for the reply. hm, i didn't have the file you suggested, but i deleted the abra/apps/traefik folder again, and running abra app new traefik returned a different error: ``` FATA[0001] unexpected character "." in variable name near ".Domain }}\nLETS_ENCRYPT_ENV=production\n\nLETS_ENCRYPT_EMAIL=certs@example.com\n# DASHBOARD_ENABLED=true\n# WARN, INFO etc.\nLOG_LEVEL=WARN\n\n# This is here so later lines can extend it; you likely don't wanna edit\nCOMPOSE_FILE=\"compose.yml\"\n\n#####################################################################\n# General settings #\n#####################################################################\n\n## Host-mode networking\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.host.yml\"\n\n## \"Headless mode\" (no domain configured)\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.headless.yml\"\n\n#####################################################################\n# Automatic DNS set-up for Letsencrypt #\n#####################################################################\n\n## Enable dns challenge (for wildcard domains)\n## https://doc.traefik.io/traefik/https/acme/#dnschallenge\n#LETS_ENCRYPT_DNS_CHALLENGE_ENABLED=1\n#LETS_ENCRYPT_DNS_CHALLENGE_PROVIDER=ovh\n\n## OVH, https://ovh.com\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.ovh.yml\"\n#OVH_ENABLED=1\n#OVH_APPLICATION_KEY=\n#OVH_ENDPOINT=\n#SECRET_OVH_APP_SECRET_VERSION=v1\n#SECRET_OVH_CONSUMER_KEY=v1\n\n## Gandi, https://gandi.net\n## note(3wc): only \"V5\" (new) API is supported, so far\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.gandi.yml\"\n#GANDI_ENABLED=1\n#SECRET_GANDIV5_API_KEY_VERSION=v1\n\n#####################################################################\n# Keycloak log-in #\n#####################################################################\n\n## Enable Keycloak\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.keycloak.yml\"\n#KEYCLOAK_MIDDLEWARE_ENABLED=1\n#KEYCLOAK_TFA_SERVICE=traefik-forward-auth_app\n#KEYCLOAK_MIDDLEWARE_2_ENABLED=1\n#KEYCLOAK_TFA_SERVICE_2=traefik-forward-auth_app\n\n#####################################################################\n# Prometheus metrics #\n#####################################################################\n\n## Enable prometheus metrics collection\n## used used by the coop-cloud monitoring stack\n#METRICS_ENABLED=1\n\n#####################################################################\n# Additional services #\n#####################################################################\n\n## SMTP port 587\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.smtp.yml\"\n#SMTP_ENABLED=1\n\n## Compy\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.compy.yml\"\n#COMPY_ENABLED=1\n\n## Gitea SSH\n# COMPOSE_FILE=\"$COMPOSE_FILE:compose.gitea.yml\"\n# GITEA_SSH_ENABLED=1\n\n## Foodsoft SMTP\n# COMPOSE_FILE=\"$COMPOSE_FILE:compose.foodsoft.yml\"\n# FOODSOFT_SMTP_ENABLED=1\n\n## Peertube RTMP\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.peertube.yml\"\n#PEERTUBE_RTMP_ENABLED=1\n\n## Secure Scuttlebutt MUXRPC\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.ssb.yml\"\n#SSB_MUXRPC_ENABLED=1\n\n## MSSQL\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.mssql.yml\"\n#MSSQL_ENABLED=1\n\n## Mumble\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.mumble.yml\"\n#MUMBLE_ENABLED=1\n\n## Matrix\n#COMPOSE_FILE=\"$COMPOSE_FILE:compose.matrix.yml\"\n#MATRIX_FEDERATION_ENABLED=1\n" ``` i also tried to upgrade the traefik recipe, abra recipe upgrade traefik, and it returns the same error. deleting the folder and trying the latter command, abra recipe upgrade traefik, returns the same error again. anycase looking forward to the next stable release - mean time i'll see what else i can do / pivot to installing traefik and some other stuff manually and see how that goes.
Owner

Ahhhhh, I see. I'm afraid I upgraded the traefik recipe for the new unreleased version of abra but I didn't realise it would break older workflows... at this point I would say just try a abra upgrade --rc and see where it takes you. Also bailing out to traefik manually is also fine 🙈

Ahhhhh, I see. I'm afraid I upgraded the traefik recipe for the new unreleased version of `abra` but I didn't realise it would break older workflows... at this point I would say just try a `abra upgrade --rc` and see where it takes you. Also bailing out to traefik manually is also fine 🙈
Owner

The {{.Domain}} is the breakage btw, that is what the new abra templates out...

The `{{.Domain}}` is the breakage btw, that is what the new `abra` templates out...
Owner

OK, we finally got out the new stable, upgrade docs are here:

https://docs.coopcloud.tech/abra/upgrade/

Gonna close this off, please feel free to re-open if your issue persists!

Thanks!

OK, we finally got out the new stable, upgrade docs are here: > https://docs.coopcloud.tech/abra/upgrade/ Gonna close this off, please feel free to re-open if your issue persists! Thanks!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#310
No description provided.