Bug 1305363

Summary: prosody cannot find DBI module
Product: [Fedora] Fedora Reporter: Illya <dev>
Component: prosodyAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: jkaluza, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-07 16:26:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
relevant part of prosody.log none

Description Illya 2016-02-07 15:40:22 UTC
Created attachment 1121928 [details]
relevant part of prosody.log

Description of problem:
prosody configured with SQL-storage cannot connect to DB

Version-Release number of selected component (if applicable):
prosody.x86_64                      0.9.10-1.fc23 
lua.x86_64                          5.3.2-2.fc23
lua-dbi.x86_64                      0.5-13.fc23

How reproducible:
always 

Steps to Reproduce:
1. Install prosody
2. Configure it to use SQL (tested with postgresql)
3. Start server

Actual results:
Server starts, but storage driver falls back to "null"

DBI module is installed at /usr/share/lua/5.3/DBI.lua, but prosody tries to find it under /usr/share/lua/5.1/DBI.lua

Expected results:
Server uses configured DB as storage

Additional info:

Comment 1 Robert Scheck 2016-02-07 16:26:16 UTC
Prosody requires Lua 5.1 strictly, while lua-dbi is built against Lua 5.2 or
5.3. Please install lua-dbi-compat rather lua-dbi - then it should work.