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

Broken installation via webadmin, broken LDAP / Login #65

Closed
your-sudden-death opened this issue Apr 4, 2021 · 6 comments
Closed

Broken installation via webadmin, broken LDAP / Login #65

your-sudden-death opened this issue Apr 4, 2021 · 6 comments
Assignees

Comments

@your-sudden-death
Copy link

your-sudden-death commented Apr 4, 2021

Describe the bug

When trying to install the App via the Web admin panel, it freezes before I can click Install, the ask selections for domain and admin user cannot be accessed, it only shows a loading indicator forever.
Also, when trying to install via CLI (which works) and then trying to login, no user is able to login. grav.user and grav.admin permissions are given to a user, but when trying to login, it just rejects with "login failed.."
There are no meaningful logs in /var/www/grav/user/logs/grav.log or nginx or php-fpm. The normal behaviour that the grav LDAP plugin logs access rejections to this log is not present, the log only contains infos about flex-objects.

The app is broken because of these issues and can not be used

Context

  • Hardware: Contabo VPS L SSD
  • YunoHost version: 4.1.7.4 (stable)
  • I have access to my server: SSH + Webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?: no
    • If yes, please explain:
  • Using, or trying to install package version/branch: latest (1.7.7)
  • If upgrading, current package version: -

Steps to reproduce

  • Install via cli
    sudo yunohost app install grav
  • Assign grav.admin and grav.user perms to user/group
  • Try to login with the user
  • Fails wiith "Failed to login..."
  • No logs are produced of the incident

Expected behavior

Installation via Webadmin works
Login with authorized user works

Logs

Logs are empty! No Grav-related info/error messages produced, apart from the nginx 200 entries in the access logs, which are not very helpful

@Aeris1One
Copy link
Member

Aeris1One commented Apr 4, 2021

Seems to be a drawback of 380d91c

@tituspijean
Copy link
Member

tituspijean commented Apr 5, 2021

It seems the LDAP plugin is not installed anymore during the installation... Running cd /var/www/grav then sudo -u grav bin/gpm install login-ldap -n solves the issue.

The current method, does not work:

2021-04-05 11:41:58,262: DEBUG - + sudo -u grav php7.3 /var/www/grav/bin/gpm install login-ldap --all-yes --no-interaction
2021-04-05 11:41:58,362: DEBUG - FATAL: Must be run from ROOT directory of Grav!

@tituspijean tituspijean self-assigned this Apr 5, 2021
@tituspijean tituspijean mentioned this issue Apr 5, 2021
@Aeris1One
Copy link
Member

Aeris1One commented Apr 6, 2021

When trying to install the App via the Web admin panel, it freezes before I can click Install, the ask selections for domain and admin user cannot be accessed, it only shows a loading indicator forever.

Seems to be a problem with manifest handling in webadmin, right ?

@taranta-babu
Copy link

taranta-babu commented Apr 14, 2021

It seems the LDAP plugin is not installed anymore during the installation... Running cd /var/www/grav then sudo -u grav bin/gpm install login-ldap -n solves the issue.

The current method, does not work:

2021-04-05 11:41:58,262: DEBUG - + sudo -u grav php7.3 /var/www/grav/bin/gpm install login-ldap --all-yes --no-interaction
2021-04-05 11:41:58,362: DEBUG - FATAL: Must be run from ROOT directory of Grav!

Hello ! I had the same issue, sudo -u grav bin/gpm install login-ldap -n worked well thank you. cache/gpm was owned by root so I had to change the owner.

I've another issue however: when I go to mydomain.com/ where grav is install it's redirecting to mydomain.com/grav and give a 404 error. When I go to mydomain.com/home it gives me the standard home page. Would you know what is happening?

Thanks

@tituspijean
Copy link
Member

Glad it worked for you!

I've another issue however: when I go to mydomain.com/ where grav is install it's redirecting to mydomain.com/grav and give a 404 error. When I go to mydomain.com/home it gives me the standard home page. Would you know what is happening?

Please open a dedicated issue for that. ;)

@tituspijean
Copy link
Member

Fixed by #67.

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

4 participants