Using 4.1.0 - upgrading to 4.2.0.1

mschap wrote on Friday, June 19, 2015:

I have been using 4.1.0 for the last 3 years. I do my backups which at one point stopped working for 14 months and then mysteriously started working again (linuxmint user). The machine I am currently using is in the process of slowly dieing. So…I have a new machine Linuxmint 17.1 and and install of the latest openemr download. I have my backup file and also a config file from 4.1.0 and I am trying to install on the new machine.

I have no clue how to utilize the config file (I am in Canada so there are such additions as provinces to the states list, PHN number, etc). I tried installing the backup file and the process went smoothly but now I cannot login using admin-pass, admin-mypassword, myaccount-mypassword and so I have no access.

Any help is appreciated - I have enough computer knowledge to be dangerous but I studied medicine and not computing ;). In advance thanks.

fsgl wrote on Friday, June 19, 2015:

Review this.

Be certain the database password is correct & that the MySQL root password is also correct.

Leave the second, blank, if never set. If it had been set but forgotten, the root password can be reset.

Note that these 2 passwords are different from that for login.

mschap wrote on Friday, June 19, 2015:

Install is fine - even the login image is the old one with the clinic name for 4.2 now. I can go in as administrator in linux and see the documents that are part of charts, etc. However, when I go to log in I get: Failure during database access! Check server error log. Which is different from the invalid password message I get when I type things in wrong on the 4.1 install

And guess what - I do not know how to check the server error log. Should I have upgraded one update at a time and then moved to 4.20 that way?

fsgl wrote on Friday, June 19, 2015:

When you installed 4.2.0 & restore the backup from 4.1.0 to 4.2.0, I think you used the sqlconf.php password from 4.1.0.

Try the following:

  1. Restore the 4.1.0 backup to 4.2.0 again, but this time use the password from the 4.2.0 sqlconf.php file.
  2. If you are able to login, follow Steps 6 & 7. Choose 4.1.0 as the version you are upgrading from.
  3. Patch to 3.

In the future, consider installing the Package for the easy upgrade, if you’ve not done so already.

mschap wrote on Friday, June 19, 2015:

Still the same problem - same message and inability to login. I also deleted the default folder before the re-install.

I may start over with the computer and try 4.10 as an install and then move up from there.

mdsupport wrote on Friday, June 19, 2015:

If you have webmin installed, you can access logs from system -> logs and selecting all recently changed files.

With webmin, you can also check your mySQL installation for any issues.

fsgl wrote on Friday, June 19, 2015:

I’ve given this matter a little more thought.

Because backup had been problematic for 14 months & because it restores the 4.1.0 web directory when the 4.2.0 web directory is needed, this transfer method is the wrong approach.

Transferring thus works well only if the old & new devices are on the same OpenEMR version.

It may be difficult to pinpoint each corrupt file to correct it.

Unlike in Windows, where the backup contains a copy of OpenEMR allowing the practice to resume work simply by starting Apache/MySQL; Linux users must first install OpenEMR in the new device before importing the old data.

A drawback of using Linux is the fact that incomplete deletion of OpenEMR will prevent its reinstall. The deletion of the xampp directory in Windows occurs in minutes & is complete.

Perhaps it would be more efficient to clear the decks & begin anew.

Suggestion:

  1. Delete OpenEMR in the new device by reinstalling LM 17.1.
  2. Create a system image before installing OpenEMR in case it needs deletion & reinstall.
  3. Install the Package via the command line as it is faster & less error-prone than using the Debi Installer.
  4. Copy the 4 default folders from 4.1.0: documents, era, edi, letter_templates & paste into the 4.2.0 default folder.
  5. Dump database, supplying root password if prompted;
    mysqldump -u root -p openemr > dumpfile.sql
  6. Copy dumpfile to home directory in new device.
  7. Restore old database,
    mysql -u root -p openemr < /home/your home directory username/dumpfile.sql
  8. Upgrade database via the command line.
  9. Check the login page is on 4.2.0 & if login is possible.
  10. Follow other directions.

mschap wrote on Thursday, July 02, 2015:

My last post is not appearing so:

I am wondering if my problem is around the config file? I do an export from 4.1 and then can re-import into 4.1, do the database recovery and all is fine. However, 4.2 doesn’t have the Import Config command under the Backups tab. Is there a script for this elsewhere that I could use? I have added provinces, and a clinic ID, and a few other things

fsgl wrote on Thursday, July 02, 2015:

Are you referring to attached?

If you are, that module does not handle the upgrade of the old database.

We understand you have a customized database, but it’s not something a mysqldump & recovery cannot handle.

fsgl wrote on Thursday, July 02, 2015:

If you need my suggestion above to be more explicit, let us know.

fsgl wrote on Friday, July 03, 2015:

Export Configuration will copy the files in attached, but it’s not the entire database as described here.

The regular backup will dump the database, but you are having a problem with its recovery.

You can tease out the copy of the database (openemr.sql) from emr_backup.tar & import it into phpMyAdmin in the new device. That method is less reliable as a mysqldump.

We will walk you through the entire process, step-by-step, in minute detail; if need be. Don’t be embarrassed to ask, because that is how we all learn.

mschap wrote on Saturday, July 04, 2015:

Step by step may well work - I was looking at the existing folder for phpMyAdmin and I don’t recognize any files in there for openemr. Just tell me what files to copy where and with sudo I am okay (maybe)

fsgl wrote on Sunday, July 05, 2015:

You’ll do fine. Ask questions if anything is unclear.

  1. Copy the 4 default folders from 4.1.0: documents, era, edi, letter_templates & any other customized default folder to flash drive.
  2. Dump 4.1.0 database, supplying root password if prompted;
    sudo mysqldump -u root -p openemr > dumpfile.sql
  3. Copy dumpfile to flash drive.
  4. Delete OpenEMR in new device as explained here.
  5. Be prepare to use the “nuclear option” & Macrium Reflect; if you cannot get rid of every last bit of OpenEMR. It is not possible to reinstall OpenEMR if old pieces remain.

mschap wrote on Monday, July 06, 2015:

Okay, so files are on the flash drive and there is a nice shiny new install of linuxmint on the other machine (no openEmr). Now?

fsgl wrote on Tuesday, July 07, 2015:

Package Install, Import of Old Data & Upgrade of Old Database

  1. Install the Ubuntu Debian Package. Run each of the commands, one at a time. You will be asked to supply a MySQL root password during the installation.
  2. Copy the dumpfile from flash drive to the home directory on the new device.
  3. In new device run this command to import old database,
    sudo mysql -u root -p openemr < /home/your home directory username/dumpfile.sql
    When prompted, supply MySQL root password from the installation of the package from Step 1 of this post.
  4. Copy the various default folders from 4.1.0 to the 4.2.0 default folder.
  5. Upgrade the old database with these instructions, again running one command at a time.
  6. Check that the login page is 4.2.0 (2) & that login is possible.
  7. Patch to 3 & follow other directions.

mschap wrote on Tuesday, July 07, 2015:

damn, one more issue - I cannot copy the documents file from the sites/default folder - even with sudo it says that I don’t have permission and it is omitted.(the other three I do not use: era, edi, and letter templates.

fsgl wrote on Wednesday, July 08, 2015:

Instead of using the Terminal, try the following:

  1. var/www/openemr/sites, open default as Administrator.
  2. copy 4 folders.
  3. paste them to flash drive.

fsgl wrote on Wednesday, July 08, 2015:

Hold down Ctrl key while left clicking each of the 4 folders, then right click for menu to select “Copy”.

Double click on the flash drive in left side bar, then right click in the empty space & select “Paste” from menu.

mschap wrote on Thursday, July 09, 2015:

I had tried that. For some reason it is opening the package installer (as super user) and then does nothing.

banaitv wrote on Thursday, July 09, 2015:

Hi
I am looking for a vendor who has installable open emr with following customization

  1. Should have soap entry using nation notes
  2. Should have past, personal, obstretic history as a part of history
  3. Should be able to generate prescription in a format provided by MCI
  4. Pdf reports should have custom header
  5. Should be able to print commonly used certificates viz under treatment, fitness, unfit certificate
    Please contact

Vaibhav

-----Original Message-----
From: “M S” mschap@users.sf.net
Sent: ‎09-‎07-‎2015 21:19
To: "[openemr:discussion] " 202504@discussion.openemr.p.re.sf.net
Subject: [openemr:discussion] Using 4.1.0 - upgrading to 4.2.0.1

I had tried that. For some reason it is opening the package installer (as super user) and then does nothing.

Using 4.1.0 - upgrading to 4.2.0.1

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openemr/discussion/202504/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/