Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Upgrading from version semaphore:v2.12.11-ansible2.16.5 to semaphore:v2.12.12-ansible2.16.5 is panic #2750

Open
jonn-yan opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels
Milestone

Comments

@jonn-yan
Copy link

Issue

Upgrading from version semaphore:v2.12.11-ansible2.16.5 to semaphore:v2.12.12-ansible2.16.5 is panic

OS:
AME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"

KERNEL:
6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

POD ENV:
containers:
- env:
- name: SEMAPHORE_DB_DIALECT
value: "bolt"
- name: SEMAPHORE_ADMIN
value: "admin"
- name: SEMAPHORE_ADMIN_PASSWORD
value: "admin"
- name: SEMAPHORE_ADMIN_NAME
value: Admin
- name: SEMAPHORE_ADMIN_EMAIL
value: admin@localhost
image: semaphoreui/semaphore:v2.12.12-ansible2.16.5

ERROR:
Generating setup file ...
Executing semaphore setup

Hello! You will now be guided through a setup to:

  1. Set up configuration for a MySQL/MariaDB database
  2. Set up a path for your playbooks (auto-created)
  3. Run database Migrations
  4. Set up initial semaphore user & password

What database to use:
1 - MySQL
2 - BoltDB
3 - PostgreSQL
(default 1):
db filename (default /home/semaphore/database.boltdb):
Playbook path (default /tmp/semaphore):
Public URL (optional, example: https://example.com/semaphore):
Enable email alerts? (yes/no) (default no):
Enable telegram alerts? (yes/no) (default no):
Enable slack alerts? (yes/no) (default no):
Enable Rocket.Chat alerts? (yes/no) (default no):
Enable Microsoft Team Channel alerts? (yes/no) (default no):
Enable LDAP authentication? (yes/no) (default no):
Config output directory (default /home/semaphore):
Running: mkdir -p /etc/semaphore..
Configuration written to /etc/semaphore/config.json..
Loading config
Validating config
Pinging db..
panic: timeout
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1b8 pc=0xaa2f07]

goroutine 1 [running]:
go.etcd.io/bbolt.(*DB).Close(0x0)
/go/src/semaphore/vendor/go.etcd.io/bbolt/db.go:647 +0x47
github.com/semaphoreui/semaphore/db/bolt.(*BoltDb).Close(0xc0001af808, {0xcdbc83, 0x5})
/go/src/semaphore/db/bolt/BoltDb.go:181 +0x4d
panic({0xbee560?, 0x1fe17d0?})
/usr/local/go/src/runtime/panic.go:770 +0x132
github.com/semaphoreui/semaphore/db/bolt.(*BoltDb).openDbFile(0xc0001af808)
/go/src/semaphore/db/bolt/BoltDb.go:119 +0x1ab
github.com/semaphoreui/semaphore/db/bolt.(*BoltDb).Connect(0xc0001af808, {0xcdbc83, 0x5})
/go/src/semaphore/db/bolt/BoltDb.go:148 +0x33
github.com/semaphoreui/semaphore/cli/cmd.doSetup()
/go/src/semaphore/cli/cmd/setup.go:43 +0x16f
github.com/semaphoreui/semaphore/cli/cmd.init.func10(0xc000181300?, {0xcdb7cb?, 0x4?, 0xcdb7cf?})
/go/src/semaphore/cli/cmd/setup.go:24 +0xf
github.com/spf13/cobra.(*Command).execute(0x1ff84a0, {0xc000043700, 0x1, 0x1})
/go/src/semaphore/vendor/github.com/spf13/cobra/command.go:989 +0xab1
github.com/spf13/cobra.(*Command).ExecuteC(0x1ff7080)
/go/src/semaphore/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
/go/src/semaphore/vendor/github.com/spf13/cobra/command.go:1041
github.com/semaphoreui/semaphore/cli/cmd.Execute()
/go/src/semaphore/cli/cmd/root.go:57 +0xc5
main.main()
/go/src/semaphore/cli/main.go:8 +0xf

Impact

Service (scheduled tasks, alerts), Other

Installation method

Docker

Database

BoltDB

Browser

No response

Semaphore Version

semaphore:v2.12.11-ansible2.16.5 to semaphore:v2.12.12-ansible2.16.5

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

@fiftin fiftin self-assigned this Feb 23, 2025
@fiftin fiftin added this to Bugfixing Feb 23, 2025
@fiftin fiftin added this to the 2.12 milestone Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants