Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月7日 at 20:17

もちろん、バックアップしたデータ(phpファイルやデータベース等)をリカバリしてますよね?

Re: Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月7日 at 21:31
MAMP 2.0.3はそのままで3.0.7.3をインストールしました。
前の2.0.3はMAMP_2014-12-07_13-47-53と言う名前で残っています。
3.0.7.3のhtdocs内に2.0.3のc5のファイルがコピーされていました。
これだけじゃダメなのでしょうか。
バックアップとリカバリと言うのは、2.0.3上でバックアップを取って3.0.7.3上で回復させるということでしょうか。
PhpMyAdmin上ではデータベースはそのままの様ですが。よく分かりません。
 

Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 10:37
私自身はMAMPの2→3のアップデートはしたことがないので、MySQLの挙動がどうなっているのかわかりません。(クリーンインストールならしましたが)

実際表示できなくなっているサイトには何が表示されていて(あるいはなにが表示されなくて)という情報など、もう少し具体的に教えていただければ、私以外の方でもアドバイスができると思うんです。

何かが出来ないというのは、なにか問題があるからだと思うので、
それを絞り込むには情報が足りません。
 

Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 10:44
php.iniの設定が変わったせいかもしれませんね。とりあえず追加情報と言うことで、エラーログを確認してみてください。 MAMP/logs/ ディレクトリにログファイルが入っています。
 

Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 11:41
apache_error.log
php_error.log
mysql_error_log.err
が有ります。

apache_error.log
--------
[Sun Dec 07 13:49:33 2014] [notice] FastCGI: process manager initialized (pid 5589)
[Sun Dec 07 13:49:34 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 07 13:49:34 2014] [notice] Digest: done
[Sun Dec 07 13:49:34 2014] [notice] Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations
[Sun Dec 07 13:52:39 2014] [notice] caught SIGTERM, shutting down
[Sun Dec 07 13:52:41 2014] [notice] FastCGI: process manager initialized (pid 5744)
[Sun Dec 07 13:52:41 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 07 13:52:41 2014] [notice] Digest: done
[Sun Dec 07 13:52:41 2014] [notice] Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.5.18 mod_ssl/2.2.29 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.20.0 configured -- resuming normal operations
[Sun Dec 07 13:52:49 2014] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/htdocs/docs-assets, referer:http://localhost:8888/MAMP/?language=Japanese
[Sun Dec 07 14:34:20 2014] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store, referer:http://localhost:8888/*****/index.php/
[Sun Dec 07 15:31:23 2014] [error] [client 127.0.0.1] script '/Applications/MAMP/bin/phpMyAdmin/main.php' not found or unable to stat, referer:http://localhost:8888/phpMyAdmin/?lang=ja
[Sun Dec 07 15:34:18 2014] [error] [client 127.0.0.1] script '/Applications/MAMP/bin/phpMyAdmin/main.php' not found or unable to stat, referer:http://localhost:8888/phpMyAdmin/?lang=ja
[Sun Dec 07 15:34:21 2014] [error] [client 127.0.0.1] script '/Applications/MAMP/bin/phpMyAdmin/main.php' not found or unable to stat, referer:http://localhost:8888/phpMyAdmin/?lang=ja
[Sun Dec 07 15:35:08 2014] [error] [client 127.0.0.1] script '/Applications/MAMP/bin/phpMyAdmin/main.php' not found or unable to stat, referer:http://localhost:8888/phpMyAdmin/?lang=ja
--------
php_error.logはかなりの量ですがここに載せても大丈夫でしょうか。
.errファイルは何で開いたらいいのでしょうか。
 

Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 11:54
テキストエディタで開きます。一度エラーログファイルの内容を削除してから、表示されない以前のサイトにアクセスし、再度エラーログファイルを開き、追加されたと思われるものだけ貼ってください。でないと、原因なのかどうかが分かりません。
 

Re: Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 12:13
一つのc5にアクセスしたものが下記です。
apache_error.log
--------
[Mon Dec 08 12:00:58 2014] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/htdocs/*****

mysql_error_log.err
--------
141208 12:00:58 [ERROR] Cannot find or open table *c5インストール名*/config from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.
Seehttp://dev.mysql.com/doc/refman/5.5/en/innodb-troubleshooting.html
how you can resolve the problem.

141208 12:00:59 [ERROR] Cannot find or open table *c5インストール名*/logs from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.
Seehttp://dev.mysql.com/doc/refman/5.5/en/innodb-troubleshooting.html
how you can resolve the problem.

141208 12:00:59 [ERROR] Cannot find or open table *c5インストール名*/config from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.
Seehttp://dev.mysql.com/doc/refman/5.5/en/innodb-troubleshooting.html
how you can resolve the problem.

141208 12:00:59 [ERROR] Cannot find or open table *c5インストール名*/logs from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.
Seehttp://dev.mysql.com/doc/refman/5.5/en/innodb-troubleshooting.html
how you can resolve the problem.
--------
php_error.log
-------
[08-Dec-2014 04:00:59 Europe/Berlin] PHP Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1146: Table '*c5インストール名*.logs' doesn't exist] in EXECUTE("insert into Logs (logType, logText, logIsInternal, logUserID) values ('exceptions', 'Exception Occurred: /Applications/MAMP/htdocs/*c5インストール名*/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 mysql error: [1146: Table \'*c5インストール名*.config\' doesn\'t exist] in EXECUTE("select * from Config where uID = 0 order by cfKey asc")\n (1146)\n\n#0 /Applications/MAMP/htdocs/*c5インストール名*/concrete/libraries/3rdparty/adodb/adodb.inc.php(1037): adodb_throw(\'mysql\', \'EXECUTE\', 1146, \'Table \'*c5インストール名*...\', \'select * from C...\', false, Object(ADODB_mysql))\n#1 /Applications/MAMP/htdocs/*c5インストール名*/concrete/libraries/3rdparty/adodb/adodb.inc.php(1012): ADOConnection->_Execute(\'select * from C...\', false)\n#2 /Applications/MAMP/htdocs/*c5インストール名*/concrete/core/models/config.php(182): ADOConnection->Execute(\'select * from C...\')\n#3 /Applications/MAMP/htdocs/*c5インストール名*/concrete/core/models in /Applications/MAMP/htdocs/*c5インストール名*/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78
[08-Dec-2014 04:00:59 Europe/Berlin] PHP Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1146: Table '*c5インストール名*.logs' doesn't exist] in EXECUTE("insert into Logs (logType, logText, logIsInternal, logUserID) values ('exceptions', 'Exception Occurred: /Applications/MAMP/htdocs/*c5インストール名*/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 mysql error: [1146: Table \'*c5インストール名*.config\' doesn\'t exist] in EXECUTE("select * from Config where uID = 0 order by cfKey asc")\n (1146)\n\n#0 /Applications/MAMP/htdocs/*c5インストール名*/concrete/libraries/3rdparty/adodb/adodb.inc.php(1037): adodb_throw(\'mysql\', \'EXECUTE\', 1146, \'Table \'*c5インストール名*...\', \'select * from C...\', false, Object(ADODB_mysql))\n#1 /Applications/MAMP/htdocs/*c5インストール名*/concrete/libraries/3rdparty/adodb/adodb.inc.php(1012): ADOConnection->_Execute(\'select * from C...\', false)\n#2 /Applications/MAMP/htdocs/*c5インストール名*/concrete/core/models/config.php(182): ADOConnection->Execute(\'select * from C...\')\n#3 /Applications/MAMP/htdocs/*c5インストール名*/concrete/core/models in /Applications/MAMP/htdocs/*c5インストール名*/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78
---------
以上ですが、これでいいでしょうか。
c5は v5.6.2.1 です。
 

Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 12:35
Maybe you have deleted and recreated InnoDB data files but have forgotten to delete the corresponding .frm files of InnoDB tables, or you have moved .frm files to another database?


InnoDBデータファイルを削除または再作成した際に、InnoDBテーブルに対応する .frm ファイルを削除し忘れたか、.frm ファイルを他のデータベースに移していませんか?と書いてありますね。これ以上は私もよく分かりませんが、MAMPのバージョンアップの際にどのようなデータベース移行作業をしたかですが、ともかくMAMPのアップグレード時にMySQLデータベースの移行に失敗したようですね。
 

Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 13:28
> PhpMyAdmin上ではデータベースはそのままの様ですが。よく分かりません。

もしかして、テーブル(InnoDB)が消える症状かも知れません。
phpMyAdmin で、テーブルを確認していただけませんか?
 

Re: Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 13:31
あら、すでに回答が... ( ºΔº )〣
 

Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 13:58
テーブルが
FileVersions
PageSearchindex
PageStatistics
の3つしかありません。
前の2.0.3は立ち上がるかもしれません。
この場合2.0.3からDBを書き出して3.0.7.3に回復させればいいのでしょうか。
 

Re: Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月8日 at 14:33
> 前の2.0.3は立ち上がるかもしれません。
> この場合2.0.3からDBを書き出して3.0.7.3に回復させればいいのでしょうか。

以前の MAMP が起動すれば、phpMyAdmin から DB をエクスポート。
MAMP 3.0で起動し直して、DB をインポートすれば大丈夫だと思います。
ただし、以前の MAMP のフォルダーから dbフォルダーと htdocs フォルダーが MAMP 3.0のフォルダーに移動しているかもしれませんので、ご注意ください。
 

Re: Re: MAMP 2.0.3 -> 3.0.7.3で以前のc5サイトが表示されない

2014年12月12日 at 18:19
あの後色々試していましたが、MAMP/DB内のMySqlフォルダを調べた所、いくつかのフォルダーに赤いマイナスがついていました。アクセス権かもしれないと思い情報を見たところ通常のユーザーとは別のシステムと言うユーザーになっていました。
これを通常の管理者にした所データベースが復旧しました。と言うか読めない状態になっていたようです。原因は分かりませんがとりあえず表示しました。
皆さん、ありがとうございました。