SSOWAT : error 14221 lua entry thread aborted: runtime error

Hello
Since this morning, all my nextcloud sync stopped working and I have strange messages in /etc/nginx/mydomain.tld-error.log:

2020/05/10 10:53:24 [error] 14221#14221: *1161 lua entry thread aborted: runtime error: /usr/share/ssowat/config.lua:24: attempt to index local 'conf' (a nil value)
stack traceback:
coroutine 0:
	/usr/share/ssowat/config.lua: in function 'get_config'
	/usr/share/ssowat/log.lua:11: in main chunk
	[C]: in function 'require'
	/usr/share/ssowat/helpers.lua:12: in main chunk
	[C]: in function 'require'
	/usr/share/ssowat/access.lua:23: in function </usr/share/ssowat/access.lua:1>, client: 192.168.0.254, server: mydomain.tld, request: "PROPFIND /nextcloud/remote.php/dav/files/nicolas/ HTTP/1.1", host: " mydomain.tld"
2020/05/10 10:53:24 [error] 14221#14221: *1165 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:26: loop or previous error loading module 'log'
stack traceback:
coroutine 0:
	[C]: in function 'require'
	/usr/share/ssowat/access.lua:26: in function </usr/share/ssowat/access.lua:1>, client: 192.168.0.254, server:  mydomain.tld, request: "GET /yunohost/api/messages HTTP/1.1", host: " mydomain.tld"
2020/05/10 10:53:24 [error] 14221#14221: *1162 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:26: loop or previous error loading module 'log'
stack traceback:
coroutine 0:
	[C]: in function 'require'
	/usr/share/ssowat/access.lua:26: in function </usr/share/ssowat/access.lua:1>, client: 192.168.0.254, server:  mydomain.tld, request: "GET /yunohost/api/apps?installed&locale=fr HTTP/2.0", host: " mydomain.tld", referrer: "https:// mydomain.tld/yunohost/admin/"

and it goes on and on…
The only action I did was installing “Shell in a box” app (which ended with a strange that like “internal server error” that was not captured in any log)
When I look at the log, the only issue I detect is this one:

root@YunoHost:~ # yunohost log display 20200510-085151-permission_create-shellinabox
description: Créer permission  'shellinabox'
log_path: /var/log/yunohost/categories/operation/20200510-085151-permission_create-shellinabox.log
logs: 
  - 2020-05-10 10:51:51,515: DEBUG - The permission database has been resynchronized
  - 2020-05-10 10:51:53,695: DEBUG - status file not found for 'shellinabox'
  - Traceback (most recent call last):
  -   File "/usr/lib/moulinette/yunohost/app.py", line 2239, in _get_app_status
  -     with open(app_setting_path + '/status.json') as f:
  - IOError: [Errno 2] No such file or directory: u'/etc/yunohost/apps/shellinabox/status.json'
  - 2020-05-10 10:51:53,792: DEBUG - cannot get app setting 'update_time' for 'shellinabox' ('update_time')
  - 2020-05-10 10:51:55,162: DEBUG - La configuration de SSOwat générée
  - 2020-05-10 10:51:55,245: DEBUG - No default hook for action 'post_app_addaccess' in /usr/share/yunohost/hooks/
  - 2020-05-10 10:51:55,250: DEBUG - No custom hook for action 'post_app_addaccess' in /etc/yunohost/hooks.d/
  - 2020-05-10 10:51:55,253: DEBUG - Permission 'shellinabox.main' créée
metadata: 
  args: 
    allowed: all_users
    permission: shellinabox.main
    url: /
  ended_at: 2020-05-10 10:51:55
  error: None
  operation: permission_create
  related_to: 
    - app
    - shellinabox
  started_at: 2020-05-10 10:51:51
  success: True
metadata_path: /var/log/yunohost/categories/operation/20200510-085151-permission_create-shellinabox.yml
name: 20200510-085151-permission_create-shellinabox

Any idea?

Well, de-installing Shell in a box solve the issue, I will open an issue on github.

Hm that looks like an issue in ssowat …

Can you tell which version of ssowat you’re running with yunohost --version ?

Last stable:

root@YunoHost:~ # yunohost --version
yunohost:
  repo: stable
  version: 3.7.1.3
yunohost-admin:
  repo: stable
  version: 3.7.1.1
moulinette:
  repo: stable
  version: 3.7.1.1
ssowat:
  repo: stable
  version: 3.7.1.1

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.