Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

v3.13.6 starting issue #517

Closed
yalh76 opened this issue May 1, 2020 · 8 comments
Closed

v3.13.6 starting issue #517

yalh76 opened this issue May 1, 2020 · 8 comments
Assignees
Labels
Milestone

Comments

@yalh76
Copy link
Contributor

yalh76 commented May 1, 2020

After @alexAubin integrated metronome 3.13.6 in YunoHost, we have an issue starting metronome:

May 01 07:45:16 yh04.yh.yalh.net systemd[1]: Starting LSB: Metronome XMPP Server...
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]: Starting Metronome XMPP Server: metronomelua5.1: error loading module 'net.server_event' from file '/usr/lib/metronome/net/server_event.lua':
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         /usr/lib/metronome/net/server_event.lua:139: unexpected symbol near ';'
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]: stack traceback:
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         [C]: ?
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         [C]: in function '_real_require'
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         /usr/bin/metronome:154: in function 'require'
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         /usr/lib/metronome/net/server.lua:12: in main chunk
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         [C]: in function '_real_require'
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         /usr/bin/metronome:154: in function 'require'
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         /usr/bin/metronome:108: in function 'init_net_server'
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         /usr/bin/metronome:376: in main chunk
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:         [C]: ?
May 01 07:45:16 yh04.yh.yalh.net metronome[2946]:  failed!
May 01 07:45:16 yh04.yh.yalh.net systemd[1]: metronome.service: Control process exited, code=exited status=1
May 01 07:45:16 yh04.yh.yalh.net systemd[1]: Failed to start LSB: Metronome XMPP Server.
May 01 07:45:16 yh04.yh.yalh.net systemd[1]: metronome.service: Unit entered failed state.
May 01 07:45:16 yh04.yh.yalh.net systemd[1]: metronome.service: Failed with result 'exit-code'.

@maranda
Copy link
Owner

maranda commented May 1, 2020

I must've restarted it 20 times without that typo popping out -_-;

@maranda maranda added the bug label May 1, 2020
@maranda maranda added this to the 3.14 milestone May 1, 2020
@maranda maranda closed this as completed in 18b049b May 1, 2020
@maranda
Copy link
Owner

maranda commented May 1, 2020

I'm not sure why but on my system it just doesn't throw a traceback, I don't even...

@yalh76
Copy link
Contributor Author

yalh76 commented May 1, 2020

Well after made the change 18b049b ...

May 01 09:45:17 yh04.yh.yalh.net metronome[2784]: Starting Metronome XMPP Server: metronomelua5.1: error loading module 'net.server_event' from file '/usr/lib/metronome/net/server_event.lua':
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         /usr/lib/metronome/net/server_event.lua:370: unexpected symbol near ';'
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]: stack traceback:
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         [C]: ?
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         [C]: in function '_real_require'
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         /usr/bin/metronome:154: in function 'require'
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         /usr/lib/metronome/net/server.lua:12: in main chunk
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         [C]: in function '_real_require'
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         /usr/bin/metronome:154: in function 'require'
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         /usr/bin/metronome:108: in function 'init_net_server'
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         /usr/bin/metronome:376: in main chunk
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:         [C]: ?
May 01 09:45:17 yh04.yh.yalh.net metronome[2784]:  failed!

but after removing ; Line 370, service starts

@maranda
Copy link
Owner

maranda commented May 1, 2020

Yeah this is the problem apparently
i = function(); end is a valid statement in Lua5.2 while it traces in 5.1

maranda added a commit that referenced this issue May 1, 2020
@maranda
Copy link
Owner

maranda commented May 1, 2020

@yalh76 unfortunately my development/production environments uses Lua 5.2 I didn't expect this to happen.

Metronome 3.13.6 retagged on the last commit :(

@yalh76
Copy link
Contributor Author

yalh76 commented May 1, 2020

well.. seems that YunoHost still use lua 5.1:

root@yh04:~# metronomectl about
Metronome 3.13.6

# Metronome directories
Data directory:         /var/lib/metronome
Plugin directory:       /var/www/jitsi/jitsi-meet-prosody/;/usr/lib/metronome/modules/
Config directory:       /etc/metronome
Source directory:       /usr/lib/metronome

# Lua environment
Lua version:                    Lua 5.1

Lua module search paths:
  /usr/lib/metronome/?.lua
  /usr/local/share/lua/5.1/?.lua
  /usr/local/share/lua/5.1/?/init.lua
  /usr/local/lib/lua/5.1/?.lua
  /usr/local/lib/lua/5.1/?/init.lua
  /usr/share/lua/5.1/?.lua
  /usr/share/lua/5.1/?/init.lua

Lua C module search paths:
  /usr/lib/metronome/?.so
  /usr/local/lib/lua/5.1/?.so
  /usr/lib/x86_64-linux-gnu/lua/5.1/?.so
  /usr/lib/lua/5.1/?.so
  /usr/local/lib/lua/5.1/loadall.so

LuaRocks:               Not installed

# Lua module versions
lfs:            LuaFileSystem 1.6.3
luaevent:       0.4.4
lxp:            LuaExpat 1.3.0
socket:         LuaSocket 3.0-rc1
ssl:            0.6

@yalh76
Copy link
Contributor Author

yalh76 commented May 1, 2020

for information, i'm trying to make jitsi-meet work with metronome at https://github.com/YunoHost-Apps/jitsi_ynh/tree/fix_video
And for now there's something around Bosh metronome that doesn't work and I can't figure what...
But I'm like a Linux beginner and xmpp without knowledge

If you have time and willingness, maybe you could make it works....

@maranda
Copy link
Owner

maranda commented May 1, 2020

Did you try to enable debug logs? See #518 also be ready to update Metronome manually to 3.13.7 there needs to be some changes, you made a little mess between Prosody and Metronome stuff I bet it doesn't work, I'll make a few pull requests to your app as well.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants