New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gammu-smsd[17421]: Error connecting to database! #354

Closed
abgumilar opened this Issue Sep 19, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@abgumilar

abgumilar commented Sep 19, 2017

Please Help Me

I'm using gammu 1.33, modem wavecom fastrack m1306b and distro CentOS 6.5

my gammurc & gammu-smsdrc file is :

[gammu]
port = /dev/ttyUSB0
model = at
connection = at115200
synchronizetime = yes
logfile = /var/log/gammu/gammurc
logformat = textalldate
use_locking = 
gammuloc = 

[smsd]
service = sql
driver  = native_mysql
PIN = 1234
logfile = /var/log/gammu/smsdrc
debuglevel = 1
#runonreceive = /some/script
commtimeout = 15
sendtimeout = 15
checksecurity = 0 
phoneid = modem1
user = root
password = xxxxxxxx
host = localhost
database = simizin_ciamis

Log Error

[root@localhost ~]# gammu-smsd --daemon
Log filename is "/var/log/gammu/smsdrc"
[root@localhost ~]# tail -f /var/log/gammu/smsdrc
Tue 2017/09/19 13:39:10 gammu-smsd[17454]: SHM token: 0xffffffffce001279 (-838856071)
Tue 2017/09/19 13:39:10 gammu-smsd[17454]: PIN code is "1234"
Tue 2017/09/19 13:39:10 gammu-smsd[17454]: CommTimeout=15, SendTimeout=15, ReceiveFrequency=0, ResetFrequency=0, HardResetFrequency=0
Tue 2017/09/19 13:39:10 gammu-smsd[17454]: checks: CheckSecurity=0, CheckBattery=1, CheckSignal=1
Tue 2017/09/19 13:39:10 gammu-smsd[17454]: mode: Send=1, Receive=1
Tue 2017/09/19 13:39:10 gammu-smsd[17454]: deliveryreport = no
Tue 2017/09/19 13:39:10 gammu-smsd[17454]: phoneid = modem1
Tue 2017/09/19 13:39:10 gammu-smsd[17455]: Error connecting to database!
Tue 2017/09/19 13:39:10 gammu-smsd[17455]: Error code: 1049, Error: Unknown database 'sms'
Tue 2017/09/19 13:39:10 gammu-smsd[17455]: Initialisation failed, stopping Gammu smsd: Unknown error. (UNKNOWN[27])

what should i do now?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Sep 28, 2017

Member

Are you sure the configuration file is the one Gammu is using? Because it's trying to connect to the sms database while you have configured simizin_ciamis...

Member

nijel commented Sep 28, 2017

Are you sure the configuration file is the one Gammu is using? Because it's trying to connect to the sms database while you have configured simizin_ciamis...

@nijel nijel added the question label Sep 28, 2017

@abgumilar

This comment has been minimized.

Show comment
Hide comment
@abgumilar

abgumilar Oct 2, 2017

I'm not sure but where can I find that configuration used by current gammu?

abgumilar commented Oct 2, 2017

I'm not sure but where can I find that configuration used by current gammu?

@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Oct 16, 2017

Member

See our documentation for information how the config file is searched: https://wammu.eu/docs/manual/config/

Member

nijel commented Oct 16, 2017

See our documentation for information how the config file is searched: https://wammu.eu/docs/manual/config/

@nijel nijel closed this Oct 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment