NOTE: Links contain a space after the top level domain name. The system won't allow me to post links.
I reinstalled my entire setup on my Synology Media Setup using the Trash Guide. I am running version 3.7.2 and my entire setup in Docker containers. I am trying to set up a custom email script for SABnzbd. I took the Standard Template script I found online here: https://sabnzbd.org/wiki/extra/email-templates
I created a script directory and dropped the file in there. Here is the file I pasted: https://0bin.net/paste/X5QUHeo4#qf9Rrrm ... Y54l8mTQHW
I made a simple modification by changing a word in the text so I'll know if the new script was used. Then I went to the Notifications Tab and ticked Enable Notification Script and chose the new script from the dropdown list and saved. The new notification is not working.
If I click the Test Notification button, I get this error "Notification script returned exit code -1 and output "None""
The log file shows this: https://0bin.net/paste/2NFLDfcw#CEuJDdq ... kxe728yZaK
Note, this template file is unchanged...I decided to leave as is but I still get the same error. I also made sure that the file is using Unix Linefeed...I created in Notepad ++.
I also tried setting the execute permissions but I could no longer see the template file in the drop down list. I also tried making sure the owner was correct. Nothing works.
Trying to modify email template
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Trying to modify email template
Last edited by rb9999 on March 4th, 2023, 8:24 am, edited 1 time in total.
Re: Trying to modify email template
Code: Select all
2023-03-03 19:19:47,556::INFO::[misc:1166] [N/A] Running external command: ['/config/scripts/RBemail-us-en.tmpl', 'other', 'SABnzbd: Other Messages', 'Test Notification']
...
OSError: [Errno 8] Exec format error: '/config/scripts/RBemail-us-en.tmpl'
Re: Trying to modify email template
This is what I get when I click the test button. SABnzbd is trying to execute it, so it seems.
Re: Trying to modify email template
No, you configured the path to the template also for Notification Script. That's not what you are supposed to do.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Trying to modify email template
Ahh, I see now. I set the folder under Scripts folder and not Email Templates folder. When I change it, it works.