Re: Gammu-smsd with postgres startup problem

Michal Čihař <[email protected]>
Newsgroups gmane.linux.drivers.gammu
Message-ID <[email protected]>
Hi

Dne Thu, 28 May 2015 16:58:46 +0200
Alessandro Vercelli <[email protected]> napsal(a):

> This is my /etc/gammu-smsdrc:
> 
> # Configuration file for Gammu SMS Daemon
> 
> # Gammu library configuration, see gammurc(5)
> [gammu]
> # Please configure this!
> port = /dev/ttyUSB0
> connection = at115200
> 
> # Debugging
> logformat = textall
> 
> # SMSD configuration, see gammu-smsdrc(5)
> [smsd]
> debuglevel = 255
> logfile = /var/log/smsd.log
> # Postgres backend
> service = sql
> driver = native_pgsql
> host = localhost

You don't have configured which database to use here:

http://wammu.eu/docs/manual/smsd/config.html#option-Database

> Thu 2015/05/28 16:40:07 gammu-smsd[3402]: Error connecting to database: FATAL:  database "sms" does not exist

...and Gammu falls back to default database name, which is sms.

> Thu 2015/05/28 16:40:07 gammu-smsd[3402]: Initialisation failed, stopping Gammu smsd: Unknown error. (UNKNOWN[27])
> 
> Unexpectedly, the service is trying to work with a database named "sms" but the gammu tables are located in publich schema of template1 db:

So set database = template1.

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com

------------------------------------------------------------------------------

_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVZ0z3AAoJEJwnsxNCt1EdJhoP+gOdv9IDvkYC+bwOTDS32PbJ
3l5y9Ev6J+4WPZfjBL8hoa2wMikqTJ1iwcacfXLUujPLV4e+eAvwzMgdhy77hOFN
DxZ3misfdarb7ksUx/r4fowjP2W5ZJ6KXKmiZllrYvULDQMmySY2JV9j5EUqahfY
6ImUZU8+pL4UJ8JvAGQYwfYC8xc0ZfaulqM/dKgy8fhVZ/cW7wFUVwj9xxqjppTr
4fbzHLn2BOPD6B89dWb356bZ15h9eoA3sxrZMHomP2EsRF3h1BCqvnpzGi95ppSx
5SfHCvGp5RweUvAfn48QHY9GYGER2OW6iCazi4wsXiQDalJ1QL+Hv20XXneQFsDA
CwnqmsraaFTVJPgBmp6sx5uyQVA7ln6iZBryuMm/VUF+Beu932CVVsxDgX2P7evb
mZ4nnPZjcolbrLd9fkHnOdNRk76AwGjOD2VC+XnHKHA2o1jfkguku9oZHXPgxNWU
haHjBmLYKT07pgzU7DIlfyQMb7oAVN0cz4yo9/iRINbL+wcMH8PaybXn/nREUphN
gdfpIhdvsrOcwgqsaquEXvJZYLoOymerNvXjf76WsVy0G830cRyDPD7IOsIgyj+7
38FHNZXGAIryiCBAxpRLa8h8N9xA58dpJJMg1znJGv7Trhre6P1iqitq1p6uSI2h
B0bO/ijYCLjk9IJlQ+w+
=hlY+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.