Skip to content

Elytra fails to create 'pyrodactyl' user on first run #22

@azurejelly

Description

@azurejelly

When running Elytra v1.2.1 for the first time on a Debian 12 and Ubuntu 24.04.3 LTS install, I see:

 INFO: [Dec 15 01:51:30.579] writing log files to disk path=/var/log/elytra/elytra.log


 ██████████ ████              █████
░░███░░░░░█░░███             ░░███
 ░███  █ ░  ░███  █████ ████ ███████   ████████   ██████
 ░██████    ░███ ░░███ ░███ ░░░███░   ░░███░░███ ░░░░░███
 ░███░░█    ░███  ░███ ░███   ░███     ░███ ░░░   ███████
 ░███ ░   █ ░███  ░███ ░███   ░███ ███ ░███      ███░░███
 ██████████ █████ ░░███████   ░░█████  █████    ░░████████
░░░░░░░░░░ ░░░░░   ░░░░░███    ░░░░░  ░░░░░      ░░░░░░░░
                   ███ ░███
                  ░░██████
                   ░░░░░░


Copyright © 2018 - 2024 Dane Everitt & Contributors
Copyright © 2024 - %!d(string=v1.2.1) Pyro Inc. & Contributors

Website:  https://pyrodactyl.dev
 Source:  https://github.com/pyrohost/elytra
License:  https://github.com/pyrohost/elytra/blob/main/LICENSE

Portions of this software are made available under the terms of the MIT license.
New modifications and contributions by Pyro Inc. are licensed under the terms
of the GNU Affero General Public License (AGPL).

Both license notices shall be included in all copies or substantial portions
of the Software.%!s(int=2025)%!(EXTRA string=

)DEBUG: [Dec 15 01:51:30.580] running in debug mode    
 INFO: [Dec 15 01:51:30.580] loading configuration from file config_file=/etc/elytra/config.yml
 INFO: [Dec 15 01:51:30.580] configured elytra with system timezone timezone=Etc/UTC
DEBUG: [Dec 15 01:51:30.580] ensuring root data directory exists path=/var/lib/elytra
DEBUG: [Dec 15 01:51:30.581] ensuring server data directory exists path=/var/lib/elytra/volumes
DEBUG: [Dec 15 01:51:30.581] ensuring archive data directory exists path=/var/lib/elytra/archives
DEBUG: [Dec 15 01:51:30.581] ensuring backup data directory exists path=/var/lib/elytra/backups
 INFO: [Dec 15 01:51:30.581] checking for pterodactyl system user username=pyrodactyl
FATAL: [Dec 15 01:51:30.584] failed to create pyrodactyl system user error=exit status 4

Stacktrace:
exit status 4
github.com/pyrohost/elytra/src/cmd.rootCmdRun
        github.com/pyrohost/elytra/src/cmd/root.go:117
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.10.1/command.go:1019
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.10.1/command.go:1148
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.10.1/command.go:1071
github.com/pyrohost/elytra/src/cmd.Execute
        github.com/pyrohost/elytra/src/cmd/root.go:73
main.main
        github.com/pyrohost/elytra/src/cmd/elytra/main.go:23
runtime.main
        runtime/proc.go:283
runtime.goexit
        runtime/asm_amd64.s:1700

This issue is not present when running Pterodactyl Wings v1.11.13:

 INFO: [Dec 15 01:53:50.738] writing log files to disk path=/var/log/pterodactyl/wings.log

                     ____
__ Pterodactyl _____/___/_______ _______ ______
\_____\    \/\/    /   /       /  __   /   ___/
   \___\          /   /   /   /  /_/  /___   /
        \___/\___/___/___/___/___    /______/
                            /_______/ 1.11.13

Copyright © 2018 - 2025 Dane Everitt & Contributors

Website:  https://pterodactyl.io
 Source:  https://github.com/pterodactyl/wings
License:  https://github.com/pterodactyl/wings/blob/develop/LICENSE

This software is made available under the terms of the MIT license.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

 INFO: [Dec 15 01:53:50.739] loading configuration from file config_file=/etc/pterodactyl/config.yml
 INFO: [Dec 15 01:53:50.739] configured wings with system timezone timezone=Etc/UTC
 INFO: [Dec 15 01:53:50.739] checking for pterodactyl system user username=pterodactyl
 INFO: [Dec 15 01:53:50.757] configured system user successfully gid=993 uid=999 username=pterodactyl
 INFO: [Dec 15 01:53:50.758] no log rotation configuration found: adding file now
 INFO: [Dec 15 01:53:50.760] fetching list of servers from API
 INFO: [Dec 15 01:53:50.960] processing servers returned by the API total_configs=0
 INFO: [Dec 15 01:53:50.960] finished processing server configurations duration=118.564µs
 INFO: [Dec 15 01:53:50.962] creating missing pterodactyl0 interface, this could take a few seconds...
...

My configuration is as follows:

debug: false
uuid: some-uuid
token_id: some-token-id
token: some-token
api:
  host: 0.0.0.0
  port: 8443
  ssl:
    enabled: false
    cert: /etc/letsencrypt/live/node.some.domain/fullchain.pem
    key: /etc/letsencrypt/live/node.some.domain/privkey.pem
  upload_limit: 100
system:
  data: /var/lib/elytra/volumes
  sftp:
    bind_port: 2053
  backups:
    rustic:
      binary_path: rustic
      repository_version: 2
      tree_pack_size_mb: 4
      data_pack_size_mb: 32
      local: { enabled: true, repository_path: /var/lib/pterodactyl/rustic-repos, use_cold_storage: false, hot_repository_path: '' }
      s3: { enabled: false, endpoint: '', region: us-east-1, bucket: '', use_cold_storage: false, hot_bucket: '', cold_storage_class: GLACIER, force_path_style: false, disable_ssl: false, ca_cert_path: '' }
allowed_mounts: []
remote: 'https://panel.some.domain'
allowed_origins:
  - 'https://panel.some.domain'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions