Re: Cannot start davmail service

2018-04-26 Thread Luis Felipe Tabera Alonso
On jueves, 26 de abril de 2018 13:35:41 (CEST) Alexandre Rossi wrote:
> davmail is an executable jar which uses jarwrapper which uses
> binfmt_misc[1] to make arbitrary files executable.
> 
> It seems the binfmt-support service has not run properly on your
> machine. Does restarting it fix the problem?

Thanks!

This is the problem, I have the binfmt-support service disabled by default. 
Enabling this makes davmail working again.

Best regards,

Luis



Re: Cannot start davmail service

2018-04-26 Thread Alexandre Rossi
Hi,

> I have a problem with davmail package in debian testing and need some advise.
>
> If I install it I can start and stop the service via systemctl without any
> problem and it works flawlessly.
>
> However, after a reboot, the service does not start. I get the following
> error:
>
> abr 26 10:51:00 localhot systemd[17207]: davmail.service: Failed to execute
> command: Exec format error
> abr 26 10:51:00 localhot systemd[17207]: davmail.service: Failed at step EXEC
> spawning /usr/bin/davmail: Exec format error

davmail is an executable jar which uses jarwrapper which uses
binfmt_misc[1] to make arbitrary files executable.

It seems the binfmt-support service has not run properly on your
machine. Does restarting it fix the problem?

[1] https://en.wikipedia.org/wiki/Binfmt_misc

Alex



Cannot start davmail service

2018-04-26 Thread Luis Felipe Tabera Alonso
Hi list:

I have a problem with davmail package in debian testing and need some advise. 

If I install it I can start and stop the service via systemctl without any 
problem and it works flawlessly.

However, after a reboot, the service does not start. I get the following 
error:

abr 26 10:51:00 localhot systemd[17207]: davmail.service: Failed to execute 
command: Exec format error
abr 26 10:51:00 localhot systemd[17207]: davmail.service: Failed at step EXEC 
spawning /usr/bin/davmail: Exec format error

If I *uninstall* and then reinstall the package (and some java dependencies) 
then it works again, I can start and stop the daemon and everything works fine 
until next reboot. This does not work if I only reinstall the package without 
uninstalling first. So this suggest that has to do with some of the 
dependencies.

If I run as a user directly the file /usr/bin/davmail   then:
- Just after an install, davmail starts as a desktop app and no problem.
- After a reboot, I get the following error on a fish shell:
Failed to execute process '/usr/bin/davmail'. Reason:
exec: Exec format error
The file '/usr/bin/davmail' is marked as an executable but could not be run by 
the operating system.

on bash I only get a set of meaningless symbols. Until I reinstall it.

I suspect that there is a problem with the java configuration on my system. 
But I have no idea what to look for. 

Any advise?

Luis