I have access to my server : Through SSH no other way Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes ,
sudo yunohost settings set security.nginx.compatibility -v modern
sudo yunohost settings set security.ssh.compatibility -v modern
sudo yunohost settings set security.ssh.port -v XXX
Description of my issue
Http access imposible neither to user panel, admin panel or http-API
nginx or ssowat seems to be brokenn.
and no user can connect with element to synapse (from android as from web )
and calendar, contact and tasks can not be synced througth Nextcloud webdev.
diagnose tellme that no web ports (80 or 443) are reachable.
email works. and others ports
is there any proxy or thing like that aside nginx ?
I found that in the browser console:
GEThttps://home.3cmr.fr/
Content Security Policy: This site (https://home.3cmr.fr) has a Report-Only policy without a report URI. CSP will not block and cannot report violations of this policy.
Content Security Policy: This site (https://home.3cmr.fr) has a Report-Only policy without a report URI. CSP will not block and cannot report violations of this policy.
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.
on the server :
tail -f /var/log/nginx/home.3cmr.fr-error.log
2021/11/30 00:06:34 [error] 22853#22853: *761 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:23: attempt to call field ârefresh_configâ (a nil value)
stack traceback:
coroutine 0:
/usr/share/ssowat/access.lua: in function </usr/share/ssowat/access.lua:1>, client: 181.202.32.132, server: home.3cmr.fr, request: âGET / HTTP/2.0â, host: âhome.3cmr.frâ
tail -f /var/log/nginx/matrx.3cmr.fr-error.log
2021/11/30 00:08:55 [error] 22853#22853: *699 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:23: attempt to call field ârefresh_configâ (a nil value)
stack traceback:
coroutine 0:
/usr/share/ssowat/access.lua: in function </usr/share/ssowat/access.lua:1>, client: ::1, server: matrx.3cmr.fr, request: âGET /_matrix/client/r0/account/whoami?user_id=%40whatsappbot%3A3cmr.fr HTTP/2.0â, host: âmatrx.3cmr.frâ
2021/11/30 00:08:56 [error] 22853#22853: *702 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:23: attempt to call field ârefresh_configâ (a nil value)
stack traceback:
coroutine 0:
/usr/share/ssowat/access.lua: in function </usr/share/ssowat/access.lua:1>, client: 181.202.33.41, server: matrx.3cmr.fr, request: âGET /_matrix/client/versions HTTP/2.0â, host: âmatrx.3cmr.frâ
2021/11/30 00:08:57 [error] 22853#22853: *702 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:23: attempt to call field ârefresh_configâ (a nil value)
stack traceback:
coroutine 0:
/usr/share/ssowat/access.lua: in function </usr/share/ssowat/access.lua:1>, client: 181.202.33.41, server: matrx.3cmr.fr, request: âGET /_matrix/client/versions HTTP/2.0â, host: âmatrx.3cmr.frâ
Sounds related to /etc/ssowat/conf.json or /etc/ssowat/conf.json.persistent ⌠Could it be that you tweaked (or deleted) one of those files before the issue started to appear
Actually, what did you do right before the error started to appear âŚ
Yes now i remember I tryed to modify /etc/ssowat/conf.json but back to the original.
Can i compare origninal and mine.
And etc/ssowat/conf.json.persistent is empty
I tried it before but did nothing
now i run yunohost app ssowatconf --debug and not working
395 DEBUG initializing base actions map parser for cli
402 DEBUG loading actions map namespace 'yunohost'
411 DEBUG building parser...
450 DEBUG building parser took 0.038s
453 DEBUG acquiring lock...
508 DEBUG lock has been acquired
547 DEBUG loading python module yunohost.app took 0.038s
548 DEBUG processing action [916.1]: yunohost.app.ssowatconf with args={}
740 DEBUG initializing ldap interface
1210 DEBUG action [916.1] executed in 0.661s
1213 DEBUG lock has been released
Traceback (most recent call last):
File "/usr/bin/yunohost", line 72, in <module>
parser=parser
File "/usr/lib/moulinette/yunohost/__init__.py", line 25, in cli
ret = moulinette.cli(args, output_as=output_as, timeout=timeout, top_parser=parser)
File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 131, in cli
args, output_as=output_as, timeout=timeout
File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 496, in run
ret = self.actionsmap.process(args, timeout=timeout)
File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 597, in process
return func(**arguments)
File "/usr/lib/moulinette/yunohost/app.py", line 1465, in app_ssowatconf
translate_legacy_rules_in_ssowant_conf_json_persistent()
File "/usr/lib/moulinette/yunohost/utils/legacy.py", line 191, in translate_legacy_rules_in_ssowant_conf_json_persistent
if not any(legacy_rule in persistent for legacy_rule in legacy_rules):
File "/usr/lib/moulinette/yunohost/utils/legacy.py", line 191, in <genexpr>
if not any(legacy_rule in persistent for legacy_rule in legacy_rules):
TypeError: argument of type 'NoneType' is not iterable
humm ok i put {} in sowat conf persistant the error disapeard running yunohost app ssowatconf --debug
but 500 Internal Server Error nginx is always present.
382 DEBUG initializing base actions map parser for cli
388 DEBUG loading actions map namespace 'yunohost'
397 DEBUG building parser...
437 DEBUG building parser took 0.039s
440 DEBUG acquiring lock...
507 DEBUG lock has been acquired
547 DEBUG loading python module yunohost.app took 0.040s
548 DEBUG processing action [1280.1]: yunohost.app.ssowatconf with args={}
746 DEBUG initializing ldap interface
1197 DEBUG SSOwat configuration regenerated
1199 DEBUG action [1280.1] executed in 0.650s
1200 DEBUG lock has been released