Log errors

71 views
Skip to first unread message

Cyberfarer

unread,
Apr 29, 2021, 9:52:14 AM4/29/21
to elkarbackup-users
Greetings, 

I upgraded to latest release and backups appear to be working fine and email notifications are received, but my cron is spitting out these errors:

18:01:06 WARNING   [php] Warning: Undefined array key 5 ["exception" => ErrorException { …}] ["user" => null,"user_email" => "","user_id" => "","user_name" => ""]

Any idea what I need to correct?

Thanks,
Sean.

Eneko Lacunza

unread,
Apr 29, 2021, 9:58:04 AM4/29/21
to elkarbac...@googlegroups.com
Can you provide the info (traceback) in ErrorException?

Thanks

El 29/4/21 a las 15:52, Cyberfarer escribió:

Eneko Lacunza

Director Técnico | Zuzendari teknikoa

Binovo IT Human Project

943 569 206
elac...@binovo.es
binovo.es
Astigarragako Bidea, 2 - 2 izda. Oficina 10-11, 20180 Oiartzun
youtube
linkedin

Cyberfarer

unread,
Apr 30, 2021, 10:35:05 AM4/30/21
to elkarbackup-users
How do I provide the traceback? 

For Tick, Elkarbackup shows this:

2021-04-25 13:38:38
ERROR
TickCommand

Command was unable to send the notification message: Expected response code 250 but got code "", with message ""

I am not sure if this is related, but I am also seeing in Elkarbackup logs:

2021-04-30 06:04:28
WARNING
RunJobCommand

Job data could not be stored!

/client/1/job/5

Cyberfarer

unread,
Apr 30, 2021, 8:02:18 PM4/30/21
to elkarbackup-users
Hi Eneko,

I solved the second problem. It was a innodb time out setting. The first one though is persistent. Here is the entire log:

[2021-04-30 19:57:02] php.INFO: User Deprecated: The Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser class is deprecated since version 4.3 and will be removed in 5.0; use Twig instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The Symfony\\Bundle\\FrameworkBundle\\Templating\\TemplateNameParser class is deprecated since version 4.3 and will be removed in 5.0; use Twig instead. at /usr/share/elkarbackup/vendor/symfony/framework-bundle/Templating/TemplateNameParser.php:14)"} {"user":null,"user_email":"","user_id":"","user_name":""}
[2021-04-30 19:57:33] app.ERROR: Exception occurred while flushing email queue: Connection to localhost:25 Timed Out [] {"user":null,"user_email":"","user_id":"","user_name":""}

Thanks,
Sean.

Eneko Lacunza

unread,
May 3, 2021, 3:58:42 AM5/3/21
to elkarbac...@googlegroups.com
Hi Cyberfarer,

Seems your local smtp transport is not working? Elkarbackup is trying to connect to localhost por 25 to send an email, are you sure it is working?

El 1/5/21 a las 2:02, Cyberfarer escribió:

Eneko Lacunza

CTO | Zuzendari teknikoa

Binovo IT Human Project

Sean Hurley

unread,
May 3, 2021, 8:22:54 AM5/3/21
to elkarbac...@googlegroups.com
Yes, I think the issue is Swift mail but I don't know how to address it. I see it on both servers now. It does send email.

Each email looks like this (I don't know what "job resetting" means):

ClientJobTimeLevelMessage
CLSANFSTracking2021-05-03 03:01:02WARNINGJob resetting
CLSANFSTracking2021-05-03 03:01:03INFOOK

--
Has recibido este mensaje porque estás suscrito a un tema del grupo "elkarbackup-users" de Grupos de Google.
Para cancelar la suscripción a este tema, visita https://groups.google.com/d/topic/elkarbackup-users/PuofqW2g46w/unsubscribe.
Para cancelar la suscripción a este grupo y a todos sus temas, envía un correo electrónico a elkarbackup-us...@googlegroups.com.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/elkarbackup-users/438f0483-3e55-612d-7f1f-fb9720afefb8%40binovo.es.

Xabi Ezpeleta

unread,
May 3, 2021, 9:00:13 AM5/3/21
to elkarbac...@googlegroups.com
Hi Sean,

Each email looks like this (I don't know what "job resetting" means):

It might be related to the following issue: https://github.com/elkarbackup/elkarbackup/issues/530

Yes, I think the issue is Swift mail but I don't know how to address it. I see it on both servers now. It does send email.

I think it's related to the following issue: https://github.com/elkarbackup/elkarbackup/issues/509

I'm checking v2.0.0 with SMTP and I'm getting the same problem. It can be related to the way we configure the MAILER now in Symfony 4.4.


We're going to check it. We'll keep you updated.

Thanks

Hau idatzi du Sean Hurley (cyber...@gmail.com) erabiltzaileak (2021 mai. 3, al. (14:22)):
Has recibido este mensaje porque estás suscrito al grupo "elkarbackup-users" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a elkarbackup-us...@googlegroups.com.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/elkarbackup-users/CAB9MzWgccZJ%2B76QDitbD%3D4bmY3OvnAnGHWSh1WVQgPHjpZJwXQ%40mail.gmail.com.

Eneko Lacunza

unread,
May 3, 2021, 9:21:51 AM5/3/21
to elkarbac...@googlegroups.com
Hi,

El 3/5/21 a las 14:59, Xabi Ezpeleta escribió:
Hi Sean,

Each email looks like this (I don't know what "job resetting" means):

It might be related to the following issue: https://github.com/elkarbackup/elkarbackup/issues/530
Yes, I think so. It is fixed now apparently, but I'll wait for our tonight backup jobs to be sure.

Xabi, do you think we could have #509 fixed by tomorrow and release v2.0.1?

Cheers
Eneko Lacunza
Zuzendari teknikoa | Director técnico
Binovo IT Human Project

Tel. +34 943 569 206 | https://www.binovo.es
Astigarragako Bidea, 2 - 2º izda. Oficina 10-11, 20180 Oiartzun

https://www.youtube.com/user/CANALBINOVO
https://www.linkedin.com/company/37269706/

Xabi Ezpeleta

unread,
May 3, 2021, 5:20:44 PM5/3/21
to elkarbac...@googlegroups.com
Hi

,I'm checking v2.0.0 with SMTP and I'm getting the same problem. It can be related to the way we configure the MAILER now in Symfony 4.4.

Actually I had a typo in my configuration. It seems that everything is working as expected.

@Sean, can you check your mailer configuration? Here you have more info about Swiftmailer configuration options: https://swiftmailer.symfony.com/docs/sending.html#transport-types

Did you installed Elkarbackup with the Deb package or are you using Docker?

Thanks

Hau idatzi du 'Eneko Lacunza' via elkarbackup-users (elkarbac...@googlegroups.com) erabiltzaileak (2021 mai. 3, al. (15:21)):
--
Has recibido este mensaje porque estás suscrito al grupo "elkarbackup-users" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a elkarbackup-us...@googlegroups.com.

Sean Hurley

unread,
May 4, 2021, 12:04:57 AM5/4/21
to elkarbac...@googlegroups.com
Hi Xabi

I am running from the deb package and I'm wondering if it may be my PHP version. I am running PHP 8.0 on Ubuntu 20.04. I am using smtp transport to port 25 without any authentication. The email is delivered, but I receive additional emails from cron displaying PHP errors.

Sean.




Has recibido este mensaje porque estás suscrito a un tema del grupo "elkarbackup-users" de Grupos de Google.
Para cancelar la suscripción a este tema, visita https://groups.google.com/d/topic/elkarbackup-users/PuofqW2g46w/unsubscribe.
Para cancelar la suscripción a este grupo y a todos sus temas, envía un correo electrónico a elkarbackup-us...@googlegroups.com.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/elkarbackup-users/CA%2BcPDz6cv4YO03gjcqf%2B3Czm2zYekTtBfDMnbkGc3cVn3PVqyg%40mail.gmail.com.

Eneko Lacunza

unread,
May 4, 2021, 4:00:33 AM5/4/21
to elkarbac...@googlegroups.com

Hi Sean,

What SMTP server are you using?


El 4/5/21 a las 6:04, Sean Hurley escribió:

Cyberfarer

unread,
May 4, 2021, 8:11:54 AM5/4/21
to elkarbackup-users
I am on a university and I use their smtp server. We use it for all outgoing email. 

Eneko Lacunza

unread,
May 4, 2021, 8:26:15 AM5/4/21
to elkarbac...@googlegroups.com
Hi Sean,

Can you provide /etc/elkarbackup/parameters.yaml? (redact passwords please)

El 4/5/21 a las 14:11, Cyberfarer escribió:

Xabi Ezpeleta

unread,
May 4, 2021, 8:27:07 AM5/4/21
to elkarbac...@googlegroups.com
Can you check your /etc/elkarbackup/parameters.yml file and specifically all mailer related keys?

mailer_transport
mailer_host
mailer_user
mailer_password

If you are using "localhost" deliberately, you should have a SMTP relay on your host. Is that the case? You can check if you are Exim or similar running in the server:

$ netstat -ntpl|grep ":25"

Thanks



Hau idatzi du Cyberfarer (cyber...@gmail.com) erabiltzaileak (2021 mai. 4, ar. (14:11)):

Sean Hurley

unread,
May 4, 2021, 9:20:57 AM5/4/21
to elkarbac...@googlegroups.com
Hello, please see below.

parameters.yaml
parameters:
   ...
    mailer_transport: smtp
    mailer_host: smtp1.mcmaster.ca
    mailer_user: null
    mailer_password: null
    mailer_from: no-r...@mcmaster.ca
    locale: en
    ...

config/packages/swiftmailer.yaml
swiftmailer:
    spool: { type: 'memory' }
    transport: '%mailer_transport%'
    host:      '%mailer_host%'
    username:  '%mailer_user%'
    password:  '%mailer_password%'

Xabi Ezpeleta

unread,
May 4, 2021, 11:35:37 AM5/4/21
to elkarbac...@googlegroups.com
Can you try sending a test message with the symfony console? Do you see errors?

cd /usr/share/elkarbackup
./bin/console swiftmailer:email:send --from=te...@yourdomain.com --to=your...@yourdomain.com --subject=testsubject --body=testbody

Hau idatzi du Sean Hurley (cyber...@gmail.com) erabiltzaileak (2021 mai. 4, ar. (15:20)):

Sean Hurley

unread,
May 5, 2021, 9:27:53 AM5/5/21
to elkarbac...@googlegroups.com
So, I updated swiftmailer and installed the latest Elkarbackup and no cron errors this morning. I will save that command, however, for future reference.

Thank you for all your help.

Message has been deleted

Eneko Lacunza

unread,
May 31, 2021, 3:35:09 AM5/31/21
to elkarbac...@googlegroups.com

Using mailservername:port should work.

El 30/5/21 a las 21:54, Ukro Ukrovic escribió:
Greetings
Where can i put port as i am not using port 25 but ssl 587.
Default Mailer transport have only smtp 25.

Ukro Ukrovic

unread,
May 31, 2021, 3:40:15 AM5/31/21
to elkarbac...@googlegroups.com
Thank you :)

Reply all
Reply to author
Forward
0 new messages