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

Getting message "Please enable javascript" on login page #16

Open
Rubonnek opened this issue Oct 4, 2022 · 14 comments
Open

Getting message "Please enable javascript" on login page #16

Rubonnek opened this issue Oct 4, 2022 · 14 comments

Comments

@Rubonnek
Copy link

Rubonnek commented Oct 4, 2022

Describe the bug

Getting message "Please enable javascript" on login page and I'm unable to access the Cockpit UI.

Context

  • Hardware: virtualized through QEMU
  • YunoHost version:
yunohost: 
  repo: stable
  version: 11.0.9.15
yunohost-admin: 
  repo: stable
  version: 11.0.10
moulinette: 
  repo: stable
  version: 11.0.9
ssowat: 
  repo: stable
  version: 11.0.9
  • 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

Steps to reproduce

  • *If you performed a command from the CLI, the command itself is enough:
    sudo yunohost app install cockpit
  • Attempt to access cockpit through URL where it was installed

Expected behavior

I would be greeted by the login page

Logs

Oct 04 18:40:18 mydomain.tld cockpit-ws[4776]: cockpit-ws: couldn't load configuration file: /etc/cockpit/cockpit.conf: Permission denied
Oct 04 18:45:12 mydomain.tld cockpit-ws[5195]: cockpit-ws: Failed to open certificate file /run/cockpit/tls/e3b0c44298fc1c149afbf4c8996fb92427ae41e4>

If applicable and useful, add screenshots to help explain your problem.

Possible fix / workaround

I was able to access Cockpit's login page after executing:

sudo chmod +r /etc/cockpit/cockpit.conf

@vinylourson
Copy link

Had the same issue after a fresh install.

Running sudo chmod +r /etc/cockpit/cockpit.conf did fix the issue for me as well.

@thomascwells
Copy link

Also fixed the issue for me.

@valterbarreira
Copy link

I'm still getting the javascript error, even after running that command. Fresh install on a subdomain.

@joeldebruijn
Copy link

Got the same error, checked diagnosis and services, Cockpit service stops every time after restarting the service.

@Graninius
Copy link

Had the same issue (fresh installed in subpath) but the command fixed it.

@joeldebruijn
Copy link

Had the same issue after a fresh install.

Running sudo chmod +r /etc/cockpit/cockpit.conf did fix the issue for me as well.

I'm fairly new to this, but I understand chmod + r grants read permissions.
In the context of Yuno, does this mean the "cockpit" systemuser needs to get reading permissons?
Because this command didnt work for me out of the box.

@aarontrom
Copy link

I do have the same issue, but that command didn't solve the problem. Does anyone have another idea?

@joeldebruijn
Copy link

joeldebruijn commented Jan 19, 2023

After a clean cockpit install and using that command the permissions change from:

-r--r----- 1 root cockpit-ws cockpit.conf to

-r--r--r-- 1 root cockpit-ws cockpit.conf

After restarting the cockpit service I still get the same message.

@jcn50
Copy link

jcn50 commented Aug 12, 2023

@ericgaspar why are those little bugs still not fixed after so long?...

@ericgaspar
Copy link
Member

@jcn50 Why ping me? I'm not even the maintainer of this app. As far as i know, you are as responsible as me to fix these little bugs

@jcn50
Copy link

jcn50 commented Aug 14, 2023

@ericgaspar who is the maintainer? Je comprends pas moi~

@ericgaspar
Copy link
Member

who is the maintainer?

Toi, moi, quelqu'un, souvent personne... en l'occurrence pour cockpit, le mainteneur était liberodark mais il ne semble plus actif... Il faut comprendre que les contributions sont souvent sporadiques et limitées par le temps de chacun. Donc si tu as identifié un bug n’hésite pas à faire une PR. (pour info, le catalogue contient plus de 400 apps pour seulement une poignée de volontaires...)

@orhtej2
Copy link
Contributor

orhtej2 commented Sep 14, 2023

This issue should have been fixed with bcb7e4a, can you try upgrading normally and confirm if it helps?

@jcn50
Copy link

jcn50 commented Jun 26, 2024

@orhtej2 :
I am still having issues, getting 502 BAD GATEWAY on those:

https://$SUBDOMAIN/cockpit/static/login.js
https://$SUBDOMAIN/cockpit/static/login.css
https://$SUBDOMAIN/cockpit/static/branding.css

After some hours later:

I found out that the installation on a subdomain does not work, it conflicts with the Yunohost SSO~ so it must be installed in a subdirectory, for example: /run
So for those with the APP already installed, just edit your installation to do add a path (like /run for example) using the Change the access URL of this application (domain and/or path) setting/operations!
Select Cockpit as the default app from the (sub)domain options~.

I don't know why but it was working before on the root of the subdomain~ I can't remember what I did to make it work...

Another problem: I am getting a Limited Access like #17 which I found a fix for~~

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

10 participants