processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6.09k stars 1.51k forks source link

support erlang 19 #1186

Closed bobnino closed 8 years ago

bobnino commented 8 years ago

What version of ejabberd are you using?

16 ejabbard and 19erlang

What operating system (version) are you using?

ubuntu 14.04

How did you install ejabberd (source, package, distribution)?

source

What did not work as expected? Are there error messages in the log?

=> ejabberd (compile)

=ERROR REPORT==== 4-Jul-2016::09:31:32 ===
Error in process <0.36.0> with exit value:
{{case_clause,[]},
 [{code_server,split_base,1,[{file,"code_server.erl"},{line,639}]},
  {code_server,archive_subdirs,1,[{file,"code_server.erl"},{line,825}]},
  {code_server,do_insert_name,3,[{file,"code_server.erl"},{line,819}]},
  {code_server,do_add,4,[{file,"code_server.erl"},{line,739}]},
  {code_server,add_path,4,[{file,"code_server.erl"},{line,714}]},
  {code_server,handle_call,3,[{file,"code_server.erl"},{line,255}]},
  {code_server,loop,1,[{file,"code_server.erl"},{line,150}]}]}
2016-07-04 09:31:33 std_info            
    application: kernel
    exited: shutdown
    type: permanent
{"Kernel pid terminated",application_controller,"{application_terminated,kernel,shutdown}"}

Crash dump is being written to: erl_crash.dump...done
Kernel pid terminated (application_controller) ({application_terminated,kernel,shutdown})
make: *** [deps/.built] Error 1

What was the unexpected behavior? What was the expected result?

badlop commented 8 years ago

ejabberd 16.06 and older didn't compile correctly with Erlang R19. Some fixes were committed past week to ejabberd git. Does your crash still happen using ejabberd from git?

bobnino commented 8 years ago

ya i concluded that after some research, however i did use git to get and compile ejab 16.06 and erl19 it doesnt work, so i reinstalled erl17.03 instead and now it compiled fine.

cromain commented 8 years ago

i think we can close this as we new support erlang 19.

marcphilipp commented 8 years ago

This still happens with 16.09. Please re-open this issue.

bobnino commented 8 years ago

Yes as you read above 16.09 don't work so you need to upgrade your erlang Marc.

marcphilipp commented 8 years ago

I tried to compile ejabberd 16.09 with Erlang/OTP 19.0.3 and ran into the exact same error message. However, according to @cromain's comment this should work, shouldn't it?

bobnino commented 8 years ago

Yes your right but what I'm saying is you can just downgrade to erlang 17.03 or wait and see what croman suggests

badlop commented 8 years ago

I installed Debian unstable, which has Erlang/OTP 19.1, and ejabberd from git. It compiles and runs correctly:

$ /sbin/ejabberdctl live
--------------------------------------------------------------------

IMPORTANT: ejabberd is going to start in LIVE (interactive) mode.
All log messages will be shown in the command shell.
You can interact with the ejabberd node if you know how to use it.
Please be extremely cautious with your actions,
and exit immediately if you are not completely sure.

To exit this LIVE mode and stop ejabberd, press:
  q().  and press the Enter key

--------------------------------------------------------------------
To bypass permanently this warning, add to ejabberdctl.cfg the line:
  EJABBERD_BYPASS_WARNINGS=true
Press return to continue

Erlang/OTP 19 [erts-8.1] [source] [async-threads:10] [kernel-poll:true]

Eshell V8.1  (abort with ^G)
(ejabberd@localhost)1> 22:18:49.052 [info] Application lager started on node ejabberd@localhost
22:18:49.086 [info] Application crypto started on node ejabberd@localhost
22:18:49.233 [info] Application sasl started on node ejabberd@localhost
22:18:49.340 [info] Application asn1 started on node ejabberd@localhost
22:18:49.340 [info] Application public_key started on node ejabberd@localhost
22:18:49.446 [info] Application ssl started on node ejabberd@localhost
22:18:49.466 [info] Application fast_yaml started on node ejabberd@localhost
22:18:49.605 [info] Application fast_tls started on node ejabberd@localhost
22:18:49.659 [info] Application fast_xml started on node ejabberd@localhost
22:18:49.712 [info] Application stringprep started on node ejabberd@localhost
22:18:49.745 [info] Application cache_tab started on node ejabberd@localhost
22:18:50.386 [info] Application mnesia started on node ejabberd@localhost
22:18:51.838 [info] Application inets started on node ejabberd@localhost
22:18:53.770 [info] FQDN used to check DIGEST-MD5 SASL authentication: <<"debian">>
22:18:53.933 [warning] module 'mod_mam' is recommended for module 'mod_muc' but is not found in the config
22:18:54.720 [info] Application iconv started on node ejabberd@localhost
22:18:54.730 [info] Reusing listening port for {5222,{0,0,0,0},tcp}
22:18:54.736 [info] Reusing listening port for {5269,{0,0,0,0},tcp}
22:18:54.737 [info] Reusing listening port for {5280,{0,0,0,0},tcp}
22:18:54.738 [info] ejabberd 16.09.9 is started in the node ejabberd@localhost
22:18:54.738 [info] Application ejabberd started on node ejabberd@localhost
debalance commented 8 years ago

I've had no problems building the new ejabberd 16.09 Debian package with Erlang 19 either.

bobnino commented 8 years ago

We are referring to none Debian builds.

marcphilipp commented 8 years ago

I used the official Docker image for Erlang which is also Debian (jessie) based in version 19.0.3 and it didn't work. However, I can confirm that it works with 19.1 which I've tries on CentOS. Consider this solved from my side. Thanks for checking!

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.