Author Topic: Fetchmail not started after upgrade from 4.1.12 to 5.0  (Read 2910 times)

kvm

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Fetchmail not started after upgrade from 4.1.12 to 5.0
« on: February 17, 2017, 03:30:28 pm »
Hi all!

After upgrade can`t get external mail. In syslog I see errors:
Code: [Select]
Feb 16 14:04:33 mail systemd[1]: Started Zentyal fetchmail daemon.
Feb 16 14:04:33 mail systemd[1]: zentyal.fetchmail.service: Main process exited, code=exited, status=1/FAILURE
Feb 16 14:04:33 mail systemd[1]: zentyal.fetchmail.service: Unit entered failed state.
Feb 16 14:04:33 mail systemd[1]: zentyal.fetchmail.service: Failed with result 'exit-code'.
Feb 16 14:04:33 mail systemd[1]: zentyal.fetchmail.service: Service hold-off time over, scheduling restart.
Feb 16 14:04:33 mail systemd[1]: Stopped Zentyal fetchmail daemon.
...
Feb 16 14:04:34 mail systemd[1]: zentyal.fetchmail.service: Start request repeated too quickly.
Feb 16 14:04:34 mail systemd[1]: Failed to start Zentyal fetchmail daemon.

After many tries to fix it, I found why, on this forum:
https://forum.zentyal.org/index.php?topic=21633.0
The problem was that fetchmail user doesn`t have shell.
Code: [Select]
fetchmail:x:115:65534::/var/lib/fetchmail:/bin/false

Then I found solution on this forum too (https://forum.zentyal.org/index.php?topic=4447.0):
Code: [Select]
sudo chsh -s /bin/sh fetchmail

But, service "External retrieval service" in Zentyal web-admin control panel marked as stopped. If I try to start it,
I see in syslog:
Code: [Select]
Feb 17 16:21:00 mail systemd[1]: Stopping Zentyal fetchmail daemon...
Feb 17 16:21:00 mail fetchmail[2715]: terminated with signal 15
Feb 17 16:21:00 mail su[2673]: Session terminated, terminating shell... ...terminated.
Feb 17 16:21:00 mail systemd[1]: zentyal.fetchmail.service: Main process exited, code=exited, status=143/n/a
Feb 17 16:21:00 mail systemd[1]: Stopped Zentyal fetchmail daemon.
Feb 17 16:21:00 mail systemd[1]: zentyal.fetchmail.service: Unit entered failed state.
Feb 17 16:21:00 mail systemd[1]: zentyal.fetchmail.service: Failed with result 'exit-code'.
Feb 17 16:21:00 mail systemd[1]: Started Zentyal fetchmail daemon.
Feb 17 16:21:00 mail fetchmail[27754]: starting fetchmail 6.3.26 daemon
Feb 17 16:21:01 mail cron[631]: (*system*ebox-mail) RELOAD (/etc/cron.d/ebox-mail)
Feb 17 16:21:01 mail CRON[27905]: (root) CMD ([ -x /usr/share/zentyal-mail/fetchmail-update ] && /usr/share/zentyal-mail/fetchmail-update)

As I see, fetchmail is started & worked, external mail is receiving, but, service "External retrieval service" in Zentyal web-admin still marked as stopped!
How Zentyal is determine status of services, and how can I fix it?

stovesy

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +2/-0
    • View Profile
Re: Fetchmail not started after upgrade from 4.1.12 to 5.0
« Reply #1 on: June 07, 2017, 11:41:14 am »
I see the same issue.

zentyal-fetchmail.rc is present and correct with the fetchmail service running. Mail is received correctly but the dashboard reports External retrieval service Stopped