Started by user Admin User Obtained Jenkinsfile from git https://github.com/DrPersico/authentik.git [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /var/jenkins_home/workspace/authentik-deploy [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential f048d47c-1ea1-4dc6-b81c-f1ec032f0d77 > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/authentik-deploy/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/DrPersico/authentik.git # timeout=10 Fetching upstream changes from https://github.com/DrPersico/authentik.git > git --version # timeout=10 > git --version # 'git version 2.47.3' using GIT_ASKPASS to set credentials Github > git fetch --tags --force --progress -- https://github.com/DrPersico/authentik.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision ac7451d034ce3c1bece3f0941ccdfe174b2c734c (refs/remotes/origin/main) > git config core.sparsecheckout # timeout=10 > git checkout -f ac7451d034ce3c1bece3f0941ccdfe174b2c734c # timeout=10 Commit message: "Connect to existing PostgreSQL 18 server" > git rev-list --no-walk d66589da524ab77c4787d043cbdf8f0f46ce4bdc # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 20 min [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] stage [Pipeline] { (Checkout) [Pipeline] script [Pipeline] { [Pipeline] cleanWs [2025-11-14T14:53:31.428Z] [WS-CLEANUP] Deleting project workspace... [2025-11-14T14:53:31.428Z] [WS-CLEANUP] Deferred wipeout is used... [2025-11-14T14:53:31.446Z] [WS-CLEANUP] done [Pipeline] checkout [2025-11-14T14:53:31.537Z] Selected Git installation does not exist. Using Default [2025-11-14T14:53:31.537Z] The recommended git tool is: NONE [2025-11-14T14:53:31.538Z] using credential f048d47c-1ea1-4dc6-b81c-f1ec032f0d77 [2025-11-14T14:53:31.549Z] Cloning the remote Git repository [2025-11-14T14:53:31.549Z] Cloning repository https://github.com/DrPersico/authentik.git [2025-11-14T14:53:31.550Z] > git init /var/jenkins_home/workspace/authentik-deploy # timeout=10 [2025-11-14T14:53:31.576Z] Fetching upstream changes from https://github.com/DrPersico/authentik.git [2025-11-14T14:53:31.576Z] > git --version # timeout=10 [2025-11-14T14:53:31.588Z] > git --version # 'git version 2.47.3' [2025-11-14T14:53:31.588Z] using GIT_ASKPASS to set credentials Github [2025-11-14T14:53:31.610Z] > git fetch --tags --force --progress -- https://github.com/DrPersico/authentik.git +refs/heads/*:refs/remotes/origin/* # timeout=10 [2025-11-14T14:53:32.673Z] > git config remote.origin.url https://github.com/DrPersico/authentik.git # timeout=10 [2025-11-14T14:53:32.684Z] > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 [2025-11-14T14:53:32.748Z] Avoid second fetch [2025-11-14T14:53:32.748Z] > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 [2025-11-14T14:53:32.760Z] Checking out Revision ac7451d034ce3c1bece3f0941ccdfe174b2c734c (refs/remotes/origin/main) [2025-11-14T14:53:32.760Z] > git config core.sparsecheckout # timeout=10 [2025-11-14T14:53:32.771Z] > git checkout -f ac7451d034ce3c1bece3f0941ccdfe174b2c734c # timeout=10 [2025-11-14T14:53:32.837Z] Commit message: "Connect to existing PostgreSQL 18 server" [Pipeline] echo [2025-11-14T14:53:33.036Z] βœ… Code checked out successfully [Pipeline] pwd [Pipeline] echo [2025-11-14T14:53:33.187Z] πŸ“‚ Working directory: /var/jenkins_home/workspace/authentik-deploy [Pipeline] echo [2025-11-14T14:53:33.290Z] 🌿 Git branch: null [Pipeline] echo [2025-11-14T14:53:33.356Z] 🏷️ Git commit: ac7451d0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Validate Configuration) [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-14T14:53:34.609Z] πŸ” Validating configuration files... [Pipeline] fileExists [Pipeline] echo [2025-11-14T14:53:34.809Z] βœ… Found: docker-compose.yml [Pipeline] fileExists [Pipeline] echo [2025-11-14T14:53:35.012Z] βœ… Found: .env.example [Pipeline] sh [2025-11-14T14:53:35.332Z] + echo 🐳 Validating Docker Compose files... [2025-11-14T14:53:35.332Z] 🐳 Validating Docker Compose files... [2025-11-14T14:53:35.332Z] + docker compose -f docker-compose.yml config --quiet [2025-11-14T14:53:35.332Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required [2025-11-14T14:53:35.332Z] + echo ❌ Docker Compose validation failed [2025-11-14T14:53:35.332Z] ❌ Docker Compose validation failed [2025-11-14T14:53:35.332Z] + exit 1 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (System Health Check) Stage "System Health Check" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Initialize Database) Stage "Initialize Database" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy Authentik) Stage "Deploy Authentik" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Verify Deployment) Stage "Verify Deployment" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Create Backup) Stage "Create Backup" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-14T14:53:38.070Z] πŸ“‹ Pipeline completed with status: FAILURE [Pipeline] echo [2025-11-14T14:53:38.121Z] [2025-11-14T14:53:38.121Z] 🎯 Authentik Deployment Pipeline [2025-11-14T14:53:38.121Z] πŸ“… Build: 2 [2025-11-14T14:53:38.121Z] 🌿 Branch: null [2025-11-14T14:53:38.121Z] 🏷️ Commit: ac7451d0 [2025-11-14T14:53:38.121Z] ⏱️ Duration: 13 sec and counting [2025-11-14T14:53:38.121Z] βœ… Status: FAILURE [2025-11-14T14:53:38.121Z] [Pipeline] sh [2025-11-14T14:53:38.412Z] + find jenkins_backups -name *.sql -type f [2025-11-14T14:53:38.413Z] + tail -n +6 [2025-11-14T14:53:38.413Z] + sort -r [2025-11-14T14:53:38.413Z] + xargs rm -f [2025-11-14T14:53:38.413Z] find: β€˜jenkins_backups’: No such file or directory [Pipeline] } [Pipeline] // script [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-14T14:53:38.727Z] ❌ Authentik deployment failed! [Pipeline] sh [2025-11-14T14:53:39.018Z] + echo 🐳 Container logs: [2025-11-14T14:53:39.018Z] 🐳 Container logs: [2025-11-14T14:53:39.018Z] + docker compose logs --tail=100 [2025-11-14T14:53:39.269Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required [2025-11-14T14:53:39.269Z] + echo Could not get container logs [2025-11-14T14:53:39.269Z] Could not get container logs [2025-11-14T14:53:39.269Z] + echo πŸ“‹ System status: [2025-11-14T14:53:39.269Z] πŸ“‹ System status: [2025-11-14T14:53:39.269Z] + docker compose ps [2025-11-14T14:53:39.520Z] time="2025-11-14T14:53:39Z" level=warning msg="The \"PG_PASS\" variable is not set. Defaulting to a blank string." [2025-11-14T14:53:39.520Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required [2025-11-14T14:53:39.520Z] + echo Could not get container status [2025-11-14T14:53:39.520Z] Could not get container status [Pipeline] } [Pipeline] // script [Pipeline] script [Pipeline] { [Pipeline] echo [2025-11-14T14:53:39.868Z] 🧹 Cleaning up workspace... [Pipeline] sh [2025-11-14T14:53:40.158Z] + rm -f *.tmp [Pipeline] echo [2025-11-14T14:53:40.228Z] βœ… Keeping containers running for production (main branch) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timestamps [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: script returned exit code 1 Finished: FAILURE