Started a new post on this. Switching boxes and upgrading OpenEMR at the same time. Followed the instructions below from another post.
hey,
The new database “shell” created by 3.2 will not be compatible with your older database (because of character set issues). But this is easy to deal with.
Do the following step in this order:
1. Run back up script
2. Copy your back up AND the actual restore script from your openemr 3.01 version to ubuntu
3. Run the restore script (again, the one from your previous version), and at the script prompt place openemr at /var/www/openemr/ )
4. Download and run the ubuntu-3.2 openemr package DONE
-brady
Everything works as advertised until I go to install the ubuntu-3.2 package. At this point I get this error:
xyz@XYZ-desktop:~/Downloads$ sudo dpkg -i openemr_3.2.0-1_all.deb
password for xyz:
(Reading database … 127082 files and directories currently installed.)
Unpacking openemr (from openemr_3.2.0-1_all.deb) …
Found a version of openemr at /var/www/openemr. Do you want to attempt an upgrade (ensure you have a backup before proceeding)? y
Unable to upgrade from … version package with raw method, so can not upgrade the OpenEMR Package.
EXITING……….
dpkg: error processing openemr_3.2.0-1_all.deb (-install):
subprocess new pre-installation script returned error exit status 1
postrm asked to do abort-install
Errors were encountered while processing:
openemr_3.2.0-1_all.deb
It should be noted that prior to running the “./restore” script there was not a version of OpenEMR at /var/www/openemr. This was added with install script.
Ok here are the files: (From the new box - the Ubuntu 10.04 Box)
/var/log/openemr/install
Fri Sep 3 00:28:46 EDT 2010: Unable to upgrade from … version package with raw method, so can not upgrade the OpenEMR Package.
Fri Sep 3 00:28:46 EDT 2010: EXITING……….
Fri Sep 3 00:38:19 EDT 2010: Unable to upgrade from … version package with raw method, so can not upgrade the OpenEMR Package.
Fri Sep 3 00:38:19 EDT 2010: EXITING……….
Fri Sep 3 00:56:20 EDT 2010: Unable to upgrade from 3.0.0-20090305 version package with raw method, so can not upgrade the OpenEMR Package.
Fri Sep 3 00:56:20 EDT 2010: EXITING……….
Tue Sep 7 06:58:57 EDT 2010: You have chosen to not install the OpenEMR package.
Tue Sep 7 06:58:57 EDT 2010: EXITING……….
Wed Sep 8 16:42:24 EDT 2010: Unable to upgrade from … version package with raw method, so can not upgrade the OpenEMR Package.
Wed Sep 8 16:42:24 EDT 2010: EXITING……….
Thu Sep 9 08:12:07 EDT 2010: Unable to upgrade from … version package with raw method, so can not upgrade the OpenEMR Package.
Thu Sep 9 08:12:07 EDT 2010: EXITING……….
Thu Sep 9 12:35:21 EDT 2010: You have chosen to not install the OpenEMR package.
Thu Sep 9 12:35:21 EDT 2010: EXITING……….
The other file "/etc/openemr/openemr.conf DOES NOT EXIST.
The is no “openemr” directory under /etc/. Could this mean that something went wrong with the “./restore” script?
I did some more poking around and my /var/www/openemr/interface/globals.php file is completely empty. There is nothing in this file. I do have a two old globals.php files with different names that I saved separately awhile back.
I do not know if this is relevant.
hey,
The debian package grabs the version from the globals.php file, and it appears to not be getting it (since it’s blank), so it exits. Sounds like having issue with the restore script. After you run the restore script, does openemr work ?
-brady
I switched out the empty globals.php file and was careful to change the references to the correct webroot on the new box.
After doing this I can log in to OpenEMR however the calendar does not show up.
At this point decided to attempt to upgrade again. Below are the results.
xxx@xxxdesktop:~/Downloads$ sudo dpkg -i openemr_3.2.0-1_all.deb
(Reading database … 127086 files and directories currently installed.)
Unpacking openemr (from openemr_3.2.0-1_all.deb) …
Found a version of openemr at /var/www/openemr. Do you want to attempt an upgrade (ensure you have a backup before proceeding)? y
Unable to upgrade from 3.0.0-20090305 version package with raw method, so can not upgrade the OpenEMR Package.
EXITING……….
dpkg: error processing openemr_3.2.0-1_all.deb (-install):
subprocess new pre-installation script returned error exit status 1
postrm asked to do abort-install
Errors were encountered while processing:
openemr_3.2.0-1_all.deb
xxx@xxx-desktop:~/Downloads$
hi,
Biggest concern here is that something is seriously going wrong with the restore script (a blank globals.php and blank calendar are signs of likely systemic problems). Rather than using the restore script, I’d rec restoring it manually from the backup file. See here for an example of this here (step 6 and middle of step 9): http://www.bradymd.com/appliance/update3/
-brady
After doing the restore and before upgrading, make sure the restored system works as it did before. Any problems with that should be resolved before upgrading.
It has been awhile since I commented on this due to my schedule.
The good news is that I finally hit on something that allowed the upgrade. Unfortunately it was after doing the whole tar ball approach and manually creating the database etc…… None of this however was needed.
It turns out that the Ubuntu upgrade scripts look for the version number of the installation that they are going to upgrade. Evidently it checks the globals.php for these variables. The scripts found in my globals.php 3.0.0-2xxxxx which immediately shutdown the upgrade.
The strange thing is that I had installed 3.1 from the tarball and before from the the deb package however both of them pulled old variables from a previous globals.php and did not replace the version number.
Looking forward to seeing how things work now that 3.2 is on board.