Skip to content

[BUG] meza deploy on minimal server fails #74

Description

@hexmode
[mah@alt ~]$ sudo meza deploy monolith
Create deploy lock file at /opt/data-meza/env-monolith-deploy.lock
Neither apache nor www-data group exists. Using "wheel" as fallback.
Traceback (most recent call last):
  File "/bin/meza", line 371, in request_lock_for_deploy
    grp.getgrnam('apache')
KeyError: "getgrnam(): name not found: 'apache'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/meza", line 376, in request_lock_for_deploy
    grp.getgrnam('www-data')  # Debian/Ubuntu fallback
KeyError: "getgrnam(): name not found: 'www-data'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/meza", line 1935, in <module>
    main(sys.argv[1:])
  File "/bin/meza", line 140, in main
    globals()[command_fn](argv[1:])
  File "/bin/meza", line 161, in meza_command_deploy
    lock_success = request_lock_for_deploy(env)
  File "/bin/meza", line 381, in request_lock_for_deploy
    meza_chown(lock_file, 'meza-ansible', 'wheel')
  File "/bin/meza", line 1743, in meza_chown
    uid = pwd.getpwnam(username).pw_uid
KeyError: "getpwnam(): name not found: 'meza-ansible'"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions