Unable To Get JS, CSS, etc

My YunoHost server

Hardware: KVM VPS
YunoHost version: 4.0.3
I have access to my server : SSH, Keyboard, VNC
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

https://pastebin.com/RUxt6Zme - contains the errors

This error prevents any loading of JS or CSS assets without me refreshing the page up to hundreds of times. It affects all of my apps and has exited since version 4.

Well it’s really weird that you’re the only one having this issue showing up to the point of breaking things …

Can you tell if :

  • you’re using a custom theme (c.f. the theming documentation)
  • you have some non-standard things in /usr/share/ssowat/portal/assets/themes/
  • does running this command throws any error ? :
find "/usr/share/ssowat/portal/assets/themes/" -type f -exec realpath --relative-to "/usr/share/ssowat/portal/assets/themes/" {} \;

I’m using the default theme with no non-standard theme in the themes area, and I used the find cmd.

And it didn’t show any error ?

No errors, it just listed the contents of the themes.

Okay so let’s try to open a lua shell by just running lua in a console, then copypaste the 5 lines :

directory = "/usr/share/ssowat/portal/assets/themes/"
pfile = io.popen('find "'..directory..'" -type f -exec realpath --relative-to "'..directory..'" {} \\;')
for filename in pfile:lines() do
    print(filename)
end

and let’s see if that throws any error…

No errors as well, same/similar output.

And do you have any special setting in /etc/ssowat/conf.json.persistent ? (For example about a theme key ?)

It’s set to default, I had a theme at one point before 4.0 but had removed it and changed it to default.

So you have "theme": "default" in that file ? What if you remove that key/value entirely ? (Edit: and maybe do a systemctl reload nginx, just to be sure …)

This seems to have fixed the issue for now. I’ll update this post if the issue occurs again.

This issue has returned, nothing relating themes has been changed.

This issue still persists.

Wokay great

Thing is, since you reported the issue of not being able to load some assets, you assumed that it’s coming from that error … I saw that error as well on other server and doesn’t seem to prevent assets from loading. And so far you’re the only one reporting that kind of issue. Not to mention that it seems to randomly go away and come back.

Not saying that the SSOwat issue shouldn’t be fixed, but it sounds like it’s not the root cause of your issue. So I’d be really interested if you can look at other logs and/or provide a way to reproduce the issue somehow (e.g. sharing some url of your server or idk)

I’ve checked the error logs and it’s always that a task is inturrupted. It’s seemed to happen on any of my apps that rely on javascript as a backend, but it can also affect CSS. Things like Rainloop and Nextcloud have been most heavily affected. The error below is really all that I’ve been able to find, but the server keeps having internal errors and these are the only errorrs associated.

2020/08/28 21:50:49 [error] 19695#19695: *34750 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
	[C]: in function '(for generator)'
	/usr/share/ssowat/access.lua:276: in function 'scandir'
	/usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
	/usr/share/ssowat/access.lua:321: in function </usr/share/ssowat/access.lua:1>, client: 162.158.78.191, server: panel.rydecorp.com, request: "GET /mail/app/rainloop/v/1.12.1/static/js/min/boot.min.js?community HTTP/1.1", host: "panel.rydecorp.com", referrer: "https://panel.rydecorp.com/mail/app/"
2020/08/28 21:50:49 [error] 19695#19695: *34751 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
	[C]: in function '(for generator)'
	/usr/share/ssowat/access.lua:276: in function 'scandir'
	/usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
	/usr/share/ssowat/access.lua:331: in function </usr/share/ssowat/access.lua:1>, client: 172.69.63.204, server: panel.rydecorp.com, request: "GET /ynhtheme/custom_overlay.css HTTP/1.1", host: "panel.rydecorp.com", referrer: "https://panel.rydecorp.com/mail/app/"
2020/08/28 22:14:10 [error] 19695#19695: *34929 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
	[C]: in function '(for generator)'
	/usr/share/ssowat/access.lua:276: in function 'scandir'
	/usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
	/usr/share/ssowat/access.lua:331: in function </usr/share/ssowat/access.lua:1>, client: 162.158.74.24, server: panel.rydecorp.com, request: "GET /ynhtheme/custom_overlay.css HTTP/1.1", host: "panel.rydecorp.com", referrer: "https://panel.rydecorp.com/mail/app/"
2020/08/28 22:14:10 [error] 19695#19695: *34931 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
	[C]: in function '(for generator)'
	/usr/share/ssowat/access.lua:276: in function 'scandir'
	/usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
	/usr/share/ssowat/access.lua:321: in function </usr/share/ssowat/access.lua:1>, client: 162.158.75.37, server: panel.rydecorp.com, request: "GET /mail/app/rainloop/v/1.12.1/static/js/min/boot.min.js?community HTTP/1.1", host: "panel.rydecorp.com", referrer: "https://panel.rydecorp.com/mail/app/"
2020/08/29 07:18:11 [error] 19695#19695: *35462 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
	[C]: in function '(for generator)'
	/usr/share/ssowat/access.lua:276: in function 'scandir'
	/usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
	/usr/share/ssowat/access.lua:321: in function </usr/share/ssowat/access.lua:1>, client: 162.158.78.191, server: panel.rydecorp.com, request: "GET /mail/app/rainloop/v/1.12.1/static/js/min/boot.min.js?community HTTP/1.1", host: "panel.rydecorp.com", referrer: "https://panel.rydecorp.com/mail/app/"
2020/08/29 07:18:11 [error] 19695#19695: *35461 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
	[C]: in function '(for generator)'
	/usr/share/ssowat/access.lua:276: in function 'scandir'
	/usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
	/usr/share/ssowat/access.lua:321: in function </usr/share/ssowat/access.lua:1>, client: 172.69.63.16, server: panel.rydecorp.com, request: "GET /mail/app/rainloop/v/1.12.1/static/css/app.min.css?community HTTP/1.1", host: "panel.rydecorp.com", referrer: "https://panel.rydecorp.com/mail/app/"
2020/08/29 07:18:11 [error] 19695#19695: *35460 lua entry thread aborted: runtime error: /usr/share/ssowat/access.lua:276: Interrupted system call
stack traceback:
coroutine 0:
	[C]: in function '(for generator)'
	/usr/share/ssowat/access.lua:276: in function 'scandir'
	/usr/share/ssowat/access.lua:303: in function 'serveYnhpanel'
	/usr/share/ssowat/access.lua:331: in function </usr/share/ssowat/access.lua:1>, client: 172.69.63.204, server: panel.rydecorp.com, request: "GET /ynhtheme/custom_overlay.css HTTP/1.1", host: "panel.rydecorp.com", referrer: "https://panel.rydecorp.com/mail/app/"```

This issue is still persisting.

Is there anywhere I could look for more information on this error?

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