Hi The most common message in the log is like this:
/appinfo/app.php is not loaded when \OCP\AppFramework\Bootstrap\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.
Unfortunately this is set as an error level, so disabling the info and debug did not help much. Is there any way to get rid of the message above, or at least filter it out? It creates a lot of useless logdata and probably some strain to the machine too.
Hmm. I checked some of these apps and they shouldn’t have an app.php, e.g. “Polls”, “viewer” and “files_versions” (which is a core app).
If you update the apps and Nextcloud itself this way, do you also delete the old code first? Otherwise you’re basically running a NC remix with lots of different code mixed together.
So pretty much all of these i checked don’t have an app.php anymore, including the passwords app.
I don’t think Nextcloud is still loading the app.php, but that may not be the case of any other old code that you still have laying around. Having old code around is bad because NC or apps may run that code and end up in an unexpected state.
Additionally, it seems like many apps are in both apps and apps-pkg. I can’t tell you which one of these Nexcloud is loading, that depends on the configuration.
I’m not sure how to best solve this situation, maybe it’s worth to ask in Support.
My strategy would be to follow the manual upgrade guide and perform an “upgrade” to the same version. But in step 9 & 10, instead of copying your custom apps over, download the latest version and install that into the upgraded instance.
I made a reinstallation of nextcloud and got rid of most errors above. The errors conecering passwords are as follows:
Fatal passwords OCA\Passwords\Exception\ApiException: Internal Favicon API Error
2023-12-11T10:58:28+0100
Error passwords Error “Internal Favicon API Error” in OCA\Passwords\Controller\Api\ServiceApiController::getFavicon
2023-12-11T10:58:28+0100
Fatal passwords ImagickException: attempt to perform an operation not allowed by the security policy `MVG’ @ error/constitute.c/IsCoderAuthorized/449
2023-12-11T10:58:28+0100
Fatal passwords ImagickException: attempt to perform an operation not allowed by the security policy `MVG’ @ error/constitute.c/IsCoderAuthorized/449
2023-12-11T10:58:28+0100
Fatal passwords OCA\Passwords\Exception\ApiException: Internal Favicon API Error
2023-12-11T10:58:28+0100
Error passwords Error “Internal Favicon API Error” in OCA\Passwords\Controller\Api\ServiceApiController::getFavicon
2023-12-11T10:58:28+0100
Fatal passwords ImagickException: attempt to perform an operation not allowed by the security policy `MVG’ @ error/constitute.c/IsCoderAuthorized/449
2023-12-11T10:58:28+0100
Fatal passwords ImagickException: attempt to perform an operation not allowed by the security policy `MVG’ @ error/constitute.c/IsCoderAuthorized/449
Thos are just errors from the favicon api where your systems ImageMagick is set up in a way that doesn’t allow it to process some types of images, in this case MVG. That’s not really much of an issue and you can fix it either by changing the ImageMagick policies or switching to another image processing method in the passwords app settings.
Can you try and see what happens now if you try to connect the extension?
Alternatively you can also try php ./occ config:system:set allow_local_remote_servers --value=true --type=bool; but i don’t know if that stops NC from checking that
PHP upgraded to 8.1.26 with IPv6 enabled. The same error message is still shown when using passlink but theres no messages in the log at any level.
I also ran the command in your last message but nothing changed.
System config value allow_local_remote_servers set to boolean true
After the upgrade I get a new warning in the admin “Security and systemwarnings”
Your server is not configured correctly to resolve “/nextcloud/ocm-provider/”
Two more things: Can you open the developer tools in Firefox, then open the app in Nextcloud and see if there are any 404s in the requests in the Network tab there?
So it’s still not working even if all relevant code is commented out? I’m confused.
What happens if you just write
public function request(): JSONResponse {
return new JSONResponse((object) []);
}
as the function?
I’m really confused because there is nothing in there that isn’t also done when you use the webapp. It’s like something is blocking selectively the only endpoint that the webapp skips.