Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrading from churchinfo #3420

Closed
sjreeves opened this issue Nov 24, 2017 · 40 comments · Fixed by #3445
Closed

upgrading from churchinfo #3420

sjreeves opened this issue Nov 24, 2017 · 40 comments · Fixed by #3445

Comments

@sjreeves
Copy link

I am trying to upgrade from churchinfo. I have tried every possible way, and I'm getting database errors no matter what. If I restore the database from backup, I get

Error text: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'icon' in 'field list'

If I try to ignore this error and proceed (for example, going to View All Persons), I get

There was an error upgrading your ChurchCRM database:
SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'grp_active'

I have spent an inordinate amount of time setting up the server and getting this ready to go, so I sure hope this isn't a dead end. Any help will be greatly appreciated.

@DawoudIO
Copy link
Contributor

What version of churchinfo

@sjreeves
Copy link
Author

sjreeves commented Nov 24, 2017 via email

@DawoudIO
Copy link
Contributor

If you can revert the dB back I can help you with the steps

We have not tested it in a while but you should be able to run the following scripts in order and tell me which one breaks

https://github.com/ChurchCRM/CRM/tree/master/src/mysql/upgrade

@DawoudIO
Copy link
Contributor

Don’t run 2.9.0 yet

@sjreeves
Copy link
Author

sjreeves commented Nov 24, 2017 via email

@DawoudIO
Copy link
Contributor

Install a fresh copy of church crm and use the top right corner bug button and file a bug so that we can see you system setup

@sjreeves
Copy link
Author

sjreeves commented Nov 24, 2017 via email

@DawoudIO
Copy link
Contributor

give me a few days as I need to build a new DB install ChurchInfo and test and fix the upgrade as needed... but we will get you upgraded so fear not.

@DawoudIO DawoudIO self-assigned this Nov 24, 2017
@DawoudIO DawoudIO added this to the 2.9.0 milestone Nov 24, 2017
@sjreeves
Copy link
Author

sjreeves commented Nov 24, 2017 via email

@crossan007
Copy link
Contributor

https://github.com/ChurchCRM/CRM-QA should give you a quick way to spin up 1.2

@DawoudIO
Copy link
Contributor

is this your #3431

@DawoudIO
Copy link
Contributor

I am working on a fix for you now. Going from 1.2.14 to 2.8.x

@DawoudIO
Copy link
Contributor

ok found the issue it is in 2.7.0 upgrade code... looking for the fix now

@DawoudIO
Copy link
Contributor

@sjreeves I have a fix, I can't get auto upgrade to work 100%

can you test it manually please

  1. Restore the 1.2.14 DB
  2. Unzip the 2.8.15 zip file
  3. override local 2.7.0 file with https://github.com/ChurchCRM/CRM/blob/master/src/mysql/upgrade/2.7.0.sql

run the following upgrade scripts one by one (https://github.com/ChurchCRM/CRM/tree/master/src/mysql/upgrade)

  1. 2.0.0
  2. 2.1.0
  3. 2.1.3
  4. 2.1.8
  5. 2.2.0
  6. 2.3.0
  7. 2.4.0
  8. 2.5.0
  9. 2.6.0
  10. rebuild_nav_menus
  11. 2.7.0 <-- new copy
  12. 2.8.0

@DawoudIO
Copy link
Contributor

DawoudIO commented Nov 25, 2017

using #3443 to track auto DB upgrade issue

@DawoudIO
Copy link
Contributor

Ok, I was able to get the issue fixed to auto upgrade. After merging #3443 we should have a 2.9.0 RC build is ready

@sjreeves
Copy link
Author

sjreeves commented Nov 26, 2017 via email

@DawoudIO
Copy link
Contributor

Get it from http://demo.churchcrm.io/

@sjreeves
Copy link
Author

sjreeves commented Mar 2, 2018 via email

@sjreeves
Copy link
Author

sjreeves commented Mar 2, 2018 via email

@DawoudIO
Copy link
Contributor

DawoudIO commented Mar 2, 2018

Make sure your dB user has full admin power over the dB. The error is due to a missing View

@sjreeves
Copy link
Author

sjreeves commented Mar 2, 2018 via email

@sjreeves
Copy link
Author

sjreeves commented Mar 3, 2018 via email

@sjreeves
Copy link
Author

sjreeves commented Mar 7, 2018

Do you have any suggestions? Is there a way to upgrade the database outside the web interface? I'm dead in the water as it is.

@crossan007
Copy link
Contributor

I'm spinning up a 1.2.14 VM now to test this.

@crossan007
Copy link
Contributor

@sjreeves If you're comfortable trying new code before release - take a look at the changes in PR #4085.

I wouldn't recommend an unreleased branch for "production use," but we are close to 3.0.0 and it will be part of that relese

It should solve the issues you're having. Please let me know if it does allow you to run the upgrade.

P.S. - you should also now be able to use the GUI "restore" method with your 1.2.14 database.

@crossan007 crossan007 modified the milestones: User Support, 3.0.0 Mar 7, 2018
@sjreeves
Copy link
Author

sjreeves commented Mar 7, 2018 via email

@crossan007
Copy link
Contributor

crossan007 commented Mar 7, 2018

@sjreeves there's a few ways to help with testing changes to the system:

Best:
This option will help you test the "latest and greatest" features we're working on before release with the least amount of "repeated" friction. This also requires the most technical understanding on your part, but in my opinion yields the greatest reward:

  1. Review the Contributing wiki
  2. Set up a personal "development server" using vagrant
  3. Use GIT to "check-out" the feature branches we're working on.
  4. Test new things locally on your machine, without any worry of messing something up

Option 2:
Wait for changes to be merged to master, and try the demo site at: http://demo.churchcrm.io/

Option 3:
Same as 2, but instead of trying the changes on the live demo site, scroll down a bit and download the zip file with the same hash value as the commit in which the changes were made:
image

Option 4:
Simply wait for the next release :-)

@ghost ghost removed the In Review label Mar 7, 2018
@crossan007
Copy link
Contributor

@sjreeves #4085 was just merged. There will be a ZIP file with the full "pre-release" build on the demo site in about 15 minutes (or whenever the tests pass and automated builds complete).

You can check there for the zip file.

Again - this is not meant for production use, so best to wait for full 3.0.0 before fully committing to running it ;)

@crossan007
Copy link
Contributor

crossan007 commented Mar 7, 2018

@sjreeves
Copy link
Author

sjreeves commented Mar 12, 2018 via email

@sjreeves
Copy link
Author

sjreeves commented Mar 12, 2018 via email

@DawoudIO
Copy link
Contributor

lol, it is informative ;)

try looking into the /logs dir for -php.log or -app.log for more info

@DawoudIO DawoudIO reopened this Mar 12, 2018
@sjreeves
Copy link
Author

sjreeves commented Mar 12, 2018 via email

@DawoudIO
Copy link
Contributor

@crossan007 you worked on events... do you recall where this was added

@crossan007
Copy link
Contributor

events_event.location_id was added with 112d47d and will be part of 3.0.0; however, it is not yet released

@sjreeves what file did you download?

@crossan007
Copy link
Contributor

The column should have been added with 112d47d#diff-3ca2a2f49ad4ea70a36f43e59d1451c1R2

@sjreeves
Copy link
Author

sjreeves commented Mar 13, 2018 via email

@DawoudIO
Copy link
Contributor

ok 3.0.0 Release is going on today please download once it is released and let us know if you are still having the same issue, you will need to rollback to churchinfo backup and then apply the upgrade

@sjreeves
Copy link
Author

sjreeves commented Mar 17, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants