Images upload with XMPP / Metronome


#21

Thanks

https://ports.yunohost.org/ gives me green lieghts

https://www.geoips.com/de/tools/check-ports gives me the info that the porst are blocked

http_interfaces = { “127.0.0.1”, “::1” }
to 
http_interfaces = { “*” }

did not solve the problem - still can´t send images :frowning:
Any idea ?


#22

What do you see when visiting http://upload.yourdomain.tld:5290?
And what do the log (/var/log/metronome/metronome.log) say?


#23

thanks for your help massimilliano,

http://upload.yourdomain.tld:5290 does give me NO conection :-(( - not working

in the error log I found this:

Feb 08 14:00:21 modulemanager	error	Error initializing module 'websocket' on 'upload.yourdomain.tld': /usr/bin/metronome:149: loop or previous error loading module 'util.websocket'
stack traceback:
	/usr/lib/metronome/core/modulemanager.lua:30: in function </usr/lib/metronome/core/modulemanager.lua:30>
	[C]: in function '_real_require'
	/usr/bin/metronome:149: in function 'require'
	/usr/lib/metronome/modules/mod_websocket.lua:20: in main chunk
	(tail call): ?
	[C]: in function 'xpcall'
	/usr/lib/metronome/core/modulemanager.lua:30: in function 'pcall'
	/usr/lib/metronome/core/modulemanager.lua:163: in function 'do_load_module'
	/usr/lib/metronome/core/modulemanager.lua:240: in function 'load'
	/usr/lib/metronome/core/modulemanager.lua:61: in function '?'
	/usr/lib/metronome/util/events.lua:67: in function 'fire_event'
	/usr/lib/metronome/core/hostmanager.lua:119: in function 'activate'
	/usr/lib/metronome/core/hostmanager.lua:51: in function '?'
	/usr/lib/metronome/util/events.lua:67: in function 'fire_event'
	/usr/bin/metronome:288: in function 'prepare_to_start'
	/usr/bin/metronome:384: in main chunk
	[C]: ?

Does this tell you something?


#24

If you folks want to dig in this issue, you might want to read :


#25

i see now you added host name in yunohost that causes conflict, so you need to remove the file /etc/metronome/conf.d/upload.yourdomain.tld.cfg.lua
or at least move it with
mv /etc/metronome/conf.d/upload.yourdomain.tld.cfg.lua /etc/metronome/conf.d/upload.yourdomain.tld.cfg.lua.backup

And if you want to use https then you need to edit as follow:
Host " * "
https_ports = {}
https_ports = { 5291 }
https_interfaces = { " * " }

Component “upload.yourdomain.tld” “http_upload”
name = “yourdomain.tld Sharing Service”
ssl = { key = “/etc/yunohost/certs/upload.yourdomain.tld/key.pem”, certificate = “/etc/yunohost/certs/upload.yourdomain.tld/crt.pem” }
http_file_size_limit = 12 * 1024 * 1024 --without the spaces before and after the *
http_file_quota = 60 * 1024 * 1024 --without the spaces before and after the *
http_file_allowed_mime_types = { [“txt”] = “text/plain”, [“png”] = “image/png”, [“pdf”] = “application/pdf”, [“jpg”] = “image/jpeg”, [“jpeg”] = “impage/jpeg”, [“gif”] = “image/gif”, [“mp4”] = “video/mp4”, [“mpeg”] = “video/mpeg”, [“m4a”] = “audio/m4a”, [“ogg”] = “application/ogg”}


#26

massimiliano

/etc/metronome/conf.d/upload.yourdomain.tld.cfg.lua does not exist on my yunohost

do you mean i should creat this file?

also the folder
/etc/yunohost/certs/upload.yourdomain.tld/
does not existed on my yunohost


#27

If the file is not there is ok then.
That also mean that the cert can’t be there either witch means you can only use http and not https for file upload.


#28

so if i have xmpp installed on a domain which runs https i have no chance - right ?


#29

It uses different port so it doesn’t matter.