Getting error with occ command

I had a breakdown of an nextcloud server hardware a month back . I was able to recover database I was running it via a docker. I had a clone instance of nextcloud using the same db.

Now , I am trying to bring it up. so since I have a back up node up I am going to use that as primary instance node. I have mariadb up and running and nextcloud database set up.

but as starting poing when i run the command occ -help I get this error:

# sudo -u www-data ./occ --help
An unhandled exception has been thrown:
Error: Class "Pimple\Container" not found in /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php:52
Stack trace:
#0 /var/www/html/nextcloud/lib/private/ServerContainer.php(55): OC\AppFramework\Utility\SimpleContainer->__construct()
#1 /var/www/html/nextcloud/lib/private/Server.php(274): OC\ServerContainer->__construct()
#2 /var/www/html/nextcloud/lib/base.php(593): OC\Server->__construct()
#3 /var/www/html/nextcloud/lib/base.php(1089): OC::init()
#4 /var/www/html/nextcloud/console.php(48): require_once('...')
#5 /var/www/html/nextcloud/occ(11): require_once('...')
#6 {main}root@nextcloudn-node2:/var/www/html/nextcloud#

does anyone knows what is wrong here?

Any help will be greatly appreciated.

Hello @vitachaos, ,

Sadly enough your post is missing almost all specific technical information. Thanks for your post, but please take a little time to get acquainted with the forum and make a stronger effort to troubleshoot. It is the least you can do when asking others to help you:

  • Search your question as keywords on this forum. If you find something useful, link it directly into this post.
  • Search the internet using your issue as generic keywords. Specificity is king:
    • php modules missing Ubuntu Snap update
  • If you have an error message, repeat this process to search for your error on the forum and internet.
  • If you do not find an answer, you are likely using the wrong keywords. Try simplifying your search on the forum and internet even more.
    • nextcloud php modules missing
  • Once you’ve done this you should be able to edit and update your post with specific technical information we can use to help you.
  • Check Nextcloud admin documentation

Please edit and update your post to include:

  • Direct Links to any useful info pages, posts and other info you find.
  • Add screenshots to your post for context
  • If you have large log files to attach you can link to a pastebin
  • Fill out our support form and add into your post.

These are the exact same steps we volunteers will be following to help you! So, get to it!

Cheerio,
JimmyKater

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.