WARN: Unable to load notificator class for firebase

Fung5 years ago

Hi,

I try to get FCM working but I get the warning in the title in the server logs.
I'm using Traccar 4.6
Can anyone help me debugging it?

Anton Tananaev5 years ago

So, do you want us to guess or you're going to provide your configuration?

Fung5 years ago

Sorry, I did not know that the configuration is important for this:

<?xml version='1.0' encoding='UTF-8'?>    
    
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>    
    
<properties>    
    
    <entry key='config.default'>./conf/default.xml</entry>    
    
    <!--    
    
    This is the main configuration file. All your configuration parameters should be placed in this file.    
    
    Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues    
    with upgrading to a new version. Parameters in the main config file override values in the default file. Do not    
    remove "config.default" parameter from this file unless you know what you are doing.    
    
    For list of available parameters see following page: https://www.traccar.org/configuration-file/    
    
    -->    
    
    <entry key='database.driver'>org.h2.Driver</entry>    
    <entry key='database.url'>jdbc:h2:./data/database</entry>    
    <entry key='database.user'>sa</entry>    
    <entry key='database.password'></entry>    
    <entry key='notificator.types'>web,mail,firebase</entry>    
    <entry key='mail.smtp.host'>serv.er</entry>    
    <entry key='mail.smtp.port'>465</entry>    
    <entry key='mail.smtp.ssl.enable'>true</entry>    
    <entry key='mail.smtp.from'>alias@serv.er</entry>    
    <entry key='mail.smtp.auth'>true</entry>    
    <entry key='mail.smtp.ssl.protocols'>TLSv1.2</entry>    
    <entry key='mail.smtp.username'>name@serv.er</entry>    
    <entry key='mail.smtp.password'>*********</entry>    
    <entry key='notificator.firebase.key'>xxxxxxx</entry>        
    
</properties>

Everything else is default.

Anton Tananaev5 years ago

And you are using latest official release without any modifications?

Fung5 years ago

As far as I know, yes. I installed it from AUR - arch linux ...

Anton Tananaev5 years ago

You should install it using official installer instead.

Fung5 years ago

It installs the latest release downloaded from github like this:

./traccar.run --noexec --target $pkgdir/opt/traccar/
install -m755 -d "${pkgdir}/usr/lib/systemd/system"
mv "${pkgdir}/opt/traccar/traccar.service" "${pkgdir}/usr/lib/systemd/system/"
chmod 755 -R $pkgdir/opt

The $pkgdir later gets the root dir.
So it does just use the official installer and integrates it in the arch linux way to install packages.

Fung5 years ago

So now this is clarified, maybe you could help me fix the problem. Or do you need more information?