Skip to content
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

Support: #10052

Open
1 task done
Elevation5000 opened this issue Nov 19, 2024 · 3 comments
Open
1 task done

Support: #10052

Elevation5000 opened this issue Nov 19, 2024 · 3 comments
Labels
needs triage This issue has been automatically labelled and needs further triage support

Comments

@Elevation5000
Copy link

Elevation5000 commented Nov 19, 2024

Support Questions

I inherited a non working MISP server. I am trying to troubleshoot issues in the logs. When going to the IP of the server i get.

An Internal Error Has Occurred.
Error: An Internal Error Has Occurred. Please try your action again. If the problem persists, please contact administrator.

Download: Server PGP public key
Powered by MISP - 2024-11-19 20:21:21
Loading

MISP version

Unsure because it doesn't load.

Operating System

Oracle Linux Server

Operating System version

8.10

PHP version

7.4.33

Browser

All

Browser version

Latest

Relevant log output

2024-11-19 20:21:21 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created.Exception Attributes: array (
  'class' => 'Mysql',
  'message' => 'SQLSTATE[HY000] [1698] Access denied for user \'root\'@\'localhost\'',
  'enabled' => true,                                                                                                    )                                                                                                                       Request URL: /servers/cspReport
Stack Trace:
#0 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Datasource/DboSource.php(278): Mysql->connect()
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct()
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3659): ConnectionManager::getDataSource()
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(1162): Model->setDataSource()
#4 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3686): Model->setSource()
#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(1394): Model->getDataSource()
#6 /var/www/MISP/app/Plugin/SysLogLogable/Model/Behavior/SysLogLogableBehavior.php(283): Model->schema()
#7 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/BehaviorCollection.php(145): SysLogLogableBehavior->setup()
#8 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/BehaviorCollection.php(66): BehaviorCollection->load()
#9 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(781): BehaviorCollection->init()                              #10 /var/www/MISP/app/Model/AppModel.php(114): Model->__construct()                                                     #11 /var/www/MISP/app/Model/User.php(255): AppModel->__construct()
#12 [internal function]: User->__construct()

Extra attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Elevation5000 Elevation5000 added needs triage This issue has been automatically labelled and needs further triage support labels Nov 19, 2024
@iglocska
Copy link
Member

It sounds like your MISP is not configured correctly, edit /var/www/MISP/app/Config/database.php with the correct db credentials. Also, please don't use the root mysql user for MISP if possible.

@Elevation5000
Copy link
Author

Is there a way to reset those if the previous Sys Admin doesn't know?

@iglocska
Copy link
Member

I mean it's a matter of changing the permissions in your mysql/mariadb. As long as you can log in via the admin user into your mysql you should be able to just create a new user / change the password of the existing one.

https://docs.rackspace.com/docs/create-a-new-user-and-grant-permissions-in-mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has been automatically labelled and needs further triage support
Projects
None yet
Development

No branches or pull requests

2 participants