Cannot update Authentik #599

Closed
opened 2026-02-04 20:16:21 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @MarcPot on GitHub (Mar 6, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Authentik

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/authentik.sh)"

📝 Provide a clear and concise description of the issue.

Using the updater script I first get a command unknown on go.
after installing golang I get an:

⠋ Building Authentik servergo: errors parsing go.mod:
/opt/authentik/go.mod:5: unknown directive: toolchain
⠙ Building Authentik server
[ERROR] in line 52: exit code 0: while executing command go mod download

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

use install script inside lxc

Paste the full error output (if available).

    ___         __  __               __  _ __  
   /   | __  __/ /_/ /_  ___  ____  / /_(_) /__
  / /| |/ / / / __/ __ \/ _ \/ __ \/ __/ / //_/
 / ___ / /_/ / /_/ / / /  __/ / / / /_/ / ,<   
/_/  |_\__,_/\__/_/ /_/\___/_/ /_/\__/_/_/|_|  
                                               

  ✔️  Stopped Authentik

up to date, audited 1780 packages in 3s

480 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
⠼ Building Authentik website
> @goauthentik/website-docs@0.0.0 build-bundled
> cp ../schema.yml static/schema.yaml && docusaurus gen-api-docs all && cross-env NODE_OPTIONS='--max_old_space_size=65536' docusaurus build

⠼ Building Authentik website[INFO] [en] Creating an optimized production build...
⠹ Building Authentik website[WARNING] Duplicate routes found!
- Attempting to create page at /docs/users-sources/sources/social-logins/google/, but a page already exists at this route.
- Attempting to create page at /integrations/services/cloudflare-access/, but a page already exists at this route.
- Attempting to create page at /integrations/services/engomo/, but a page already exists at this route.
This could lead to non-deterministic routing behavior.

✔ Client
  Compiled successfully in 18.65s

✔ Server
  


● Client █████████████████████████ cache (99%) shutdown IdleFileCachePlugin
 stored

✔ Server
  

⠦ Building Authentik website[SUCCESS] Generated static files in "build".
[INFO] Use `npm run serve` command to test your build locally.

> @goauthentik/web@0.0.0 postinstall
> bash scripts/patch-spotlight.sh

spotlight overlay.js patch already applied

up to date, audited 1729 packages in 4s

340 packages are looking for funding
  run `npm fund` for details

22 vulnerabilities (1 low, 14 moderate, 7 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
⠋ Building Authentik website
> @goauthentik/web@0.0.0 build
> wireit

fatal: not a git repository (or any of the parent directories): .git
⠴ Building Authentik website[2025-03-06T09:53:07.507Z] Starting build for target admin/AdminInterface/AdminInterface.ts
[2025-03-06T09:53:07.515Z] Starting build for target user/UserInterface.ts
[2025-03-06T09:53:07.515Z] Starting build for target flow/FlowInterface.ts
[2025-03-06T09:53:07.515Z] Starting build for target standalone/api-browser/index.ts
[2025-03-06T09:53:07.516Z] Starting build for target rac/index.ts
[2025-03-06T09:53:07.516Z] Starting build for target standalone/loading/index.ts
[2025-03-06T09:53:07.516Z] Starting build for target polyfill/poly.ts
⠏ Building Authentik website[2025-03-06T09:53:08.932Z] Finished build for target polyfill/poly.ts in 1416ms
⠧ Building Authentik website[2025-03-06T09:53:09.778Z] Finished build for target standalone/loading/index.ts in 2262ms
⠇ Building Authentik website[2025-03-06T09:53:09.831Z] Finished build for target standalone/api-browser/index.ts in 2316ms
⠋ Building Authentik website[2025-03-06T09:53:10.001Z] Finished build for target flow/FlowInterface.ts in 2486ms
[2025-03-06T09:53:10.040Z] Finished build for target user/UserInterface.ts in 2525ms
⠙ Building Authentik website[2025-03-06T09:53:10.101Z] Finished build for target rac/index.ts in 2585ms
⠼ Building Authentik website[2025-03-06T09:53:10.401Z] Finished build for target admin/AdminInterface/AdminInterface.ts in 2893ms
⠴ Building Authentik website✅ Ran 2 scripts and skipped 2 in 3.5s.
  ✔️  Built Authentik website
⠋ Building Authentik servergo: errors parsing go.mod:
/opt/authentik/go.mod:5: unknown directive: toolchain
⠙ Building Authentik server
[ERROR] in line 52: exit code 0: while executing command go mod download

🖼️ Additional context (optional).

No response

Originally created by @MarcPot on GitHub (Mar 6, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Authentik ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/authentik.sh)" ### 📝 Provide a clear and concise description of the issue. Using the updater script I first get a command unknown on go. after installing golang I get an: ``` ⠋ Building Authentik servergo: errors parsing go.mod: /opt/authentik/go.mod:5: unknown directive: toolchain ⠙ Building Authentik server [ERROR] in line 52: exit code 0: while executing command go mod download ``` ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. use install script inside lxc ### ❌ Paste the full error output (if available). ``` ___ __ __ __ _ __ / | __ __/ /_/ /_ ___ ____ / /_(_) /__ / /| |/ / / / __/ __ \/ _ \/ __ \/ __/ / //_/ / ___ / /_/ / /_/ / / / __/ / / / /_/ / ,< /_/ |_\__,_/\__/_/ /_/\___/_/ /_/\__/_/_/|_| ✔️ Stopped Authentik up to date, audited 1780 packages in 3s 480 packages are looking for funding run `npm fund` for details found 0 vulnerabilities ⠼ Building Authentik website > @goauthentik/website-docs@0.0.0 build-bundled > cp ../schema.yml static/schema.yaml && docusaurus gen-api-docs all && cross-env NODE_OPTIONS='--max_old_space_size=65536' docusaurus build ⠼ Building Authentik website[INFO] [en] Creating an optimized production build... ⠹ Building Authentik website[WARNING] Duplicate routes found! - Attempting to create page at /docs/users-sources/sources/social-logins/google/, but a page already exists at this route. - Attempting to create page at /integrations/services/cloudflare-access/, but a page already exists at this route. - Attempting to create page at /integrations/services/engomo/, but a page already exists at this route. This could lead to non-deterministic routing behavior. ✔ Client Compiled successfully in 18.65s ✔ Server ● Client █████████████████████████ cache (99%) shutdown IdleFileCachePlugin stored ✔ Server ⠦ Building Authentik website[SUCCESS] Generated static files in "build". [INFO] Use `npm run serve` command to test your build locally. > @goauthentik/web@0.0.0 postinstall > bash scripts/patch-spotlight.sh spotlight overlay.js patch already applied up to date, audited 1729 packages in 4s 340 packages are looking for funding run `npm fund` for details 22 vulnerabilities (1 low, 14 moderate, 7 high) To address issues that do not require attention, run: npm audit fix To address all issues possible (including breaking changes), run: npm audit fix --force Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. ⠋ Building Authentik website > @goauthentik/web@0.0.0 build > wireit fatal: not a git repository (or any of the parent directories): .git ⠴ Building Authentik website[2025-03-06T09:53:07.507Z] Starting build for target admin/AdminInterface/AdminInterface.ts [2025-03-06T09:53:07.515Z] Starting build for target user/UserInterface.ts [2025-03-06T09:53:07.515Z] Starting build for target flow/FlowInterface.ts [2025-03-06T09:53:07.515Z] Starting build for target standalone/api-browser/index.ts [2025-03-06T09:53:07.516Z] Starting build for target rac/index.ts [2025-03-06T09:53:07.516Z] Starting build for target standalone/loading/index.ts [2025-03-06T09:53:07.516Z] Starting build for target polyfill/poly.ts ⠏ Building Authentik website[2025-03-06T09:53:08.932Z] Finished build for target polyfill/poly.ts in 1416ms ⠧ Building Authentik website[2025-03-06T09:53:09.778Z] Finished build for target standalone/loading/index.ts in 2262ms ⠇ Building Authentik website[2025-03-06T09:53:09.831Z] Finished build for target standalone/api-browser/index.ts in 2316ms ⠋ Building Authentik website[2025-03-06T09:53:10.001Z] Finished build for target flow/FlowInterface.ts in 2486ms [2025-03-06T09:53:10.040Z] Finished build for target user/UserInterface.ts in 2525ms ⠙ Building Authentik website[2025-03-06T09:53:10.101Z] Finished build for target rac/index.ts in 2585ms ⠼ Building Authentik website[2025-03-06T09:53:10.401Z] Finished build for target admin/AdminInterface/AdminInterface.ts in 2893ms ⠴ Building Authentik website✅ Ran 2 scripts and skipped 2 in 3.5s. ✔️ Built Authentik website ⠋ Building Authentik servergo: errors parsing go.mod: /opt/authentik/go.mod:5: unknown directive: toolchain ⠙ Building Authentik server [ERROR] in line 52: exit code 0: while executing command go mod download ``` ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 20:16:21 +03:00
Author
Owner

@MickLesk commented on GitHub (Mar 7, 2025):

ive build it on 2 nodes, cant reproduce this - Whats your Old version before?

Image Image
@MickLesk commented on GitHub (Mar 7, 2025): ive build it on 2 nodes, cant reproduce this - Whats your Old version before? <img width="380" alt="Image" src="https://github.com/user-attachments/assets/747d8221-bc15-4844-86a0-401eb37fbb2b" /> <img width="1057" alt="Image" src="https://github.com/user-attachments/assets/aa240fcd-83ad-423a-b709-8cce772295ef" />
Author
Owner

@MarcPot commented on GitHub (Mar 7, 2025):

Coming from:

2024.12.3

Installed by script.

Haven't touched the lxc itself afterwards.

@MarcPot commented on GitHub (Mar 7, 2025): Coming from: [2024.12.3](https://goauthentik.io/docs/releases/2024.12) Installed by script. Haven't touched the lxc itself afterwards.
Author
Owner

@MickLesk commented on GitHub (Mar 7, 2025):

Maybe you try an Manual Update of Rust?

@MickLesk commented on GitHub (Mar 7, 2025): Maybe you try an Manual Update of Rust?
Author
Owner

@MarcPot commented on GitHub (Mar 7, 2025):

There seemed to be something wrong with the PATH (/usr/local/bin instead of /usr/bin), and installing golang from apt didn't work since it's an old version.

Retried with the path set correctly fixed it.

Thanks for the help and sorry for the trouble.

@MarcPot commented on GitHub (Mar 7, 2025): There seemed to be something wrong with the PATH (/usr/local/bin instead of /usr/bin), and installing golang from apt didn't work since it's an old version. Retried with the path set correctly fixed it. Thanks for the help and sorry for the trouble.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#599