pulsejet / nextcloud-oidc-login

Nextcloud login via a single OpenID Connect 1.0 provider
https://apps.nextcloud.com/apps/oidc_login
GNU Affero General Public License v3.0
219 stars 59 forks source link

Could not boot oidc_login #268

Closed AkshayRao27 closed 4 months ago

AkshayRao27 commented 5 months ago

Yesterday, my Nextcloud desktop client stopped syncing, I could not upload files through the browser, and my App list was completely blank. When I checked the error log, it was full of these two errors going as far back as I could possibly go. Disabling the plugin made everything work perfectly again.

Throughout this time, I have been able to log in with Authelia using the plugin and sync was working fine. Something changed in the past few days that caused things to break, and I have no idea what. I'm not sure if this is a bug or a config issue on my end. What other info can I provide that would help diagnose what is going on here?

Level: Fatal Application: no app in context Message:

Error Failed opening required 'assets/login.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps')
Could not boot oidc_login: Failed opening required 'assets/login.php' (include_path='/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps')

Level: Error Application: PHP Message:

require(assets/login.php): Failed to open stream: No such file or directory at /var/www/nextcloud/apps/oidc_login/lib/AppInfo/Application.php#152

Version: Nextcloud Hub 7 (28.0.3) Operating System: TurnKey GNU/Linux 18.0 (Debian 12/Bookworm) Hosting Method: LXC Container in Proxmox (VE 8.1.4) Config File: https://pastebin.com/LViS1aV7

image image

pulsejet commented 5 months ago

Remove oidc_login_alt_login_page from your config file

keesfluitman commented 4 months ago

@pulsejet That didn't work for me. Got the same error

Fatal | no app in context | Error Failed opening required 'assets/login.php' (include_path='/app/www/public/3rdparty/pear/archive_tar:/app/www/public/3rdparty/pear/console_getopt:/app/www/public/3rdparty/pear/pear-core-minimal/src:/app/www/public/3rdparty/pear/pear_exception:/app/www/public/apps') Could not boot oidc_login: Failed opening required 'assets/login.php' (include_path='/app/www/public/3rdparty/pear/archive_tar:/app/www/public/3rdparty/pear/console_getopt:/app/www/public/3rdparty/pear/pear-core-minimal/src:/app/www/public/3rdparty/pear/pear_exception:/app/www/public/apps')

But neither does changing the setting to remove the login user and password from the GUI login interface.

pulsejet commented 4 months ago

@keesfluitman restart the PHP server after you change config.php

keesfluitman commented 4 months ago

@keesfluitman restart the PHP server after you change config.php

I rebooted the entire container, to no effect yet. Ill check further.

I get this error at the same time btw. require(assets/login.php): Failed to open stream: No such file or directory at /config/www/nextcloud/apps/oidc_login/lib/AppInfo/Application.php#152

I don't remember whether i customized something, and that that might be the cause? Deleting the app and reinstalling it, didn't have any effect. But right now, I set to auto redirect to my IP, but i still need the login form for my own main account, which is a local account.

keesfluitman commented 4 months ago

@pulsejet Shall i open a new bug report or is there some support forum perhaps?

pulsejet commented 4 months ago

Not sure, there's really nothing to fix here. If you see Application.php, it checks for oidc_login_alt_login_page in the config and tries to require it on line 152 (where you get the error) if set. So the only way you could get this error is when this key is defined (and set to assets/login.php) in your config.

https://github.com/pulsejet/nextcloud-oidc-login/blob/49e2be6a02290f295938aefad17bfdc525ef3d67/lib/AppInfo/Application.php#L74

https://github.com/pulsejet/nextcloud-oidc-login/blob/49e2be6a02290f295938aefad17bfdc525ef3d67/lib/AppInfo/Application.php#L147-L155

keesfluitman commented 4 months ago

thanks. that made me realize the settings were set twice in my config files. And they actually were...both in config.php and my oidc.config.php had all values in it. Dunno why oidc_login_hide_password_form has no effect yet though.

pulsejet commented 4 months ago

That's probably broken now, it was just a css hack

keesfluitman commented 4 months ago

That's probably broken now, it was just a css hack

ye i just did it myself manually now. thanks again for your quick replies. like a pro company ;).