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

Snap cannot access configuration file #106

Open
sparrow2009 opened this issue Aug 13, 2024 · 1 comment
Open

Snap cannot access configuration file #106

sparrow2009 opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sparrow2009
Copy link

First of all I want to say thank you for this valuable tool.

But: Using the snap fails for me due to missing file access permissions (no configured plug for the required configuration file):

postfix-mta-sts-resolver.daemon
2024-08-13 15:58:51 INFO     MAIN: MTA-STS daemon starting...
Traceback (most recent call last):
  File "/snap/postfix-mta-sts-resolver/420/bin/mta-sts-daemon", line 33, in <module>
    sys.exit(load_entry_point('postfix-mta-sts-resolver==1.4.0', 'console_scripts', 'mta-sts-daemon')())
  File "/snap/postfix-mta-sts-resolver/420/lib/python3.6/site-packages/postfix_mta_sts_resolver/daemon.py", line 134, in main
    cfg = utils.load_config(args.config)
  File "/snap/postfix-mta-sts-resolver/420/lib/python3.6/site-packages/postfix_mta_sts_resolver/utils.py", line 136, in load_config
    with open(filename, 'rb') as cfg_file:
PermissionError: [Errno 13] Permission denied: '/etc/mta-sts-daem
on.yml'

As an aside: Wouldn't it be a natural fit deploying the daemon as a snap service?

@sparrow2009 sparrow2009 added the bug Something isn't working label Aug 13, 2024
@Snawoot
Copy link
Owner

Snawoot commented Aug 16, 2024

The snap is poorly made and could use some rewrite. It would be nice if someone can do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants