[2.1.5] Can't run postinstall script

Hey,

OS: Debian lenny 32bit - up-to-date

I've got the 2.1.5 installer for linux - all seems to work all right - but then the installer says it cant run the post-install script..

Log:

Unpacking files
Unpacking /etc/ejabberd/doc/guide.pdf
Unpacking /etc/ejabberd/doc/guide.html
Unpacking /etc/ejabberd/doc/ssl.txt
Unpacking /etc/ejabberd/doc/discorus.png
Unpacking /etc/ejabberd/doc/webadmmain.png
Unpacking /etc/ejabberd/doc/webadmmainru.png
Unpacking /etc/ejabberd/doc/features.html
Executing final installation script

Error executing post installation script
/etc/ejabberd/bin/postinstall.sh
\child process exited abnormally

Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 09/13/2010 at 19:11:23

Start/stop over ejabberdctl start/started stop/stopped workin all right - maybe probs with adding admin? the script doesnt do anything else??

Some ideas?

More infos (crash erlang and

More infos (crash erlang and ejabberd)

ejabberd log:

=ERROR REPORT==== 2010-09-14 18:18:48 ===
Error in process <0.106.0> on node 'ejabberd@localhost' with exit value: {{case_clause,{error,{open_error,-10}}},[{ejabberd_app,init,0}]}

=INFO REPORT==== 2010-09-14 18:18:49 ===
    application: ejabberd
    exited: {bad_return,
                {{ejabberd_app,start,[normal,[]]},
                 {'EXIT',
                     {badarg,
                         [{erlang,port_control,[stringprep_port,2,"webcf.de"]},
                          {stringprep,control,2},
                          {jlib,nodeprep,1},
                          {ejabberd_config,normalize_hosts,2},
                          {ejabberd_config,add_hosts_to_option,2},
                          {lists,foldl,3},
                          {ejabberd_config,load_file,1},
                          {ejabberd_config,start,0}]}}}}
    type: temporary

erlang.log:

=CRASH REPORT==== 14-Sep-2010::18:18:49 ===
  crasher:
    pid: <0.35.0>
    registered_name: []
    exception exit: {bad_return,
                        {{ejabberd_app,start,[normal,[]]},
                         {'EXIT',
                             {badarg,
                                 [{erlang,port_control,
                                      [stringprep_port,2,"webcf.de"]},
                                  {stringprep,control,2},
                                  {jlib,nodeprep,1},
                                  {ejabberd_config,normalize_hosts,2},
                                  {ejabberd_config,add_hosts_to_option,2},
                                  {lists,foldl,3},
                                  {ejabberd_config,load_file,1},
                                  {ejabberd_config,start,0}]}}}}
      in function  application_master:init/4
    initial call: application_master:init(<0.5.0>,<0.34.0>,
                                          {appl_data,ejabberd,
                                           [ejabberd,ejabberd_sup,
                                            ejabberd_auth,ejabberd_router,
                                            ejabberd_sm,ejabberd_s2s,
                                            ejabberd_local,ejabberd_listeners,
                                            ejabberd_iq_sup,
                                            ejabberd_service_sup,
                                            ejabberd_s2s_out_sup,
                                            ejabberd_s2s_in_sup,
                                            ejabberd_c2s_sup,
                                            ejabberd_mod_roster,
                                            ejabberd_mod_echo,
                                            ejabberd_mod_pubsub,
                                            ejabberd_mod_irc,ejabberd_mod_muc,
                                            ejabberd_offline,random_generator],
                                           undefined,
                                           {ejabberd_app,[]},
                                           [acl,adhoc,configure,
                                            cyrsasl_anonymous,cyrsasl,
                                            cyrsasl_digest,cyrsasl_plain,
                                            ejabberd_admin,ejabberd_app,
                                            ejabberd_auth_anonymous,
                                            ejabberd_auth,
                                            ejabberd_auth_external,
                                            ejabberd_auth_internal,
                                            ejabberd_auth_ldap,
                                            ejabberd_auth_odbc,
                                            ejabberd_auth_pam,ejabberd,
                                            ejabberd_c2s,ejabberd_c2s_config,
                                            ejabberd_config,ejabberd_ctl,
                                            ejabberd_frontend_socket,
                                            ejabberd_hooks,ejabberd_http,
                                            ejabberd_http_bind,
                                            ejabberd_http_poll,
                                            ejabberd_listener,ejabberd_local,
                                            ejabberd_logger_h,
                                            ejabberd_loglevel,
                                            ejabberd_node_groups,
                                            ejabberd_rdbms,ejabberd_receiver,
                                            ejabberd_router,ejabberd_s2s,
                                            ejabberd_s2s_in,ejabberd_s2s_out,
                                            ejabberd_service,ejabberd_sm,
                                            ejabberd_socket,ejabberd_sup,
                                            ejabberd_system_monitor,
                                            ejabberd_tmp_sup,ejabberd_update,
                                            ejabberd_web_admin,ejabberd_web,
                                            ejabberd_zlib,ejd2odbc,eldap,
                                            eldap_filter,eldap_pool,
                                            eldap_utils,'ELDAPv3',extauth,
                                            gen_iq_handler,gen_mod,
                                            gen_pubsub_node,
                                            gen_pubsub_nodetree,iconv,idna,
                                            jd2ejd,jlib,mod_adhoc,
                                            mod_announce,mod_caps,
                                            mod_configure2,mod_configure,
                                            mod_disco,mod_echo,mod_http_bind,
                                            mod_http_fileserver,mod_irc,
                                            mod_irc_connection,mod_last,
                                            mod_last_odbc,mod_muc,mod_muc_log,
                                            mod_muc_room,mod_offline,
                                            mod_offline_odbc,mod_privacy,
                                            mod_privacy_odbc,mod_private,
                                            mod_private_odbc,mod_proxy65,
                                            mod_proxy65_lib,
                                            mod_proxy65_service,
                                            mod_proxy65_sm,mod_proxy65_stream,
                                            mod_pubsub,mod_register,
                                            mod_roster,mod_roster_odbc,
                                            mod_service_log,mod_shared_roster,
                                            mod_stats,mod_time,mod_vcard,
                                            mod_vcard_ldap,mod_vcard_odbc,
                                            mod_version,node_buddy,node_club,
                                            node_default,node_dispatch,
                                            node_pep,node_private,node_public,
                                            nodetree_default,nodetree_virtual,
                                            p1_fsm,p1_mnesia,randoms,sha,
                                            shaper,stringprep,stringprep_sup,
                                            tls,translate,xml,xml_stream,
                                            'XmppAddr'],
                                           [],infinity,infinity},
                                          normal)
    ancestors: [<0.34.0>]
    messages: [{'EXIT',<0.36.0>,normal}]
    links: [<0.34.0>,<0.5.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 23
    reductions: 163
  neighbours:

Re:

Commifreak wrote:

=ERROR REPORT==== 2010-09-14 18:18:48 ===
Error in process <0.106.0> on node 'ejabberd@localhost' with exit value: {{case_clause,{error,{open_error,-10}}},[{ejabberd_app,init,0}]}

=INFO REPORT==== 2010-09-14 18:18:49 ===
application: ejabberd
exited: {bad_return,
{{ejabberd_app,start,[normal,[]]},
{'EXIT',
{badarg,
[{erlang,port_control,[stringprep_port,2,"webcf.de"]},
{stringprep,control,2},

This probably means that the erlang coundn't read correctly the file stringprep_drc.so which is included in ejabberd installation. Maybe file permissions problem? Maybe you installed the linux 36bits installer in your 32bits machine?

1) No, no permission problem,

1) No, no permission problem, iam root :)
2) I've downloaded http://www.process-one.net/downloads/ejabberd/2.1.5/ejabberd-2.1.5-linux...

gunzip ejabberd-2.1.5-linux-x86-installer.bin.gz
chmod a+x ejabberd-2.1.5-linux-x86-installer.bin
./ejabberd-2.1.5-linux-x86-installer.bin

->Install - and after install the post-install error occurs - ejabberd isnt able to start.

Where should the stringprep_drv.so be? Which dir?

EDIT: http://pastebin.org/940703 (install with default values, failed too)

1) No, no permission problem,

1) No, no permission problem, iam root :)
2) I've downloaded http://www.process-one.net/downloads/ejabberd/2.1.5/ejabberd-2.1.5-linux...

gunzip ejabberd-2.1.5-linux-x86-installer.bin.gz
chmod a+x ejabberd-2.1.5-linux-x86-installer.bin
./ejabberd-2.1.5-linux-x86-installer.bin

->Install - and after install the post-install error occurs - ejabberd isnt able to start.

Where should the stringprep_drv.so be? Which dir?

EDIT: http://pastebin.org/940703

Hey, again, Linux s1.webcf.de

*** My posts before are not saved?!?!***

1) No permission problem: Iam root :)

2):

Hey, again,

Linux s1.webcf.de 2.6.33.2-vs2.3.0.36.30.4-netcup #5 SMP Fri Apr 16 06:34:48 UTC 2010 x86_64 GNU/Linux

x68_64 - It should be an 64-bit, right?

Ok, i know that i have installed 32bit over a vServer CP, but i tried to install the 64bit version of ejabberd though:

s1:~# gunzip ejabberd-2.1.5-linux-x86_64-installer.bin.gz
s1:~# chmod a+x ./ejabberd-2.1.5-linux-x86_64-installer.bin
s1:~# ./ejabberd-2.1.5-linux-x86_64-installer.bin
-bash: ./ejabberd-2.1.5-linux-x86_64-installer.bin: No such file or directory

The file could not be found, but it is there?!

WTF?! Why does this forum

WTF?!

Why does this forum dont save my postings?!?!

Aagain:

I've tested it with 3.0.0a1 -> same error, but the log means "invalid hostname "webcf.de"' -

what is wrong with the domain?

I've tested it with 3.0.0a1

I've tested it with 3.0.0a1 again:

ejabberd.log:

=ERROR REPORT==== 2010-09-18 23:45:44 ===
E(<0.37.0>:ejabberd_config:192) : Can't load config file: invalid host name ["webcf.de"]

=INFO REPORT==== 2010-09-18 23:45:44 ===
    application: ejabberd
    exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
                         {'EXIT',"invalid hostname"}}}
    type: temporary

Why is webcf.de invalid hostname?

Re:

Commifreak wrote:

I've tested it with 3.0.0a1 again:

ejabberd.log:

=ERROR REPORT==== 2010-09-18 23:45:44 ===
E(<0.37.0>:ejabberd_config:192) : Can't load config file: invalid host name ["webcf.de"]

=INFO REPORT==== 2010-09-18 23:45:44 ===
    application: ejabberd
    exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
                         {'EXIT',"invalid hostname"}}}
    type: temporary

Why is webcf.de invalid hostname?

ejabberd tries to verify if the domain is correct (does't contain unaccepted characters, encoding...) by calling to stringprep. But remember that the stringprep library isn't loaded correctly, so the domain verification fails.

How can i fix this? Where

How can i fix this? Where should stringpreg exist?

Re

Commifreak wrote:

How can i fix this? Where should stringpreg exist?

You can try to copy it to the same location where all the ejabberd *.beam files are, maybe that helps.

BTW, simple test:

$ erl
Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]

Eshell V5.7.5  (abort with ^G)
1> stringprep:start().
{ok,<0.37.0>}
2> q().
ok

$ rm stringprep_drv.so

$ erl
Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]

Eshell V5.7.5  (abort with ^G)
1> stringprep:start().
{error,{{case_clause,{error,{open_error,-10}}},
        [{stringprep,init,1},
         {gen_server,init_it,6},
         {proc_lib,init_p_do_apply,3}]}}
2> q().
ok

Ok, i'll tested

Ok, i'll tested that:

s1:/etc/ejabberd/bin# ./erl
Erlang (BEAM) emulator version 5.6.4 [source] [smp:16] [async-threads:0] [kernel-poll:false]

Eshell V5.6.4  (abort with ^G)
1> stringprep:start().
{error,{{case_clause,{error,{open_error,-10}}},
        [{stringprep,init,1},
         {gen_server,init_it,6},
         {proc_lib,init_p,5}]}}
2>

But where should stringprep be?

I can't find the .so on my system - but it should there...

EDIT: It is here:

/etc/ejabberd/lib/ejabberd-2.1.5/priv/linux-x86/lib/stringprep_drv.so

But ejabberd dont like that file, right? ;)

EDIT2: .beam files are all over the install directory - which dir should i choose? The most are in /etc/ejabberd/lib/ejabberd-2.1.5/ebin

Syndicate content