morrisng
(Morrison Idiasirue)
September 26, 2019, 1:50pm
1
I tried to install the openmrs patient flag module:
https://addons.openmrs.org/show/org.openmrs.module.patientflags
It installed but could not start. I got this error when I installed the latest version (3.0.1):
Error while trying to start module
Unable to update data model using liquibase.xml. Module: Patient Flags Module
dkayiwa
(Daniel Kayiwa)
September 26, 2019, 2:00pm
2
Can you share the server log using pastebin.com ?
1 Like
morrisng
(Morrison Idiasirue)
September 26, 2019, 2:39pm
3
dkayiwa
(Daniel Kayiwa)
September 26, 2019, 2:55pm
4
Which version of MySQL are you running?
dkayiwa
(Daniel Kayiwa)
September 26, 2019, 5:08pm
6
What does this command return?
SELECT table_schema, table_name, engine, table_collation FROM information_schema.tables WHERE table_name in ('role', 'patientflags_tag_role') AND table_schema = 'openmrs'
table_schema
should be the name of your database
morrisng
(Morrison Idiasirue)
September 26, 2019, 5:33pm
8
I think the liquidbase is running the Database scripts using latin1_swedish_ci where as my DB expects utf8_general_ci so how do change that from the source.
dkayiwa
(Daniel Kayiwa)
September 26, 2019, 7:35pm
9
What is the “connection.url” in your openmrs runtime properties file?
morrisng
(Morrison Idiasirue)
January 20, 2020, 11:10pm
10
connection.url=jdbc:mysql://localhost:3306/openmrs?autoReconnect=true&sessionVariables=default_storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8
dkayiwa
(Daniel Kayiwa)
January 21, 2020, 8:34am
11
Append this: &server.collation-server=utf8_general_ci&server.character-set-server=utf8 to your connection string, restart your openmrs instance, and try again.
morrisng
(Morrison Idiasirue)
January 21, 2020, 2:40pm
12
I just tested and the same thing happen. did u try out the DB that sent to you?
dkayiwa
(Daniel Kayiwa)
January 21, 2020, 8:10pm
13
Can you share your full connection.url
?
morrisng
(Morrison Idiasirue)
January 21, 2020, 9:46pm
14
connection.url=jdbc:mysql://localhost:3306/nmrs-with-risk-strat?autoReconnect=true&sessionVariables=default_storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8&server.collation-server=utf8_general_ci&server.character-set-server=utf8
morrisng
(Morrison Idiasirue)
January 21, 2020, 9:54pm
15
@dkayiwa This problem also happens with installing OpenHMIS inventory module, you can confirm this…
dkayiwa
(Daniel Kayiwa)
January 22, 2020, 8:47am
16
After changing the connection string, can you restart OpenMRS and share the new log?
morrisng
(Morrison Idiasirue)
January 22, 2020, 11:00am
17
So the log is module could not start…then when I view the details it is saying that the it could not migrate the liquid base file…
dkayiwa
(Daniel Kayiwa)
January 22, 2020, 2:32pm
18
Can you share the new log?