CiscoDevNet / MUD-Manager

Manufacturer Usage Description (MUD) is a technique whereby constrained end devices (e.g., IoT devices) can signal to the network what sort of access and network functionality they require to properly function
BSD 3-Clause "New" or "Revised" License
22 stars 10 forks source link

Web UI | Class 'MongoDB\Driver\Manager' not found #68

Open ihabZhaika opened 5 years ago

ihabZhaika commented 5 years ago

Hey, I have installed the MUD-Manager with the web GUI, everything went ok now when i tried to run the GUI i get the following issue `MUD Manager Configuration

This is the MUD Manager Configuration Screen. Click "edit" on those rows you wish to change.

Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found in /home/tester/MUD-Manager/web/vendor/mongodb/mongodb/src/Client.php:87 Stack trace: #0 /home/tester/MUD-Manager/web/funcs.php(78): MongoDB\Client->__construct('mongodb://local...') #1 /home/tester/MUD-Manager/web/mud-home.php(26): init_database(NULL, NULL, NULL, NULL) #2 /home/tester/MUD-Manager/web/index.php(2): include('/home/tester/MU...') #3 {main} thrown in /home/tester/MUD-Manager/web/vendor/mongodb/mongodb/src/Client.php on line 87`

mud_gui_issue

I have installed the dependency with /usr/bin/composer require mongodb/mongodb in the directory of the web folder

the generated JSON file of the composer contains the following

{ "require": { "mongodb/mongodb": "^1.4" } }

The files in the web folder:

GUI_issue_mud

Any suggestion where the issue could be ?

elear commented 5 years ago

This looks like mongodb isn't running. Is it?

elear commented 4 years ago

I think I have spotted a problem here. It has to do with the version of the mongodb plugin. pecl offers a better version to install. Can you try it and let me know?

ihabZhaika commented 4 years ago

It's hard to try now since i have moved on and don't have the project files anymore, it's up to you to decide to keep this ticket open or not