Installation error. Database error. Please check suitecrm.log for details

I have an error when installing suitcrm.

this is the output
Creating SuiteCRM configuration file (config.php)

Creating SuiteCRM application tables, audit tables and relationship metadata
Creating the database suitecrm on localhost…done


Database error. Please check suitecrm.log for details.

When I looked for a suitecrm.log file in my suitecrm directory I couldn’t find any such file.

If I go to suitecrm in my browser on localhost it now shows the login screen but the admin credentials I provided during installation doesnt work.

I am trying to install suitecrm 7.8.20. (it has to be this very specific version)

Anyone know what the problem might be?

Hi, welcome to the Community! :tada:

Check the install.log file, you should have more information there.

thanks. This is the output to my install.log file I don’t see anything out of place here except or install_hooks.php not present. Do you think that might be the issue?

2020-04-03 12:46:16...installerHook: Info: custom/install/install_hooks.php not present, no custom     hooks to execute
2020-04-03 12:46:20...Begin System Check Process *************
2020-04-03 12:46:20...XML Parsing Support Found
2020-04-03 12:46:20...MBString Support Found
2020-04-03 12:46:20...ZIP Support Found
2020-04-03 12:46:20.../custom directory and subdirectory check passed
2020-04-03 12:46:20...cache directory and subdirectory check passed
2020-04-03 12:46:20.../module  directory and subdirectory check passed
2020-04-03 12:46:20.../upload directory check passed
2020-04-03 12:46:20.../zip check passed
2020-04-03 12:46:20...PCRE version check passed
2020-04-03 12:46:20...installerHook: Info: custom/install/install_hooks.php not present, no custom hooks to execute
2020-04-03 12:46:20...php.ini location found. /home/daniel/lampstack-7.2.29-0/php/etc/php.ini
2020-04-03 12:46:20...Outputting HTML for System check
2020-04-03 12:46:20...No Errors were found *************
2020-04-03 12:46:20...installerHook: Info: custom/install/install_hooks.php not present, no custom hooks to execute
2020-04-03 12:46:22...installerHook: Info: custom/install/install_hooks.php not present, no custom hooks to execute
2020-04-03 12:46:47...Begin DB Check Process *************
2020-04-03 12:46:47...testing with mysql:mysqli
2020-04-03 12:46:47...Basic form info is valid, continuing Process.
2020-04-03 12:46:47...Testing user account...
2020-04-03 12:46:47...Connection made using  host: localhost, usr: root
2020-04-03 12:46:47...SUCCESS:: no errors detected!
2020-04-03 12:46:47...End DB Check Process *************
2020-04-03 12:46:48...installerHook: Info: custom/install/install_hooks.php not present, no custom hooks to execute
2020-04-03 12:46:48...calling handleSugarConfig()
2020-04-03 12:46:48...calling handleHtaccess()
2020-04-03 12:46:48...calling handleDbCreateDatabase()
2020-04-03 12:48:53...looping through all the Beans and create their tables
2020-04-03 12:48:53...processing table acl_actions
2020-04-03 12:48:56...creating table acl_actions
2020-04-03 12:48:56...creating Relationship Meta for ACLAction
2020-04-03 12:48:56...processing table acl_roles
2020-04-03 12:48:58...creating table acl_roles
2020-04-03 12:48:58...creating Relationship Meta for ACLRole
2020-04-03 12:48:58...processing table relationships
2020-04-03 12:49:00...creating table relationships
2020-04-03 12:49:00...creating Relationship Meta for Relationship
2020-04-03 12:49:00...processing table leads
2020-04-03 12:49:13...creating table leads
2020-04-03 12:49:13...creating Relationship Meta for Lead
2020-04-03 12:49:16...processing table cases
2020-04-03 12:49:23...creating table cases
2020-04-03 12:49:23...creating Relationship Meta for Case
2020-04-03 12:49:27...processing table bugs
2020-04-03 12:49:36...creating table bugs
2020-04-03 12:49:36...creating Relationship Meta for Bug
2020-04-03 12:49:39...processing table users
2020-04-03 12:49:41...creating table users
2020-04-03 12:49:41...creating Relationship Meta for User
2020-04-03 12:49:41...processing table campaign_log
2020-04-03 12:49:44...creating table campaign_log
2020-04-03 12:49:44...creating Relationship Meta for CampaignLog
2020-04-03 12:49:45...processing table project
2020-04-03 12:49:49...creating table project
2020-04-03 12:49:49...creating Relationship Meta for Project
2020-04-03 12:49:51...processing table project_task
2020-04-03 12:49:57...creating table project_task
2020-04-03 12:49:57...creating Relationship Meta for ProjectTask
2020-04-03 12:50:00...processing table campaigns
2020-04-03 12:50:12...creating table campaigns
2020-04-03 12:50:12...creating Relationship Meta for Campaign
2020-04-03 12:50:16...processing table prospect_lists
2020-04-03 12:50:20...creating table prospect_lists
2020-04-03 12:50:20...creating Relationship Meta for ProspectList
2020-04-03 12:50:21...processing table prospects
2020-04-03 12:50:28...creating table prospects
2020-04-03 12:50:28...creating Relationship Meta for Prospect
2020-04-03 12:50:31...processing table email_marketing
2020-04-03 12:50:43...creating table email_marketing
2020-04-03 12:50:43...creating Relationship Meta for EmailMarketing
2020-04-03 12:50:44...processing table campaign_trkrs
2020-04-03 12:50:46...creating table campaign_trkrs
2020-04-03 12:50:46...creating Relationship Meta for CampaignTracker
2020-04-03 12:50:46...processing table releases
2020-04-03 12:50:48...creating table releases
2020-04-03 12:50:48...creating Relationship Meta for Release
2020-04-03 12:50:48...processing table emailman
2020-04-03 12:50:50...creating table emailman
2020-04-03 12:50:50...creating Relationship Meta for EmailMan
2020-04-03 12:50:50...processing table schedulers
2020-04-03 12:50:52...creating table schedulers
2020-04-03 12:50:52...creating Relationship Meta for Scheduler
2020-04-03 12:50:54...processing table job_queue
2020-04-03 12:50:56...creating table job_queue
2020-04-03 12:50:56...creating Relationship Meta for SchedulersJob
2020-04-03 12:50:57...processing table contacts
2020-04-03 12:51:08...creating table contacts
2020-04-03 12:51:08...creating Relationship Meta for Contact
2020-04-03 12:51:13...processing table accounts
2020-04-03 12:51:20...creating table accounts
2020-04-03 12:51:20...creating Relationship Meta for Account
2020-04-03 12:51:25...processing table opportunities
2020-04-03 12:51:32...creating table opportunities
2020-04-03 12:51:32...creating Relationship Meta for Opportunity
2020-04-03 12:51:38...processing table email_templates
2020-04-03 12:51:43...creating table email_templates
2020-04-03 12:51:43...creating Relationship Meta for EmailTemplate
2020-04-03 12:51:43...processing table notes
2020-04-03 12:51:48...creating table notes
2020-04-03 12:51:48...creating Relationship Meta for Note
2020-04-03 12:51:49...processing table calls
2020-04-03 12:51:55...creating table calls
2020-04-03 12:51:55...creating Relationship Meta for Call
2020-04-03 12:51:56...processing table emails
2020-04-03 12:52:01...creating table emails
2020-04-03 12:52:01...creating Relationship Meta for Email
2020-04-03 12:52:03...processing table meetings
2020-04-03 12:52:09...creating table meetings
2020-04-03 12:52:09...creating Relationship Meta for Meeting
2020-04-03 12:52:11...processing table tasks
2020-04-03 12:52:18...creating table tasks
2020-04-03 12:52:18...creating Relationship Meta for Task
2020-04-03 12:52:19...processing table users
2020-04-03 12:52:19...processing table users
2020-04-03 12:52:19...processing table currencies
2020-04-03 12:52:22...creating table currencies
2020-04-03 12:52:22...creating Relationship Meta for Currency
2020-04-03 12:52:22...processing table tracker
2020-04-03 12:52:25...creating table tracker
2020-04-03 12:52:25...creating Relationship Meta for Tracker
2020-04-03 12:52:25...processing table import_maps
2020-04-03 12:52:27...creating table import_maps
2020-04-03 12:52:27...creating Relationship Meta for ImportMap
2020-04-03 12:52:27...processing table users_last_import
2020-04-03 12:52:29...creating table users_last_import
2020-04-03 12:52:29...creating Relationship Meta for UsersLastImport
2020-04-03 12:52:29...processing table config
2020-04-03 12:52:31...creating table config
2020-04-03 12:52:31...creating Relationship Meta for Administration
2020-04-03 12:52:31...processing table upgrade_history
2020-04-03 12:52:32...creating table upgrade_history
2020-04-03 12:52:32...creating Relationship Meta for UpgradeHistory
2020-04-03 12:52:32...processing table vcals
2020-04-03 12:52:34...creating table vcals
2020-04-03 12:52:34...creating Relationship Meta for vCal
2020-04-03 12:52:34...processing table alerts
2020-04-03 12:52:41...creating table alerts
2020-04-03 12:52:41...creating Relationship Meta for Alert
2020-04-03 12:52:43...processing table roles
2020-04-03 12:52:45...creating table roles
2020-04-03 12:52:45...creating Relationship Meta for Role
2020-04-03 12:52:45...processing table documents
2020-04-03 12:52:49...creating table documents
2020-04-03 12:52:49...creating Relationship Meta for Document
2020-04-03 12:52:50...processing table document_revisions
2020-04-03 12:52:52...creating table document_revisions
2020-04-03 12:52:52...creating Relationship Meta for DocumentRevision
2020-04-03 12:52:53...processing table fields_meta_data
2020-04-03 12:52:55...creating table fields_meta_data
2020-04-03 12:52:55...creating Relationship Meta for FieldsMetaData
2020-04-03 12:52:55...processing table inbound_email
2020-04-03 12:52:57...creating table inbound_email
2020-04-03 12:52:57...creating Relationship Meta for InboundEmail
2020-04-03 12:52:57...processing table saved_search
2020-04-03 12:52:59...creating table saved_search
2020-04-03 12:52:59...creating Relationship Meta for SavedSearch
2020-04-03 12:52:59...processing table user_preferences
2020-04-03 12:53:01...creating table user_preferences
2020-04-03 12:53:01...creating Relationship Meta for UserPreference
2020-04-03 12:53:01...processing table 
2020-04-03 12:53:01...processing table email_addresses
2020-04-03 12:53:03...creating table email_addresses
2020-04-03 12:53:03...creating Relationship Meta for EmailAddress
2020-04-03 12:53:03...processing table emails_text
2020-04-03 12:53:04...creating table emails_text
2020-04-03 12:53:04...creating Relationship Meta for EmailText
2020-04-03 12:53:04...processing table spots
2020-04-03 12:53:10...creating table spots
2020-04-03 12:53:10...creating Relationship Meta for Spots
2020-04-03 12:53:11...processing table aobh_businesshours
2020-04-03 12:53:16...creating table aobh_businesshours
2020-04-03 12:53:16...creating Relationship Meta for AOBH_BusinessHours
2020-04-03 12:53:18...processing table sugarfeed
2020-04-03 12:53:20...creating table sugarfeed
2020-04-03 12:53:20...creating Relationship Meta for SugarFeed
2020-04-03 12:53:21...processing table eapm
2020-04-03 12:53:24...creating table eapm
2020-04-03 12:53:24...creating Relationship Meta for EAPM
2020-04-03 12:53:25...processing table oauth_consumer
2020-04-03 12:53:26...creating table oauth_consumer
2020-04-03 12:53:26...creating Relationship Meta for OAuthKey
2020-04-03 12:53:27...processing table oauth_tokens
2020-04-03 12:53:29...creating table oauth_tokens
2020-04-03 12:53:29...creating Relationship Meta for OAuthToken
2020-04-03 12:53:30...processing table am_projecttemplates
2020-04-03 12:53:35...creating table am_projecttemplates
2020-04-03 12:53:35...creating Relationship Meta for AM_ProjectTemplates
2020-04-03 12:53:36...processing table am_tasktemplates
2020-04-03 12:53:45...creating table am_tasktemplates
2020-04-03 12:53:45...creating Relationship Meta for AM_TaskTemplates
2020-04-03 12:53:46...processing table favorites
2020-04-03 12:53:47...creating table favorites
2020-04-03 12:53:47...creating Relationship Meta for Favorites
2020-04-03 12:53:48...processing table aok_knowledge_base_categories
2020-04-03 12:53:53...creating table aok_knowledge_base_categories
2020-04-03 12:53:53...creating Relationship Meta for AOK_Knowledge_Base_Categories
2020-04-03 12:53:54...processing table aok_knowledgebase
2020-04-03 12:53:59...creating table aok_knowledgebase
2020-04-03 12:53:59...creating Relationship Meta for AOK_KnowledgeBase
2020-04-03 12:54:00...processing table reminders
2020-04-03 12:54:03...creating table reminders
2020-04-03 12:54:03...creating Relationship Meta for Reminder
2020-04-03 12:54:04...processing table reminders_invitees
2020-04-03 12:54:07...creating table reminders_invitees
2020-04-03 12:54:07...creating Relationship Meta for Reminder_Invitee
2020-04-03 12:54:08...processing table fp_events
2020-04-03 12:54:16...creating table fp_events
2020-04-03 12:54:16...creating Relationship Meta for FP_events
2020-04-03 12:54:17...processing table fp_event_locations
2020-04-03 12:54:23...creating table fp_event_locations
2020-04-03 12:54:23...creating Relationship Meta for FP_Event_Locations
2020-04-03 12:54:24...processing table aod_indexevent
2020-04-03 12:54:33...creating table aod_indexevent
2020-04-03 12:54:33...creating Relationship Meta for AOD_IndexEvent
2020-04-03 12:54:33...processing table aod_index
2020-04-03 12:54:42...creating table aod_index
2020-04-03 12:54:42...creating Relationship Meta for AOD_Index
2020-04-03 12:54:42...processing table aop_case_events
2020-04-03 12:54:50...creating table aop_case_events
2020-04-03 12:54:50...creating Relationship Meta for AOP_Case_Events
2020-04-03 12:54:51...processing table aop_case_updates
2020-04-03 12:54:57...creating table aop_case_updates
2020-04-03 12:54:57...creating Relationship Meta for AOP_Case_Updates
2020-04-03 12:54:58...processing table aor_reports
2020-04-03 12:55:04...creating table aor_reports
2020-04-03 12:55:04...creating Relationship Meta for AOR_Report
2020-04-03 12:55:06...processing table aor_fields
2020-04-03 12:55:07...creating table aor_fields
2020-04-03 12:55:07...creating Relationship Meta for AOR_Field
2020-04-03 12:55:08...processing table aor_charts
2020-04-03 12:55:09...creating table aor_charts
2020-04-03 12:55:09...creating Relationship Meta for AOR_Chart
2020-04-03 12:55:11...processing table aor_conditions
2020-04-03 12:55:14...creating table aor_conditions
2020-04-03 12:55:14...creating Relationship Meta for AOR_Condition
2020-04-03 12:55:14...processing table aor_scheduled_reports
2020-04-03 12:55:19...creating table aor_scheduled_reports
2020-04-03 12:55:19...creating Relationship Meta for AOR_Scheduled_Reports
2020-04-03 12:55:20...processing table aos_contracts
2020-04-03 12:55:25...creating table aos_contracts
2020-04-03 12:55:25...creating Relationship Meta for AOS_Contracts
2020-04-03 12:55:28...processing table aos_invoices
2020-04-03 12:55:34...creating table aos_invoices
2020-04-03 12:55:34...creating Relationship Meta for AOS_Invoices
2020-04-03 12:55:36...processing table aos_pdf_templates
2020-04-03 12:55:44...creating table aos_pdf_templates
2020-04-03 12:55:44...creating Relationship Meta for AOS_PDF_Templates
2020-04-03 12:55:46...processing table aos_product_categories
2020-04-03 12:55:53...creating table aos_product_categories
2020-04-03 12:55:53...creating Relationship Meta for AOS_Product_Categories
2020-04-03 12:55:55...processing table aos_products
2020-04-03 12:56:01...creating table aos_products
2020-04-03 12:56:01...creating Relationship Meta for AOS_Products
2020-04-03 12:56:02...processing table aos_products_quotes
2020-04-03 12:56:07...creating table aos_products_quotes
2020-04-03 12:56:07...creating Relationship Meta for AOS_Products_Quotes
2020-04-03 12:56:08...processing table aos_line_item_groups
2020-04-03 12:56:15...creating table aos_line_item_groups
2020-04-03 12:56:15...creating Relationship Meta for AOS_Line_Item_Groups
2020-04-03 12:56:16...processing table aos_quotes
2020-04-03 12:56:20...creating table aos_quotes
2020-04-03 12:56:20...creating Relationship Meta for AOS_Quotes
2020-04-03 12:56:21...processing table aow_actions
2020-04-03 12:56:22...creating table aow_actions
2020-04-03 12:56:22...creating Relationship Meta for AOW_Action
2020-04-03 12:56:22...processing table aow_workflow
2020-04-03 12:56:25...creating table aow_workflow
2020-04-03 12:56:25...creating Relationship Meta for AOW_WorkFlow
2020-04-03 12:56:26...processing table aow_processed
2020-04-03 12:56:30...creating table aow_processed
2020-04-03 12:56:30...creating Relationship Meta for AOW_Processed
2020-04-03 12:56:31...processing table aow_conditions
2020-04-03 12:56:33...creating table aow_conditions
2020-04-03 12:56:33...creating Relationship Meta for AOW_Condition
2020-04-03 12:56:33...processing table jjwg_maps
2020-04-03 12:56:38...creating table jjwg_maps
2020-04-03 12:56:38...creating Relationship Meta for jjwg_Maps
2020-04-03 12:56:41...processing table jjwg_markers
2020-04-03 12:56:47...creating table jjwg_markers
2020-04-03 12:56:47...creating Relationship Meta for jjwg_Markers
2020-04-03 12:56:48...processing table jjwg_areas
2020-04-03 12:56:53...creating table jjwg_areas
2020-04-03 12:56:53...creating Relationship Meta for jjwg_Areas
2020-04-03 12:56:54...processing table jjwg_address_cache
2020-04-03 12:56:59...creating table jjwg_address_cache
2020-04-03 12:56:59...creating Relationship Meta for jjwg_Address_Cache
2020-04-03 12:57:00...processing table calls_reschedule
2020-04-03 12:57:05...creating table calls_reschedule
2020-04-03 12:57:05...creating Relationship Meta for Calls_Reschedule
2020-04-03 12:57:07...processing table securitygroups
2020-04-03 12:57:13...creating table securitygroups
2020-04-03 12:57:13...creating Relationship Meta for SecurityGroup
2020-04-03 12:57:13...processing table outbound_email
2020-04-03 12:57:22...creating table outbound_email
2020-04-03 12:57:22...creating Relationship Meta for OutboundEmailAccounts
2020-04-03 12:57:25...processing table templatesectionline
2020-04-03 12:57:38...creating table templatesectionline
2020-04-03 12:57:38...creating Relationship Meta for TemplateSectionLine

I don’t see any errors. Are there any entries in your web server’s errorlog or, if you’re logging php errors separately, in that log?

Unless it’s too much of a nuisance, I’d like to propose trying a clean reinstall. Since you are so early on in the process, it might be the easiest option and we’ll see if the problem persists.

my servers error log has a bunch on notices and warnings and ends with this fatal error. I have tried reinstalling a dozen times and everytime I run into the same issue.

[Fri Apr 03 15:01:55.577300 2020] [php7:error] [pid 1154] [client ::1:36618] PHP Fatal error: Uncaught Exception: Database error. Please check suitecrm.log for details. in /home/daniel/lampstack-7.2.29-0/apache2/htdocs/SuiteCRM-7.8.20/include/utils.php:1690\nStack trace:\n#0 /home/daniel/lampstack-7.2.29-0/apache2/htdocs/SuiteCRM-7.8.20/include/database/DBManager.php(351): sugar_die('Database error....')\n#1 /home/daniel/lampstack-7.2.29-0/apache2/htdocs/SuiteCRM-7.8.20/include/database/DBManager.php(325): DBManager->registerError('Error creating ...', 'Error creating ...', true)\n#2 /home/daniel/lampstack-7.2.29-0/apache2/htdocs/SuiteCRM-7.8.20/include/database/MysqliManager.php(160): DBManager->checkError('Error creating ...', true)\n#3 /home/daniel/lampstack-7.2.29-0/apache2/htdocs/SuiteCRM-7.8.20/include/database/DBManager.php(683): MysqliManager->query('CREATE TABLE us...', true, 'Error creating ...')\n#4 /home/daniel/lampstack-7.2.29-0/apache2/htdocs/SuiteCRM-7.8.20/install/performSetup.php(316): DBManager->createTableParams('users_feeds', Array, Array)\n#5 /home/daniel/lampstack-7.2.29-0/apache2/htdoc in /home/daniel/lampstack-7.2.29-0/apache2/htdocs/SuiteCRM-7.8.20/include/utils.php on line 1690, referer: http://localhost:8080/SuiteCRM-7.8.20/install.php

Are you clearing the database (drop the database entirely) between attempts? It might be simply an error that a table can’t be created because it is already there.

If we had the complete error messages we would know… it’s a pity it is only showing a small bit (“Error creating…”)

I haven’t dropped the database between attempts. Let me give that a try and let you know if it worked.

even after dropping it gives the same error

To me it seems like the installer is not able to finish the database setup for some reason. A few possibilites come to my mind:

  • There’s something wrong with php or web server configuration. Most likely your max_execution_time for php is too low and so the script is killed before it finishes
  • You’re running out of disk space or quota for the database
  • Your connection to the database is unstable (if it’s on a different server)

Does it always stop at exactly the same point (ie. at “creating Relationship Meta for TemplateSectionLine” in installer.log)?

The max_execution_time was 120 so I set it to 1200 just to make sure.
I reinstalled again and ran into the same issue. And yes it always stops at the same point in the install.log file

This is actually on my laptop which still has plenty of space free.

The database and server are both local. I just installed the latest bitnami lamp stack.

Somewhere in your system there is a log where you can see that error message complete. Go there and you will find your solution… :slight_smile:

Perhaps some MySQL log.

I think the issue is the mysql version is too recent for suitcrm 7.8.20. Im going to try and install an older version of mysql and see if that works. I saw a post from 2018 that lead me to believe that this is my issue aswell. CRM installation on mySQL DB

1 Like

Okay so turns out the issue was mysql version not being compatible. After wasting a lot of time with lamp stacks like xampp, bitnami lamp etc. stuggling to find exactly what I needed I just decided to install my lamp stack manually and configure everything myself. I am quite new to setting up servers and so it was a good learning experience. I just want to express my gratitude to this community which was extremely helpful. I found a bunch of posts that helped me a lot on this forum and helped me learn.