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

Bug in Debian Bookworm package : Service not starting and user not created #21

Open
wouldsmina opened this issue Jun 15, 2023 · 2 comments
Assignees
Labels

Comments

@wouldsmina
Copy link

Hello
I am experiencing an issue with the policyd-rate-limit package installation in Debian 12. During installation, the service fails to start, and the policyd-rate-limit user is not being created. Upon analyzing the code in the package and comparing it to the code in the repository , I have noticed that the bug is fixed in the repository but not in the Debian repository.

I'm uncertain whether the failure to create the user is related to the bug that prevents the service from starting or if it is a separate issue.

Environment :

  • Package Debian version: 1.0.1.1-2.1
  • OS : Debian 12 (Bookworm)

Steps to Reproduce :

  • Install the policyd-rate-limit package

Expected Behavior :

  • The policyd-rate-limit service should start successfully.

Observed Behavior :

  • The policyd-rate-limit service fails to start during installation.
  • The policyd-rate-limit user is not created.

Error messages :

Traceback (most recent call last):
  File "/usr/bin/policyd-rate-limit", line 36, in <module>
    config.setup()
  File "/usr/lib/python3/dist-packages/policyd_rate_limit/utils.py", line 144, in setup
    self._config = Config(config_file)
                   ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/policyd_rate_limit/utils.py", line 88, in __init__
    self._config = yaml.load(f)
                   ^^^^^^^^^^^^
TypeError: load() missing 1 required positional argument: 'Loader'

Resolution :

  • patch utils.py
  • useradd policyd-rate-limit
@P-EB
Copy link
Collaborator

P-EB commented Jul 18, 2023

It would probably be worthwile to report the bug within Debian, if it is Debian-specific.

As I'm both a maintainer there and in Debian, I'll look to have it fixed in bookworm.

@nitmir : care to make a release?

@nitmir
Copy link
Owner

nitmir commented Jul 26, 2023

@P-EB done !

@nitmir nitmir added the bug label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants