CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
Pages: [1]

Author Topic: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...  (Read 2032 times)

steve.neill

  • Guest
Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 02:42:05 pm
I'm tearing my hair out over how to get past this...

I'm trying to upgrade from 2.2.6 to 3.0.1 but it's stalling with the following error:

Code: [Select]
Error Details:

Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -18
    [message] => DB Error: no such table
    [mode] => 16
    [debug_info] => UPDATE civicrm_report_instance
                       SET form_values = REPLACE(form_values,'#',';')  [nativecode=1146 ** Table 'coaiddrupal.civicrm_report_instance' doesn't exist]
    [type] => DB_Error
    [user_info] => UPDATE civicrm_report_instance
                       SET form_values = REPLACE(form_values,'#',';')  [nativecode=1146 ** Table 'coaiddrupal.civicrm_report_instance' doesn't exist]
    [to_string] => [db_error: message="DB Error: no such table" code=-18 mode=callback callback=CRM_Core_Error::handle prefix="" info="UPDATE civicrm_report_instance
                       SET form_values = REPLACE(form_values,'#',';')  [nativecode=1146 ** Table 'coaiddrupal.civicrm_report_instance' doesn't exist]"]
)

The civicrm_report_instance table does not exist in the DB, but why isn't it being created as part of the upgrade? I'm running the latest version of Drupal and PHP.

Any ideas please?

Steve[/code]
« Last Edit: October 23, 2009, 09:26:47 am by steve.neill »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 03:00:25 pm

1. can u try from a clean version of your 2.2.6 db. Are u sure it is a 2.2.6 db (can u check in the version column of civicrm_domain table)

2. the report_instance table is created from the 2.2.6 -> 2.2.7 incremental upgrade

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

steve.neill

  • Guest
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 03:04:50 pm
Hi lobo,

Actually I tried a direct 2.2.3 -> 3.0.1 upgrade and that failed with the same error, then I tried doing it incrementally, and it hit the problem going from 2.2.6 to 2.2.7.

I'm glad I did my backups first.

Any other ideas? I'm really stuck with this.

Thanks,
Steve
« Last Edit: October 22, 2009, 03:08:25 pm by steve.neill »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 03:14:17 pm

can you email your 2.2.3 database to deepak at webaccess dot co dot in

we'll take a look and get back 2 u

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

junglecoder

  • Guest
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 04:41:30 pm
Greetings everyone,

I am having a similar issue.

I am trying to upgrade from 2.2.3 to 3.0 and I am also getting table column errors. It seems that the table structure changes in the upgrades. I am pretty new at this and maybe there is an obvious solution, but ... since I have current data in the 2.2.3 table structure, how do I get it into the new table structure? Is there a script that migrates the data or is this something that I need to do manually?

In the 3.0 package there are PHP update scripts, but none of them seem to be labeled for a version 2 to 3 upgrade.

Any advice or links to information would be much appreciated. Thank you in advance  :)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 05:39:17 pm

please avoid piggybacking on other issues. Please start a new forum topic and give us more exact details

please read: http://civicrm.org/node/650 and click on the appropriate link relevant to you (install or upgrade etc). The instructions on the wiki are quite detailed

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

junglecoder

  • Guest
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 06:18:18 pm
ok, thanks

steve.neill

  • Guest
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 07:00:33 pm
Lobo,

I've found the solution (after looking at the code), and thankfully it turns out to be a simple fix...

Make sure the template files (*.mysql.tpl) in /civicrm/CRM/Upgrade/Incremental/sql have file permissions of 755. When I unpacked the sources they had perms of 700!

After I changed the perms everything went without a hitch!

Hope this helps someone else.

Steve

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 22, 2009, 07:58:04 pm

wow :( how did those files have that permission?

we'll need to add some sort of check to make sure we can read those files, but that definitely is a great clue and help to us (and other folks)

thanx for the report back

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 25, 2009, 11:25:56 pm
Quote from: Donald Lobo on October 22, 2009, 07:58:04 pm
wow :( how did those files have that permission?

My guess is, the user’s umask is set to something like 077 (u=,g=rwx,o=rwx), and so all the templates are created with 700 permissions (read+write+exec for the user, but no access for the group nor others). If so, there’s not much we can do about it, other than checking umask (and/or creating a file and trying to read it) upon install.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...
October 25, 2009, 11:35:02 pm
Note: PHP’s umask() might be a solution (or at least a way to check) here.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Unable to upgrade from 2.2.6 to 3.0.1 -- CiviReport tables...

This forum was archived on 2017-11-26.