Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fresh install YunoHost and invoiceninja5 "Something Went Wrong" #257

Open
Sparkxxx opened this issue Mar 26, 2024 · 1 comment
Open

Fresh install YunoHost and invoiceninja5 "Something Went Wrong" #257

Sparkxxx opened this issue Mar 26, 2024 · 1 comment

Comments

@Sparkxxx
Copy link

Describe the bug

Fresh Yunohost install, updated, all good, no email configured, no other apps installed. These steps was repetead multiple times.

Installed InvoiceNinja 5 in public mode and when trying the first login an alert pops out on the first screen:
"Something Went Wrong" popup message!

Login works but no changes can be done to anything, all the time "Something Went Wrong" popping out.

After a while I get logged out and can't log in again because of "Invalid secret" popup message. Login worked the step above and nothing has been changed since.

Thank you.

Context

  • Hardware: Proxmox LXD container with Debian 11 up to date.
  • YunoHost version: 11.2.10.3 (stable)
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: invoiceninja5 5.8.37~ynh2

Steps to reproduce

Fresh Yunohost install, updated, no other apps installed. Install invoiceninja5 5.8.37~ynh2 on it's own domain.

Logs

When an operation fails, YunoHost provides a simple way to share the logs.
https://paste.yunohost.org/raw/tehorovoqu

Nginx access logs and error logs

10.222.0.254 - - [26/Mar/2024:13:37:53 +0000] "GET /login HTTP/1.0" 200 26784 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:37:53 +0000] "GET /ynh_overlay.css HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:37:53 +0000] "GET /ynhtheme/custom_overlay.css HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:37:53 +0000] "GET /ynh_portal.js HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:37:53 +0000] "GET /ynhtheme/custom_portal.js HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:37:53 +0000] "GET /ynh_overlay.css HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:37:53 +0000] "GET /ynhtheme/custom_overlay.css HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:38:09 +0000] "POST /api/v1/login HTTP/1.0" 403 40 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:38:09 +0000] "GET /login HTTP/1.0" 200 26784 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:38:09 +0000] "GET /ynh_overlay.css HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:38:09 +0000] "GET /ynh_portal.js HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:38:09 +0000] "GET /ynhtheme/custom_overlay.css HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:38:09 +0000] "GET /ynhtheme/custom_portal.js HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:38:10 +0000] "GET /ynh_overlay.css HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
10.222.0.254 - - [26/Mar/2024:13:38:10 +0000] "GET /ynhtheme/custom_overlay.css HTTP/1.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
^C
root@yuno:~# tail -f /var/log/nginx/DOMAIN.TLD-error.log 
2024/03/26 13:37:53 [error] 537#537: *186 open() "/usr/share/nginx/htmlindex.php/ynh_portal.js" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynh_portal.js HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:37:53 [error] 537#537: *187 open() "/usr/share/nginx/htmlindex.php/ynhtheme/custom_portal.js" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynhtheme/custom_portal.js HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:37:53 [error] 537#537: *188 open() "/usr/share/nginx/htmlindex.php/ynh_overlay.css" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynh_overlay.css HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:37:53 [error] 537#537: *189 open() "/usr/share/nginx/htmlindex.php/ynhtheme/custom_overlay.css" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynhtheme/custom_overlay.css HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:38:09 [error] 537#537: *194 open() "/usr/share/nginx/htmlindex.php/ynh_overlay.css" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynh_overlay.css HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:38:09 [error] 537#537: *195 open() "/usr/share/nginx/htmlindex.php/ynh_portal.js" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynh_portal.js HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:38:09 [error] 537#537: *196 open() "/usr/share/nginx/htmlindex.php/ynhtheme/custom_overlay.css" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynhtheme/custom_overlay.css HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:38:09 [error] 537#537: *197 open() "/usr/share/nginx/htmlindex.php/ynhtheme/custom_portal.js" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynhtheme/custom_portal.js HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:38:10 [error] 537#537: *198 open() "/usr/share/nginx/htmlindex.php/ynh_overlay.css" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynh_overlay.css HTTP/1.0", host: "DOMAIN.TLD"
2024/03/26 13:38:10 [error] 537#537: *199 open() "/usr/share/nginx/htmlindex.php/ynhtheme/custom_overlay.css" failed (2: No such file or directory), client: 10.222.0.254, server: DOMAIN.TLD, request: "GET /ynhtheme/custom_overlay.css HTTP/1.0", host: "DOMAIN.TLD"
@rndmh3ro
Copy link
Collaborator

Hm, I just tried a new install and I did not see any errors that you mentioned.

  • Can you please share the nginx-configuration for invoiceninja? Should probably be here: /etc/nginx/conf.d/domain2.tld.d/invoiceninja5.conf
  • Can you please share the contents of the logs in /var/www/invoiceninja5/storage/logs/?

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

No branches or pull requests

2 participants