(***) In notifications

Alvaro Villa 10 months ago

Since I updated to the 6.10 version, the web and telegrams notificacions only shows this text: (***)

Even after reinstalling version 6.10 without any modifications to the templates, the same text appears.

What is the problem?

Anton Tananaev 10 months ago

This means you're missing templates.

Alvaro Villa 10 months ago

I've reinstalled Traccar again and I have the default templates, the issue remains.

But when I put the old templates and the issue remains too.

Anton Tananaev 10 months ago

Why would you put old templates?

Alvaro Villa 10 months ago

I used it only to test.

But with a clean installation of Traccar (only with traccar.xml from the previous version) I have the same issue.

ftc 10 months ago

I can confirm the issue. I even tried setting the templates.root explicitly to the directory containing the templates, but it doesn't pick them up. Any way to debug this?

Anton Tananaev 10 months ago

You should test default installation without any template or configuration changes. Latest version of course.

ftc 10 months ago

I just re-executed the test with 6.10.0 and it's the same.
Here the contents of my config, if this helps:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='database.driver'>org.h2.Driver</entry>
<entry key='database.password'></entry>
<entry key='database.url'>jdbc:h2:/var/lib/traccar/database</entry>
<entry key='database.user'>sa</entry>
<entry key='logger.console'>true</entry>
<entry key='notificator.traccar.key'>ey[redacted]</entry>
<entry key='notificator.types'>traccar</entry>
</properties>

There is no error message in the log.

ftc 10 months ago

This is even reproducible on latest master.

Anton Tananaev 10 months ago
  1. Have you changed anything in the templates folder?
  2. What type of notification are you testing?
ftc 10 months ago

Have you changed anything in the templates folder?

No, I haven't

What type of notification are you testing?

I tested with the TEST CHANNELS function.

I realized Test Template function tries to access a test.vm template which was missed during migration.

From the broken Test Template function, I concluded there must be something wrong with templates in general. But the remaining templates are working when testing real notifications.

I opened an issue in GitHub documenting that: https://github.com/traccar/traccar/issues/5702

Anton Tananaev 10 months ago

This is expected behavior.

bravo.123 10 months ago

Да , тоже пропали нотификации в телеграм, ставил traccar traccar/docker/compose
/traccar-timescaledb.yaml, присылает звёздочки .. в докере шаблоны есть, но он их не видит, пробовал подключать volume
- ./templates:/opt/traccar/templates:rw , в докере отображается а в нотификации звёздочки .

Anton Tananaev 10 months ago

Which type?

bravo.123 10 months ago

The type of what? telegram?