Public bug reported:

The /usr/bin/ejabberd2prosody migration tool does not run with a default
install on 12.04.1. The package.path needs to read:

package.path = package.path
.."/usr/lib/prosody/util/?.lua;/usr/lib/prosody/?.lua";

Otherwise it will throw an error like the following:

ejabberd2prosody mnesia.dump 
lua: /usr/bin/ejabberd2prosody:14: module 'util.erlparse' not found:
        no field package.preload['util.erlparse']
        no file './util/erlparse.lua'
        no file '/usr/local/share/lua/5.1/util/erlparse.lua'
        no file '/usr/local/share/lua/5.1/util/erlparse/init.lua'
        no file '/usr/local/lib/lua/5.1/util/erlparse.lua'
        no file '/usr/local/lib/lua/5.1/util/erlparse/init.lua'
        no file '/usr/share/lua/5.1/util/erlparse.lua'
        no file 
'/usr/share/lua/5.1/util/erlparse/init.lua/usr/lib/prosody/util/util/erlparse.lua'
        no file './util/erlparse.so'
        no file '/usr/local/lib/lua/5.1/util/erlparse.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/util/erlparse.so'
        no file '/usr/lib/lua/5.1/util/erlparse.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './util.so'
        no file '/usr/local/lib/lua/5.1/util.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/util.so'
        no file '/usr/lib/lua/5.1/util.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /usr/bin/ejabberd2prosody:14: in main chunk
        [C]: ?

** Affects: prosody (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "update package.path to find utils.erlparse"
   
https://bugs.launchpad.net/bugs/1109051/+attachment/3506101/+files/ejabberd2prosody.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109051

Title:
  Incorrect package.path in ejabberd2prosody tool

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/prosody/+bug/1109051/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to