Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 723F1F72C for ; Tue, 1 Oct 2013 15:01:43 +0000 (UTC) Received: (qmail 67106 invoked by uid 500); 1 Oct 2013 15:01:42 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 67074 invoked by uid 500); 1 Oct 2013 15:01:42 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 67062 invoked by uid 99); 1 Oct 2013 15:01:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 15:01:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.220.51] (HELO mail-pa0-f51.google.com) (209.85.220.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 15:01:35 +0000 Received: by mail-pa0-f51.google.com with SMTP id kp14so7560681pab.24 for ; Tue, 01 Oct 2013 08:01:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=GIuMV6nXdIZeiQumJtOnwZXjJSMBlH173j8N1NhP9eY=; b=Q485hh7EQjfXdttuLQMI3wrG/22E/gMAZJe0+M8Doo0kNOHBxU5GYsovXLzCEZ+xFv 1StvCwB717E4V+T8e38biLON85i2J1k1wQ4YJWLIy+QF6ksmSixnCs9FS7QUAiRGGuVj mrP5eG4jqN14FI5aPdVq7e+3BgPvwS54tUCGku/YuJG9WrYbb5/BxxXb6j5ig0LFwBXa 0r3WeiLw223CHH324JB41dHGLa9yYr0ZYQSUTLcNSz1NGcWgs1o+9xA1lpwGDUMDvlkj RrOamVesjEuBVK4rUzR1oZCc0VBSjtHty9/4daw8N5cX6VDFToUUgO+maBdEZohJdN3y SQfQ== X-Gm-Message-State: ALoCoQk9FR1dnKXBnjvIqOkNKjV/pESKK1ALSQKETTOg3g8RScGfK/l2RH9RNzqhtZHEgIbpTd49 MIME-Version: 1.0 X-Received: by 10.68.90.1 with SMTP id bs1mr3634136pbb.169.1380639672984; Tue, 01 Oct 2013 08:01:12 -0700 (PDT) Received: by 10.70.80.7 with HTTP; Tue, 1 Oct 2013 08:01:12 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Oct 2013 23:01:12 +0800 Message-ID: Subject: Re: Error in backing up cloud database From: Indra Pramana To: "dev@cloudstack.apache.org" , "users@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=047d7b45008e457afc04e7af396c X-Virus-Checked: Checked by ClamAV on apache.org --047d7b45008e457afc04e7af396c Content-Type: text/plain; charset=ISO-8859-1 Dear all, We just realised that the 'template_view' is a new view introduced only on Cloudstack database version 4.2. CloudStack 4.1.1 doesn't have this. It seems that during my failed upgrade attempt last time, I did a restore of the 4.1.1 database over the existing 4.2 database (instead of over an empty database), causing some new views/tables introduced on 4.2 still exists on my restored 4.1.1 database. Anyone can advise how can I do a clean-up of the existing database so that I can do a proper upgrade from 4.1.1 to 4.2? Other than template_view, any other view/tables or column (on an existing table) I need to delete? Looking forward to your reply, thank you. Cheers. On Tue, Oct 1, 2013 at 9:25 PM, Indra Pramana wrote: > Dear all, > > I tried to perform another upgrade today with Abhinav's assistance, and > right now I am not able to backup the cloud database. This is the error > when doing mysqldump: > > root@pri-db-01:~/backup/20131001# mysqldump -u cloud -p cloud > > cloudstack-backup3.sql > Enter password: > mysqldump: Couldn't execute 'show create table `template_view`': View > 'cloud.template_view' references invalid table(s) or column(s) or > function(s) or definer/invoker of view lack rights to use them (1356) > > When I tried to do a select command to the table directly, I got this > error message: > > mysql> select * from template_view; > ERROR 1356 (HY000): View 'cloud.template_view' references invalid table(s) > or column(s) or function(s) or definer/invoker of view lack rights to use > them > > We noted that the problem started to happen last week when I performed a > failed upgrade attempt from 4.1.1 to 4.2.0. At that time, the database was > already upgraded but because of some issues, we needed to revert back to > 4.1.1 and I did a restore of the 4.1.1 version database. However, there was > no error message during restoration and CloudStack was running fine since > then so I didn't realise about this problem until today when I perform > another upgrade attempt. > > Anyone has encountered this problem before and what can we do to resolve > this problem? > > Looking forward to your reply, thank you. > > Cheers. > > --047d7b45008e457afc04e7af396c--