Open GoogleCodeExporter opened 9 years ago
It looks like Matthew Wild acknowledged this issue in a Google Groups message,
which can be found here:
https://groups.google.com/forum/#!msg/prosody-dev/tCZSZYDDr7w/fkcwZyvvWFAJ
Original comment by ryperven...@gmail.com
on 4 Jul 2013 at 12:23
I've got a similar behavior on my server with prosody 0.9.4
I'm using Arch Linux:
aur/lua51-ldbi 0.5.0-1 [installed] (0)
PostgreSQL and SQLite bindings to Lua 5.1
community/prosody 0.9.4-3 [installed]
Lightweight and extensible Jabber/XMPP server written in Lua
extra/postgresql 9.3.5-1 [Installiert]
A sophisticated object-relational DBMS
is there some kind of workaround?
Like getting the data into a provided and functional db backend, like sqlite?
I assume that the migrator won't succeed if prosody itself has problems with
postgres...
Original comment by otte...@googlemail.com
on 24 Aug 2014 at 9:13
As far as I know you shouldn't see any problems with functionality - I know a
number of servers running in production with Postgres, one of them with
thousands of users.
If you want to migrate to SQLite all the same, you can use our data migrator:
https://prosody.im/doc/migrator
I have been working a lot on LuaDBI recently, but I chose to start with
cleaning up the MySQL driver (now done I believe), Postgres is next on my list.
Original comment by MWild1
on 24 Aug 2014 at 9:21
This issue rendered my server unusable, nobody was able to login.
Not a huge impact at 10 users, but annoying.
I've migrated the data from postgres to sqlite, now it seems that everyting is
running fine again.
I'll try to find some hints for this problem within the logs, at first my only
concern was to get it running again.
Original comment by otte...@googlemail.com
on 24 Aug 2014 at 9:48
[deleted comment]
Weird...
Strange thing: prosody yells that it can't connect to the database, but
postgresql is running and notes that the tabel 'prosody' already exists.
Here the log snippets: (i've changed my domain name)
prosody:
Aug 23 23:19:57 iridium.asdf prosody[476]: xmpp.asdf:storage_sql: Database
connection failed: Failed to connect to database: no connection to the server
Aug 23 23:19:57 iridium.asdf prosody[476]: modulemanager: Error initializing
module 'storage_sql' on 'xmpp.asdf':
/usr/lib/prosody/modules/mod_storage_sql.lua:172: Failed to connect to
database: no connection to the server
stack traceback:
/usr/lib/prosody/core/modulemanager.lua:29: in function </usr/lib/prosody/core/modulemanager.lua:29>
[C]: in function 'assert'
/usr/lib/prosody/modules/mod_storage_sql.lua:172: in main chunk
(tail call): ?
[C]: in function 'xpcall'
/usr/lib/prosody/core/modulemanager.lua:29: in function 'pcall'
/usr/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
/usr/lib/prosody/core/modulemanager.lua:249: in function 'load'
/usr/lib/prosody/core/storagemanager.lua:54: in function 'load_driver'
/usr/lib/prosody/core/storagemanager.lua:74: in function 'get_driver'
/usr/lib/prosody/core/storagemanager.lua:84: in function </usr/lib/prosody/core/storagemanager.lua:83>
...
/usr/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
/usr/lib/prosody/core/modulemanager.lua:249: in function 'load'
/usr/lib/prosody/core/usermanager.lua:67: in function '?'
/usr/lib/prosody/util/events.lua:67: in function 'fire_event'
/usr/lib/prosody/core/hostmanager.lua:98: in function 'activate'
/usr/lib/prosody/core/hostmanager.lua:44: in function '?'
/usr/lib/prosody/util/events.lua:67: in function 'fire_event'
/usr/lib/prosody/../../bin/prosody:334: in function 'prepare_to_start'
/usr/lib/prosody/../../bin/prosody:399: in main chunk
[C]: ?
postgres:
Aug 23 23:19:55 iridium.asdf systemd[1]: Starting PostgreSQL database server...
[...]
Aug 23 23:19:58 iridium.asdf postgres[438]: WARNUNG: eine Transaktion ist
bereits begonnen
Aug 23 23:19:58 iridium.asdf postgres[438]: FEHLER: Relation „prosody“
existiert bereits
Aug 23 23:19:58 iridium.asdf postgres[438]: ANWEISUNG: CREATE TABLE "prosody"
("host" TEXT, "user" TEXT, "store" TEXT, "key" TEXT, "type" TEXT, "value" TEXT);
I have no explanation for this behaviour. :(
['edit': oops, forgot a domainname once...]
Original comment by otte...@googlemail.com
on 24 Aug 2014 at 10:07
Ah ok, thanks for the extra info. I think your issue is unrelated to the
original reporter's here.
Did your problem happen after a server restart? On some systems Prosody comes
up before the database, fails to connect and doesn't retry - this is a known
issue #416 (and a tricky one... we sometimes need the DB to be available at
startup!).
Original comment by MWild1
on 24 Aug 2014 at 1:47
Original issue reported on code.google.com by
ryperven...@gmail.com
on 4 Jul 2013 at 12:01