-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Email cannot locate icon_left_brand.png #12969
Comments
@gerberbrett Proxmox LXC is not a supported installation method. This issue has not yet been reported on K8s or docker installations which leads me to believe this issue is related to your setup You could try finding the correct file and moving it to the expected file path or you could attempt to create a new brand/flow/stage with updated paths. I haven't really looked into what that guide says |
I'm running into the same error message. The curious point here is that 3 days ago, I installed Authentik in Proxmox, did the email setup and it worked perfectly. Then I had to reinstall it today, exactly the same setup, and I got the error message this time. The file exists in the folder mentioned in the log. It's just on the absolute path Relative to the utils.py script, it would be located at Do you think it has anything to do with it? I don't see any relevant releases between then and now that could have changed anything unless some dependency changed. |
Update:
Adding a Something on the What I did was change the It is not a great solution but a quick fix for it to work right away 🤷♂ |
@joaorgoncalves Thanks, that worked! |
Describe the bug
When sending emails either using email stage or the "ak test_email" function in the shell a System task exception is logged with the following error:
builtins.FileNotFoundError: [Errno 2] No such file or directory: 'web/dist/assets/icons/icon_left_brand.png'
To Reproduce
File "/usr/local/lib/python3.12/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/celery/app/trace.py", line 736, in protected_call
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/celery/app/autoretry.py", line 60, in run
ret = task.retry(exc=exc, **retry_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/celery/app/task.py", line 736, in retry
raise_with_context(exc)
File "/usr/local/lib/python3.12/site-packages/celery/app/autoretry.py", line 38, in run
return task._orig_run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/authentik/stages/email/tasks.py", line 105, in send_mail
raise exc
File "/usr/local/lib/python3.12/site-packages/authentik/stages/email/tasks.py", line 86, in send_mail
message_object.attach(logo_data())
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/authentik/stages/email/utils.py", line 20, in logo_data
path = Path("/opt/authentik/web/dist/assets/icons/icon_left_brand.png")
builtins.FileNotFoundError: [Errno 2] No such file or directory: 'web/dist/assets/icons/icon_left_brand.png'
Expected behavior
Expect and email to be sent without exceptions.
Screenshots
Logs
This is a "bare metal" installation on a Proxmox LXC container so no "Docker" or "Kubernetes" logs are avaialble.
Version and Deployment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: