-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: No provider found for id account exception #48039
Comments
same here after update from 29.0.7 to 30.0 |
Anyhow it seems to throw this error message: server/lib/private/Teams/TeamManager.php Line 65 in 8a8bbd4
HELP! |
Same here after update from 29.0.7 to 30.0.0. |
Same problem after the Update to 30.0.0. |
Wild guess but: Shouldn't this be a if-else block? public function getProvider(string $providerId): ITeamResourceProvider {
$providers = $this->getProviders();
if (isset($providers[$providerId])) {
return $providers[$providerId];
}
throw new \RuntimeException('No provider found for id ' . $providerId);
} |
That doesn't matter.. The if has a return statement, so in case the if condition is true it will return the provider by ID ( |
Update: I found how and where to trigger the problem.. So the issue can be triggered via Contact app of Nextcloud. Still unsure if it's a core issue of the server or an issue in the Contact app.. Eg. go to all your contacts overview in the Contact app: Contact app will do teams lookup toward the OCS v2 API in Nextcloud. This is what I see in the network tab of the developer tool.
Update on update: yes creating a new contact seems to use the Address book called "Contacts".. Pretty sure here is the issue.. Somebody? At the bottom of the page -> Clicking on "Contacts settings" -> Address books -> It does show the address books called "Accounts". So not sure what is the problem.. |
I suspect the Contacts app for now, so I created the issue here: nextcloud/contacts#4165 (although.. it can still be a server issue in NC30, I need to know back from the devs.. At this point I'm just guessing) |
The "account" provider could seem like the system address book. (Also despite having the said address book deactivated via a OCC command.) |
I just really hope the upcoming NC30.1 bugfix release will take care of these weird errors. |
Hi, I've updated this morning from 29.0.8 to 30.0.1 and since then I found a lot of "No provider found for id account exception" in the log.
This error message occurs always multiple times when I switch to the contacts app. Since the update I realized a contact group 'Zuletzt kontaktiert' (Recently used), never realized before. BR SMF System at 127.0.0.1: NC 30.0.1 Docker image Alpine php-fpm adapted to my needs, containerized but not the AIO solution, Host Almalinux 9.4, Podman 4.9, Postgres 16.4, Redis 7.0.15, NGinx 1.27.2 |
Same Problem with 30.0.1 here. |
Yeah they didn't fix it. |
if you don't use the features of the " Teams" app you can disable it and the errors will go away. |
Hi Can confirm this bug, hit's me too with NC 30.0.1. Disabling the Teams app made the errors stop. |
I'm using the "Collectives" App. Teams (Circles) is a prerequisite for that, so I can't disable it. Did anybody dig deeper into that? Can the teams app be fixed? |
Would need a Bug report in the Nextcloud Teams/Circles repository. |
Yes, and return null and in the call function getTeamsForResource , the provider should already be checked for null and an empty array should be returned just like at the beginning of the function public function getTeamsForResource(string $providerId, string $resourceId, string $userId): array {
if (!$this->hasTeamSupport()) {
return [];
}
$provider = $this->getProvider($providerId);
/**
here `please` check if($provider === null){return [];}
*/
return array_values(array_filter(array_map(function ($teamId) use ($userId) {
$team = $this->getTeam($teamId, $userId);
if ($team === null) {
return null;
}
return new Team(
$teamId,
$team->getDisplayName(),
$this->urlGenerator->linkToRouteAbsolute('contacts.contacts.directcircle', ['singleId' => $teamId]),
);
}, $provider->getTeamsForResource($resourceId))));
} |
|
Fresh install of nextcloud:
Syncing contacts with DAVx5 app on Android. |
Still not solved in v30.0.2 |
Same here on 30.0.2 |
Same here on 30.0.2 |
That is because this is mostly a bug in the Nextcloud Circles app and not in the server. The bug is also already reported in the regarding Repository as nextcloud/circles#1713 |
If that is true, maybe Nextcloud could improve error logging...? For example provide the plugin and/or app name in the log output? Or something... That will allow us to open tickets at the correct project and not at Nextcloud server. |
same here.. 30.0.2 |
Nextcloud server produces an error, this error is in the error logs with no indication where it's originated. It is a bold statement that every user needs to know what sub project produces errors when no indication is given in the error logs. I guess it's best to either improve error log outputs or get into errors when they massively occur. Because this STILL is a heavy issue regarding Q&A, when errors that occur massively will be answered with not-responsible blame games. |
Same on 30.0.3 |
Same here with 30.0.4 |
Bug description
I get a lot of errors in my error log when using Nextcloud 30. It seems to be related to the Contacts app.
Steps to reproduce
/apps/contacts/All%20contacts/
Expected behavior
No errors in error log.
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No integrity issues via CLI (above URL doesn't exist anymore in NC30)
Nextcloud Logs
Additional info
The text was updated successfully, but these errors were encountered: