Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

Sending emails (password reset, notifications) in Nextcloud stopped working

Scheduled Pinned Locked Moved Solved Nextcloud
emailnextcloudcredentials
10 Posts 4 Posters 440 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    wrote on last edited by ei8fdb
    #1

    Hi all,

    I'm scratching my head as I don't know what's gone wrong. This started occuring just now.

    TL;DR: whats the password that is configured for Nextcloud to send emails?

    I'm posting this in Nextcloud app as it's shown up here. Maybe it's Cloudron app related? I'm unsure.

    The issue is the email credentials to send email via the Cloudron email server are no longer valid.

    When I check in the config.php (/app/data/config) of the Nextcloud container I see what I presume is a hashed password, so that's obviously no use to me!

    The email server setup part of Nextcloud settings (domain/settings/admin) shows this error:

    A problem occurred while sending the email. Please revise your settings. (Error: Failed to authenticate on SMTP server with username "nextcloud@cloudron-domain.tld" using 1 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.8 Authentication failed ".)

    Can be seen here:
    Screenshot 2022-03-10 at 13.28.22.png

    My issue is I don't know what they were, or should be, as it's always just worked.

    Any suggestions or advice is welcome! Thanks.

    ei8fdbE 1 Reply Last reply
    0
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    replied to nebulon on last edited by
    #0

    @nebulon said in Sending emails (password reset, notifications) in Nextcloud stopped working:

    @ei8fdb first of all regarding the email, those credentials for transactional emails are injected as env variables during app startup. So them being overwritten on app restart is intended.

    OK, that explains it. I thought it was somehow managed by Cloudron but didn't know how.

    For the cron, can you open a terminal into the app and run the scheduler manually? /app/pkg/cron.sh

    Yep, it seems as I can.

    root@container-id:/# /app/pkg/cron.sh
    => Run cron job
    root@container-id:/#
    
    ei8fdbE 1 Reply Last reply
    0
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    replied to ei8fdb on last edited by
    #2

    OK after a reboot the email settings have reverted (at least the indication of the length of the password is reset to what it was before).

    But (there's always a but in these things, right?), now I have this:

    Background jobs Last job execution ran 14 minutes ago. Something seems wrong.

    7403acdb-de5f-4404-8917-328a35e6b1fd-image.png

    I'm digging around the logs but not found anything yet.

    nebulonN ei8fdbE jdaviescoatesJ 3 Replies Last reply
    0
  • nebulonN Online
    nebulonN Online
    nebulon Staff
    replied to ei8fdb on last edited by
    #3

    @ei8fdb first of all regarding the email, those credentials for transactional emails are injected as env variables during app startup. So them being overwritten on app restart is intended.

    For the cron, can you open a terminal into the app and run the scheduler manually? /app/pkg/cron.sh

    ei8fdbE 1 Reply Last reply
    1
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    replied to ei8fdb on last edited by
    #4

    I'm trying to implement the crontab as documented in Nextcloud documentation but each time I edit the www-data user crontab (crontab -u www-data -e) to add the line:

    */5 * * * * php -f /app/code/cron.php

    and then query it (crontab -u www-data -l), it returns:

    root@container-id:/# crontab -u www-data -l no crontab for www-data

    so I am stuck again...?

    Should I not be able to edit the www-data user crontab?

    1 Reply Last reply
    0
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    replied to nebulon on last edited by
    #5

    @nebulon said in Sending emails (password reset, notifications) in Nextcloud stopped working:

    @ei8fdb first of all regarding the email, those credentials for transactional emails are injected as env variables during app startup. So them being overwritten on app restart is intended.

    OK, that explains it. I thought it was somehow managed by Cloudron but didn't know how.

    For the cron, can you open a terminal into the app and run the scheduler manually? /app/pkg/cron.sh

    Yep, it seems as I can.

    root@container-id:/# /app/pkg/cron.sh
    => Run cron job
    root@container-id:/#
    
    ei8fdbE 1 Reply Last reply
    0
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    replied to ei8fdb on last edited by ei8fdb
    #6

    This is looking like some temporary issue which was fixed by the Cloudron (not server) reboot.

    @nebulon can you tell me how often that cron gets run (by default)?

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to ei8fdb on last edited by
    #7

    @ei8fdb Every 5 minutes - https://git.cloudron.io/cloudron/nextcloud-app/-/blob/master/CloudronManifest.json#L31

    ei8fdbE 1 Reply Last reply
    0
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    replied to girish on last edited by
    #8

    OK thanks @girish.

    1 Reply Last reply
    0
  • jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    replied to ei8fdb on last edited by
    #9

    @ei8fdb said in Sending emails (password reset, notifications) in Nextcloud stopped working:

    OK after a reboot the email settings have reverted (at least the indication of the length of the password is reset to what it was before).

    But (there's always a but in these things, right?), now I have this:

    Background jobs Last job execution ran 14 minutes ago. Something seems wrong.

    7403acdb-de5f-4404-8917-328a35e6b1fd-image.png

    I'm digging around the logs but not found anything yet.

    I'm getting this exact issue in my Nextclouds right now.

    @girish possibly related to the all the other issues? or not?

    I use Cloudron with Gandi & Hetzner

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to jdaviescoates on last edited by
    #10

    @jdaviescoates Yes, cron not working is a symptom of docker not working (stuck in configuring)

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.