Hi there
I’ve been following this article to deploy OpenEMR on Azure, using the latest version 7.0.0 downloaded from the OpenEMR website.
Deploying OpenEMR on Azure - Microsoft Community Hub
When I run the command in step 22, it executes but then returns the following error.
[03-Oct-2023 00:31:42 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: Failed to generate invisible primary key. Auto-increment column already exists. in /home/site/wwwroot/library/classes/Installer.class.php:1288
Stack trace:
#0 /home/site/wwwroot/library/classes/Installer.class.php(1288): mysqli_query(Object(mysqli), ‘CREATE TABLE a...') #1 /home/site/wwwroot/library/classes/Installer.class.php(325): Installer->execute_sql('CREATE TABLE
a…’)
#2 /home/site/wwwroot/library/classes/Installer.class.php(273): Installer->load_file(’/home/site/wwwr…’, ‘Main’)
#3 /home/site/wwwroot/library/classes/Installer.class.php(1217): Installer->load_dumpfiles()
#4 /home/site/wwwroot/contrib/util/installScripts/InstallerAuto.php(127): Installer->quick_install()
#5 {main}
thrown in /home/site/wwwroot/library/classes/Installer.class.php on line 1288
I cannot see from the stack trace how to fix the issue and successfully re-run the installer script. Any advice gratefully received.
Cheers
Mark