Comments (8)
Hmm, this is strange APPRISE_ATTACH_SIZE
should be set to 200MB (see here, but you're saying in your instance it is not. Are you hosting Apprise behind your own version of Nginx? You may need to fix the issue here?
Let me know how that works out, otherwise i can investigate deeper into my the source code.
from apprise-api.
No, there are no nginx installed on this machine or any other docker container. I am not using a reverse proxy on my own.
I just specified APPRISE_ATTACH_SIZE to be equal to 200 in environment variables specifically, but the result did not change.
from apprise-api.
I changed the docker command to run it as PUID=0 and PGID=0, but the error still did not go away.
from apprise-api.
Try out the :edge
docker branch; default is 200MB and bug you identified was fixed.
BTW, thank you for reporting this! 🚀 .
from apprise-api.
Do you mean lscr.io/linuxserver/apprise-api:edge or caronc/apprise:edge ?
from apprise-api.
caronc/apprise:edge
from apprise-api.
Hi Caron,
I've switched to edge build and now I get the following error when I try to send a pdf file 17MB big. Is this an apprise problem or a mail server problem? There are still no errors if I choose a file size less than 10MB. Only when > 10MB or so.
(private data redacted)
2024/03/14 10:08:13 [warn] 9#9: 74 a client request body is buffered to a temporary file /var/lib/nginx/body/0000000002, client: 192.168.2.7, server: , request: "POST /notify/xxxxxxx HTTP/1.1", host: "192.168.2.73:8001"
2024-03-14 02:08:13,977 [DEBUG] apprise: Language set to en
2024-03-14 02:08:13,977 [DEBUG] apprise: Loading raw configuration: mailtos://xxxxxxx.com?smtp=smtp.xxxxxxx.com&user=[email protected]&pass=zzzzzzzz
2024-03-14 02:08:13,978 [DEBUG] apprise: Loaded URL: mailtos://yyyyy:***@xxxxxxx.com/?format=html&overflow=upstream&rto=4.0&cto=15&verify=yes&smtp=smtp.xxxxxxx.com&mode=starttls
2024-03-14 02:08:13,978 [INFO] apprise: Loaded 1 entries from memory://
2024-03-14 02:08:13,978 [DEBUG] apprise: Email From: Apprise [email protected]
2024-03-14 02:08:13,978 [DEBUG] apprise: Email To: [email protected]
2024-03-14 02:08:13,978 [DEBUG] apprise: Login ID: [email protected]
2024-03-14 02:08:13,978 [DEBUG] apprise: Delivery: smtp.xxxxxxx.com:587
2024-03-14 02:08:13,979 [DEBUG] apprise: Preparing Email attachment file:///attach/tmpemge6hoq?name=1.pdf
2024-03-14 02:08:17,595 [DEBUG] apprise: Connecting to remote SMTP server...
2024-03-14 02:08:17,986 [DEBUG] apprise: Securing connection with STARTTLS...
2024-03-14 02:08:18,765 [DEBUG] apprise: Applying user credentials...
2024-03-14 02:08:35,772 [WARNING] apprise: Sending email to "[email protected]" failed. Reason: Server not connected
2024-03-14 02:08:35,782 [ERROR] apprise: Unhandled Notification Exception
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/apprise/Apprise.py", line 582, in _notify_sequential
result = server.notify(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/apprise/plugins/NotifyBase.py", line 382, in notify
the_calls = [self.send(**kwargs2) for kwargs2 in send_calls]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/apprise/plugins/NotifyBase.py", line 382, in
the_calls = [self.send(**kwargs2) for kwargs2 in send_calls]
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/apprise/plugins/NotifyEmail.py", line 847, in send
return self.submit(messages)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/apprise/plugins/NotifyEmail.py", line 913, in submit
socket.quit()
File "/usr/local/lib/python3.11/smtplib.py", line 1004, in quit
res = self.docmd("quit")
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/smtplib.py", line 431, in docmd
self.putcmd(cmd, args)
File "/usr/local/lib/python3.11/smtplib.py", line 378, in putcmd
self.send(f'{s}{CRLF}')
File "/usr/local/lib/python3.11/smtplib.py", line 365, in send
raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first
2024-03-14 02:08:35,802 [WARNING] django: NOTIFY - 127.0.0.1 - One or more notifications not sent using KEY: xxxxxxx
2024-03-14 02:08:35,811 [WARNING] django.request: Failed Dependency: /notify/xxxxxxx
192.168.2.7 - - [14/Mar/2024:10:08:35 +0300] "POST /notify/xxxxxxx HTTP/1.1" 424 2518 "-" "curl/8.1.2"
2024/03/14 10:08:35 [info] 9#9: *74 client 192.168.2.7 closed keepalive connection
from apprise-api.
Looks like the SMTP server disconnected on you during the file transfer. But it died closing off the connection (something it does when it's finished and wrapping up). Does the attachment still send?
It does appear to be the server side at this point. The connection to Apprise will disconnect after 30s, it could be this too. You can increase the timeout with another environment variable to rule this out
from apprise-api.
Related Issues (20)
- Does the api support ntfy file attachments? HOT 10
- django.request: Failed Dependency Explanation HOT 4
- Signal using curl: django.request: Failed Dependency: /notify/apprise HOT 6
- Errors in the CURL examples in configuration overview HOT 2
- Telegram: Is there a way for it to ignore all tags? HOT 13
- Webinterface Notification panel report "Bad Attachment" when none as been chosed HOT 5
- Bad Request: /notify/apprise in Docker HOT 2
- A typo in apprise-api website HOT 4
- Refactor General Display of Loaded URLs HOT 11
- Can I customize or map [title] and [body] these two request parameters? HOT 8
- How do I mount configuration for topics properly in persistent way, so it just works? HOT 3
- Default config ID length too long HOT 2
- [Error] Bad Request: can't parse entities HOT 3
- Trying to set up API in Photon HOT 8
- Client closed connection while waiting for request HOT 1
- Stateful Configuration File Usage HOT 12
- Fix the init and set sane logical defaults HOT 12
- List of available/stored configurations HOT 1
- Allow requests with body not required for OneSignal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apprise-api.