Install hangs at Step 3

enginama1 wrote on Monday, September 19, 2011:

OK found the collation issue. After creating the DB, need to go into myphp and change the default collation in an Alter DB statement.

Unfortunately that wasn’t the problem, after changing the default collation and rerunning the install program (drop DB, create new one, alter DB collation) it hangs at the same point. It created the tables as before but with utf8_general_ci table collation.
Checked with my sys admin provider and they are unable to get it to run past the stage 3 hang, monitoring the system the PID finshes a few seconds after that page loads … unfortunately it finishes with no errors but provides the page indicating its not finished.
DB also defaults to MY ISAM storage engine, not sure if that’s an issue.

Any help to help resolve this is appreciated.

Thanks

bradymiller wrote on Monday, September 19, 2011:

Hi,

Although it didn’t solve the problem, using UTF8 will be beneficial after you start getting it to work.

Is there any data in the mysql tables? If so, is there any data in the lang_definitions table?

Also, what mysql users do you currently have?

And, is your sites_default/sql_conf.php file getting filled with the correct mysql credentials (this is done during step 3 of the install)?

Also, find out if there are any settings for the ‘sql-mode’ parameter in your mysql (this is set by the site admin and generally can be found in the mysql configuration file.

Also, to be safe, ensure you have the correct php settings:
http://www.oemr.org/wiki/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29_.3F

And also check the php and mysql error log.

-brady

bradymiller wrote on Monday, September 19, 2011:

error above:
meant to say sites/default/sqlconf.php
-brady

enginama1 wrote on Monday, September 19, 2011:

1 My SQL user whoch has all privelidges to the DB

sql_conf.php is not getting updated, it still has the default openemr password and user

Checking on ‘settings for the ‘sql-mode’ parameter’

Language_definitions = 29512 rows

php.ini file (differences) :
error_reporting  =  E_ALL & ~E_NOTICE
post_max_size = 8M
upload_max_filesize = 10M

Obviously the pup.ini settings are different but would these differences impact the process before I go ahead and change them?

bradymiller wrote on Monday, September 19, 2011:

Hi,

Ok, so your filling the database but then breaking either on user creation (as I recall this should be skipped when you create a database) or on modifying the sqlconf.php file.

Still will be good to know what the sql-mode setting is, but also recommend ensuring apache has write privileges to sqlconf.php (this would be odd if you didn’t, because step 1 checks for this). Also, the above php.ini difference are fine.
Also, to quickly clarify, you are still trying version 4.0, correct?

Let is know above and can go from there.

-brady

enginama1 wrote on Monday, September 19, 2011:

You might hate me for posting this but it might give you the info your are looking for…still checking on your questions from above:

Variable

Session value / Global value

auto increment increment

1

auto increment offset

1

automatic sp privileges

ON

back log

50

basedir

/

binlog cache size

32,768

bulk insert buffer size

8,388,608

character set client

utf8

(Global value)

latin1

character set connection

utf8

(Global value)

latin1

character set database

latin1

character set filesystem

binary

character set results

utf8

(Global value)

latin1

character set server

latin1

character set system

utf8

character sets dir

/usr/share/mysql/charsets/

collation connection

utf8_general_ci

(Global value)

latin1_swedish_ci

collation database

latin1_swedish_ci

collation server

latin1_swedish_ci

completion type

0

concurrent insert

1

connect timeout

8

datadir

/var/lib/mysql/

date format

%Y-%m-%d

datetime format

%Y-%m-%d %H:%i:%s

default week format

0

delay key write

ON

delayed insert limit

100

delayed insert timeout

300

delayed queue size

1,000

div precision increment

4

keep files on create

OFF

engine condition pushdown

OFF

expire logs days

0

flush

ON

flush time

3,600

ft boolean syntax

+ -><()~*:""&|

ft max word len

84

ft min word len

4

ft query expansion limit

20

ft stopword file

(built-in)

group concat max len

1,024

have archive

YES

have bdb

NO

have blackhole engine

YES

have compress

YES

have community features

NO

have profiling

NO

have crypt

YES

have csv

YES

have dynamic loading

YES

have example engine

YES

have federated engine

YES

have geometry

YES

have innodb

YES

have isam

NO

have merge engine

YES

have ndbcluster

NO

have openssl

NO

have ssl

NO

have query cache

YES

have raid

NO

have rtree keys

YES

have symlink

YES

hostname

monroe.nswebhost.com

init connect

init file

init slave

innodb additional mem pool size

1,048,576

innodb autoextend increment

8

innodb buffer pool awe mem mb

0

innodb buffer pool size

8,388,608

innodb checksums

ON

innodb commit concurrency

0

innodb concurrency tickets

500

innodb data file path

ibdata1:10M:autoextend

innodb data home dir

innodb adaptive hash index

ON

innodb doublewrite

ON

innodb fast shutdown

1

innodb file io threads

4

innodb file per table

OFF

innodb flush log at trx commit

1

innodb flush method

innodb force recovery

0

innodb lock wait timeout

50

innodb locks unsafe for binlog

OFF

innodb log arch dir

innodb log archive

OFF

innodb log buffer size

1,048,576

innodb log file size

5,242,880

innodb log files in group

2

innodb log group home dir

./

innodb max dirty pages pct

90

innodb max purge lag

0

innodb mirrored log groups

1

innodb open files

300

innodb rollback on timeout

OFF

innodb support xa

ON

innodb sync spin loops

20

innodb table locks

ON

innodb thread concurrency

8

innodb thread sleep delay

10,000

innodb use legacy cardinality algorithm

ON

interactive timeout

20

join buffer size

1,048,576

key buffer size

536,870,912

key cache age threshold

300

key cache block size

1,024

key cache division limit

100

language

/usr/share/mysql/english/

large files support

ON

large page size

0

large pages

OFF

lc time names

en_US

license

GPL

local infile

ON

locked in memory

OFF

log

OFF

log bin

OFF

log bin trust function creators

OFF

log error

log queries not using indexes

OFF

log slave updates

OFF

log slow queries

OFF

log warnings

1

long query time

10

low priority updates

OFF

lower case file system

OFF

lower case table names

0

max allowed packet

16,777,216

max binlog cache size

4,294,963,200

max binlog size

1,073,741,824

max connect errors

10

max connections

500

max delayed threads

20

max error count

64

max heap table size

16,777,216

max insert delayed threads

20

max join size

18446744073709551615

max length for sort data

1,024

max prepared stmt count

16,382

max relay log size

0

max seeks for key

4,294,967,295

max sort length

1,024

max sp recursion depth

0

max tmp tables

32

max user connections

8

max write lock count

4,294,967,295

multi range count

256

myisam data pointer size

6

myisam max sort file size

2,146,435,072

myisam mmap size

4,294,967,295

myisam recover options

OFF

myisam repair threads

1

myisam sort buffer size

67,108,864

myisam stats method

nulls_unequal

net buffer length

16,384

net read timeout

30

net retry count

10

net write timeout

60

new

OFF

old passwords

OFF

open files limit

2,558

optimizer prune level

1

optimizer search depth

62

pid file

/var/lib/mysql/monroe.nswebhost.com.pid

plugin dir

port

3,306

preload buffer size

32,768

protocol version

10

query alloc block size

8,192

query cache limit

1,048,576

query cache min res unit

4,096

query cache size

33,554,432

query cache type

ON

query cache wlock invalidate

OFF

query prealloc size

8,192

range alloc block size

4,096

read buffer size

2,097,152

read only

OFF

read rnd buffer size

262,144

relay log

relay log index

relay log info file

relay-log.info

relay log purge

ON

relay log space limit

0

rpl recovery rank

0

secure auth

OFF

secure file priv

server id

0

skip external locking

ON

skip networking

OFF

skip show database

OFF

slave compressed protocol

OFF

slave load tmpdir

/tmp/

slave net timeout

3,600

slave skip errors

OFF

slave transaction retries

10

slow launch time

2

socket

/var/lib/mysql/mysql.sock

sort buffer size

2,097,152

sql big selects

ON

sql mode

sql notes

ON

sql warnings

OFF

ssl ca

ssl capath

ssl cert

ssl cipher

ssl key

storage engine

MyISAM

sync binlog

0

sync frm

ON

system time zone

EDT

table cache

1,024

table lock wait timeout

50

table type

MyISAM

thread cache size

64

thread stack

196,608

time format

%H:%i:%s

time zone

SYSTEM

timed mutexes

OFF

tmp table size

33,554,432

tmpdir

/tmp/

transaction alloc block size

8,192

transaction prealloc size

4,096

tx isolation

REPEATABLE-READ

updatable views with limit

YES

version

5.0.91-community

version comment

MySQL Community Edition (GPL)

version compile machine

i686

version compile os

pc-linux-gnu

wait timeout

15

bradymiller wrote on Monday, September 19, 2011:

Hi,

I hate you (I’m totally kidding); more information is always better, so don’t feel bad about posting it. I’m not much of a mysql guru, but I think above stuff is ok (and it appears sql-mode is blank, which is what you want).

I reviewed the setup.php script code:
http://github.com/openemr/openemr/blob/master/setup.php

If you have created the database and have also filled it with data (which you have done), the problem is likely breaking when trying to access the sqlconf.php file. Can you paste the output from step 1 here.

-brady

-brady

enginama1 wrote on Monday, September 19, 2011:

step 1 ??? Step 1 is 'DO you wqant me to create the Db for you ?
Did you mean the check b4 step 1 … pasting that here in case thats what you meant.
Ensuring following files are world-writable…
‘/home/pctech/public_html/openemr/sites/default/sqlconf.php’ file is ready.

Ensuring following directories have proper permissions…
‘/home/pctech/public_html/openemr/sites/default/documents’ directory is ready.
‘/home/pctech/public_html/openemr/sites/default/edi’ directory is ready.
‘/home/pctech/public_html/openemr/sites/default/era’ directory is ready.
‘/home/pctech/public_html/openemr/sites/default/letter_templates’ directory is ready.
‘/home/pctech/public_html/openemr/gacl/admin/templates_c’ directory is ready.
‘/home/pctech/public_html/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled’ directory is ready.
‘/home/pctech/public_html/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/cache’ directory is ready.

All required files and directories have been verified. Click to continue installation.

bradymiller wrote on Tuesday, September 20, 2011:

Hi,

What are the actual permissions of /home/pctech/public_html/openemr/sites/default/sqlconf.php:
paste output of ‘ls -al /home/pctech/public_html/openemr/sites/default/sqlconf.php’

Also, after a failed install, paste what you get in your php error log file.

-brady

gutiersa wrote on Tuesday, September 20, 2011:

Hi,

Here is my two cents.
Do I understand correctly? step 3 hangs at line

Creating Language Translation (latin1) tables… Creating Language Translation (latin1) tables…

? There is no further lines? Also this is a new install of openemr4? Which is apache version?

Doubt php.ini or http.conf are issues cuz these get modified after step 3.

Consider a version issue. I have php 5.3.1, mysql 5.1.41, and apache2.2 at my test site. windows using xampp server.

One of your files may also be corrupted  if u have modified any of the code. Consider downloading a new copy of openemr4, and the patch. and replace your current openemr folder with the new one. (BACK UP FIRST).

If still no luck, consider this:

finding the specific files that contain the actual database commands/queries (I was not able to find just one all inclusive file), and use the sql language (sql query in phpmyadmin (since u cannot access the database from openemr, cuz your install is not completed) to create and populate the tables manually. Some files are found in openemr/sql. Then u can run setup.php again and click on ‘do not create the database’

this is what I have from XAMPP version 1.7.3 (just now version 1.7.4 has been released.) in my test server.

Apache 2.2.14 (IPV6 enabled)
MySQL 5.1.41 (Community Server) with PBXT engine 1.0.09-rc
PHP 5.3.1 (PEAR, Mail_Mime, MDB2, Zend)
Perl 5.10.1 (Bundle::Apache2, Apache2::Request, Bundle::Apache::ASP, Bundle::Email, Bundle::DBD::mysql, DBD::SQlite, Randy Kobes PPM)
phpMyAdmin 3.2.4

Good luck Sandra

gutiersa wrote on Tuesday, September 20, 2011:

Hi,

Here is my two cents.
Do I understand correctly? step 3 hangs at line

Creating Language Translation (latin1) tables… Creating Language Translation (latin1) tables…

? There is no further lines? Also this is a new install of openemr4? Which is apache version?

Doubt php.ini or http.conf are issues cuz these get modified after step 3.

Consider a version issue. I have php 5.3.1, mysql 5.1.41, and apache2.2 at my test site. windows using xampp server.

One of your files may also be corrupted  if u have modified any of the code. Consider downloading a new copy of openemr4, and the patch. and replace your current openemr folder with the new one. (BACK UP FIRST).

If still no luck, consider this:

finding the specific files that contain the actual database commands/queries (I was not able to find just one all inclusive file), and use the sql language (sql query in phpmyadmin (since u cannot access the database from openemr, cuz your install is not completed) to create and populate the tables manually. Some files are found in openemr/sql. Then u can run setup.php again and click on ‘do not create the database’

this is what I have from XAMPP version 1.7.3 (just now version 1.7.4 has been released.) in my test server.

Apache 2.2.14 (IPV6 enabled)
MySQL 5.1.41 (Community Server) with PBXT engine 1.0.09-rc
PHP 5.3.1 (PEAR, Mail_Mime, MDB2, Zend)
Perl 5.10.1 (Bundle::Apache2, Apache2::Request, Bundle::Apache::ASP, Bundle::Email, Bundle::DBD::mysql, DBD::SQlite, Randy Kobes PPM)
phpMyAdmin 3.2.4

Good luck Sandra

gutiersa wrote on Tuesday, September 20, 2011:

sorry, above went twice

gutiersa wrote on Tuesday, September 20, 2011:

clarification:

by ‘Consider a version issue’ above I meant a version incompatibility with your mysql version and opnemr.

there definitely is something wrong with phpmyadmin (could not locate version) inside openemr, as oposed to phpmyadmin from xampp (opened outside of   openemr.
When I go to admin database I am unable to run any queries. I keep getting error messages.

BTW, the reason I suggested intalling the database manually is cuz you will get error messages from mysql via phpmyadmin. and finally will figure out what is wrong

sandra

enginama1 wrote on Tuesday, September 20, 2011:

So to Brady’s Q:
I don’t have command line, but I can get my permissions via ftp, permissions are set to 644 (Read/write Owner, Read everyone else), so should I set it to 664?. I have asked for the php error log file as not able to find one with the access I have. They did confirm no sql mode set from your previous question but I think we already confirmed that via the “don’t hate me” mysql settings list.

Per Sandra’s:
I have retried redownloading and reinstalling 3 times. I downloaded 4.0 first, and the page displayed:
Configuring OpenEMR…
Connecting to MySQL Server… OK.
OK.
(That was it)

Then I deleted all the files and DB’s and downloaded openemr 3.3
Results from that were:
Configuring OpenEMR…
Connecting to MySQL Server… OK.
Opening database…OK.
Creating Main tables… OK
Creating Language Translation (latin1) tables… Creating Language Translation (latin1) tables…

I then deleted all files and DB’s and redownloaded 4.0 again and results from that were the same as the first time, so know its not a download/upload file corruption issue.

Regarding the suggestion of install DB manually, it’s actually creating all the tables and it populates 29512 rows in language_definition table amongst others, it seems the updating of config files is where it stops…. I’m assuming 92 tables is the correct number of tables to create or is it not finishing the whole DB build?

Running :
Linux 2.6.9-023stab053.2-entnosplit
PHP version 5.2.17
MySQL version 5.0.91-community
Apache 2.2.17

Thanks to both of you for continuing to work with me on this and not leaving me to my own devices as I’ve run out of ideas on how to identify the problem.

gutiersa wrote on Tuesday, September 20, 2011:

agree

not version conflict

the last table should be x12_partners so if that is your last table, it is creating them all.

I still think your language translation table is the problem, cuz otherwise u would be getting the “…OK”, and the program would hang after that.

Anyway with my current testing set up in a windows vista computer, using the above versions, I created a brand new installation of openemr. (I used another name of course). My actual  openemr test installation has the full database of my live installation, from a  FreeBSD version 7 server.

In the newly created database there are 114 tables.  Here are some:






…etc

lang_constants has 4724 rows
lang_custom has 0 rows (not populated)
lang_definitions has 29512 rows
lang_languages has 9 rows
layout_options has 125 rows
lbf_data has 0 rows
lists has 0 rows
list_options has 540  rows
log has 0 rows…


…etc
transactions has 0 rows
users has 1 row
user_settings has 17 rows
version has 1 row
x12_partners has 0 rows

and so on and so forth (I can email you an sql export of the newly created database fo a completely new openemr instalation if u want).

For now compare these and lemme know if any discrepancies.

sandra

gutiersa wrote on Tuesday, September 20, 2011:

consider this:

If you have a windows computer consider doing a test install. You would have complet contro, privileges and acces to all files including logs. Xampp is the best. There may be instructions in the wiki or website somewhere. (I’m not familiar with all the website and domain changes.

sandra

gutiersa wrote on Tuesday, September 20, 2011:

I meant control in prev message.

If u do not find instructions on xammp and openemr lemme know

enginama1 wrote on Tuesday, September 20, 2011:

lang_constants has 4724 rows - YES
lang_custom has 0 rows (not populated) - YES
lang_definitions has 29512 rows - YES
lang_languages has 9 rows - YES
layout_options has 125 rows - YES
lbf_data has 0 rows - YES
lists has 0 rows - YES
list_options has 540  rows - YES
log has 0 rows…- YES
transactions has 0 rows - YES
users has 1 row - NO - zero rows
user_settings has 17 rows -YES
version has 1 row - YES
x12_partners has 0 rows - YES

As you will see it didn’t create any users and per my previous statements it’s not updating the sqlconf.php either.

Sounds like we are getting closer… not sure what it means though. LOL

enginama1 wrote on Tuesday, September 20, 2011:

and only 94 tables

enginama1 wrote on Tuesday, September 20, 2011:

Response from system admin:
If the application/script generates any error, error_log will be created within same folder.

There is no error_log being created