royneary / mod_push

Other
68 stars 19 forks source link

mod_push not getting installed in ejabberd server(ProcessOne) #24

Open k-sathireddy opened 7 years ago

k-sathireddy commented 7 years ago

I am trying to install mod_push module into ejabberd(ProcessOne) server. But i got the following compilation errors:

/Users/.ejabberd-modules/sources/mod_push/ebin/mochijson2.bea#: error writing file: no such file or directory /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:183: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:267: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:284: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:298: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:432: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:525: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:537: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:574: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:630: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:645: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:674: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:731: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:780: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:824: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:878: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:898: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:922: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:941: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1007: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1032: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1055: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1156: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1171: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1210: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1248: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1276: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1303: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1514: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1572: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1642: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1711: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1796: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1879: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1901: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1973: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2042: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2125: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2148: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2170: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2177: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2222: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2232: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2246: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2256: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2269: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2348: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2364: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2376: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2384: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2394: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:2414: syntax error before: '/' /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:31: Warning: undefined callback function depends/2 (behaviour 'gen_mod') /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:145: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:160: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:163: Warning: type auth_data() is unused /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:171: Warning: type push_backend() is unused /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:172: Warning: type push_registration() is unused /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:246: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:657: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:811: Warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead /Users/.ejabberd-modules/sources/mod_push/src/mod_push.erl:1221: Warning: variable 'PubsubHost' is unused /Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_apns.bea#: error writing file: no such file or directory /Users/.ejabberd-modules/sources/mod_push/src/mod_push_apns.erl:251: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /Users/.ejabberd-modules/sources/mod_push/src/mod_push_apns.erl:368: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_gcm.bea#: error writing file: no such file or directory /Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_mozilla.bea#: error writing file: no such file or directory /Users/.ejabberd-modules/sources/mod_push/src/mod_push_mozilla.erl:74: Warning: variable 'DisableArgs' is unused /Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_ubuntu.bea#: error writing file: no such file or directory /Users/.ejabberd-modules/sources/mod_push/src/mod_push_ubuntu.erl:74: Warning: variable 'DisableArgs' is unused /Users/.ejabberd-modules/sources/mod_push/src/mod_push_ubuntu.erl:139: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information. /Users/.ejabberd-modules/sources/mod_push/ebin/mod_push_wns.bea#: error writing file: no such file or directory /Users/.ejabberd-modules/sources/mod_push/src/mod_push_wns.erl:84: Warning: variable 'DisableArgs' is unused /Users/.ejabberd-modules/sources/mod_push/src/mod_push_wns.erl:160: Warning: variable 'ReplyHead' is unused /Users/.ejabberd-modules/sources/mod_push/ebin/node_push.bea#: error writing file: no such file or directory Error: {compilation_failed,"/Users/.ejabberd-modules/sources/mod_push/src/mochijson2.erl"}

Can any one please specify how to install mod_push.Does ProcessOne ejabberd support this feature? If not supported, how to upgrade to royneary/mod_push, because i already changed configuration file of existing ejabberd server. If i install royneary ejabberd server, which changes i have to made?

p5n commented 7 years ago

I guess you use too recent erlang, may be even erlang-20rc.

BesatZardosht commented 7 years ago

Is it compatible with latest version of ejabberd?

arpitvaishnav commented 6 years ago

Will that be installed on Ejabberd (17.11) Erlang version (18?

As I am getting same error . I dont get any better documents than this mod_push module. I need to send push notification to room's users

jithin-pits commented 5 years ago

Any updates dear ones.. anybody tried to fix it. ?

skumarm commented 5 years ago

I am also facing the same issue. Any fixes. ? Please help.

skumarm commented 5 years ago

I got worked this issue and the module installed on my ejabbered server. But the configurations setup on mod_pubsub makes the chat not working. Please give any solution to implement this. Also I have a doubt on this mod_push module ( There is already a built in module with the same name on ejabbered ).

mod_pubsub: host : "push.example.net" nodetree : "virtual" plugins:

ismailmohammed commented 5 years ago

Hello Everyone,

Guys did anyone got the solution I want to implement the same in my ejabbered 18.01.

Let me know this module will work with 18.01 version? Thanks,

weiss commented 5 years ago

Let me know this module will work with 18.01 version?

It won't.

ismailmohammed commented 5 years ago

:(

Thanks for the update. Then how to implement push notifications? As I am using community version. Will this be possible to implement in community version 18.01 \ 18.09?

please help me by giving your valuable time.

Thanks, Md.Ismail

abhiecosmob commented 4 years ago

I got worked this issue and the module installed on my ejabbered server. But the configurations setup on mod_pubsub makes the chat not working. Please give any solution to implement this. Also I have a doubt on this mod_push module ( There is already a built in module with the same name on ejabbered ). the mod_pubsub: host : "push.example.net" nodetree : "virtual" plugins:

  • "push"

Hi, would you provide the solution how you resolve the problem, mod_push.erl:183: syntax error before: '/'