Giter VIP home page Giter VIP logo

Comments (7)

binsky08 avatar binsky08 commented on May 27, 2024 3

I had a similar issue with one of my test instances, but was not able to reproduce it.
I think it could be a cache problem.

  1. Make sure you have the latest Nextcloud version for 26 or 27 installed.
  2. Please try to disable and enable the Passman app.
  3. Try to clear PHP cache. Method depends on the installation.

Reloading / Restarting apache2 or php-fpm could help. systemctl reload apache2 or systemctl reload php-fpm
See https://serverguy.com/magento/flush-php-opcache/

When using Nextcloud in docker, try it with a container restart

from passman.

rhetticent avatar rhetticent commented on May 27, 2024 1

Thanks for the super quick follow-up, @binsky08. Of course, I skipped the simplest troubleshooting step 😂 Restarting my container fleet fixed this issue, and no more errors are thrown in server logs.

from passman.

juergen852 avatar juergen852 commented on May 27, 2024 1

We had the same problem after updating to NC 26.0.3.

Problem solved by restarting the php8.0-fpm and php8.1-fpm services.

NC log error message was:
{"reqId":"Zbj5ko9muarhj1hS9fzX","level":3,"time":"2023-06-26T17:47:59+02:00","remoteAddr":"10.8.2.100","user":"username","app":"index","method":"GET","url":"/apps/passman/","message":"Could not resolve OCA\Passman\Controller\PageController! Class "OCA\Passman\Controller\PageController" does not exist","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0","version":"26.0.3.2","exception":{"Exception":"OC\AppFramework\Utility\QueryNotFoundException","Message":"Could not resolve OCA\Passman\Controller\PageController! Class "OCA\Passman\Controller\PageController" does not exist","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1060,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":131,"CustomMessage":"--"},"id":"6499b362d43d6"}

from passman.

thofram avatar thofram commented on May 27, 2024

I have a similar issue, also after upgrading Nextcloud from 26 to 27 and Passman from 2.4.5 to 2.4.6:

[index] Error: OC\AppFramework\Utility\QueryNotFoundException: Could not resolve OCA\Passman\Controller\PageController! Class "OCA\Passman\Controller\PageController" does not exist

0. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
   OC\AppFramework\Utility\SimpleContainer->resolve()
1. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 494
   OC\AppFramework\Utility\SimpleContainer->query()
2. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 466
   OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
3. /var/www/nextcloud/lib/private/AppFramework/App.php line 162
   OC\AppFramework\DependencyInjection\DIContainer->query()
4. /var/www/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
5. /var/www/nextcloud/lib/base.php line 1064
   OC\Route\Router->match()
6. /var/www/nextcloud/index.php line 36
   OC::handleRequest()

GET /nextcloud/index.php/
from 192.168.254.210 by thomas at 2023-06-26T07:15:03+00:00

from passman.

thofram avatar thofram commented on May 27, 2024

Thank you, @binsky08. Clearing the cache and restarting the webserver made Passman working again for me.

from passman.

animalillo avatar animalillo commented on May 27, 2024

simple solution if using fpm would be reloading php-fpm, or restarting it.
with apache php module, restart apache would do the trick as well.

The problem of using opcache hehehe

from passman.

saintfrater avatar saintfrater commented on May 27, 2024

I've seen this issue this morning, and I'm gathering all information, but refresh before posting and discover THE solution: "turn it off and on"

So simple that I feel ashamed to not tried it before...

thanks you for your prompt and accurate answer

from passman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.