fastcampus-eatgo icon indicating copy to clipboard operation
fastcampus-eatgo copied to clipboard

63강 한꺼번에 실행하기 문의드립니다.

Open khx1712 opened this issue 4 years ago • 1 comments

docker-compose up 으로 이미지를 생성하려고 하면 밑과 같이 오류가 나오는데 어떻게 해야 할까요ㅜㅜㅜ 무엇이 문제인지 모르겠습니다

> Recreating fooda_mysql_1 ... done
Recreating fooda_customer-api_1 ... done
Recreating fooda_admin-api_1    ... done
Recreating fooda_login-api_1    ... done
Attaching to fooda_mysql_1, fooda_admin-api_1, fooda_customer-api_1, fooda_login-api_1

admin-api_1     | run.sh: 5: run.sh: Syntax error: "done" unexpected (expecting "do")
customer-api_1  | run.sh: 5: run.sh: Syntax error: "done" unexpected (expecting "do")
login-api_1     | run.sh: 5: run.sh: Syntax error: "done" unexpected (expecting "do")
fooda_admin-api_1 exited with code 2
fooda_customer-api_1 exited with code 2
mysql_1         | Initializing database
mysql_1         | 2020-08-25 14:41:18 0 [Warning] InnoDB: Failed to set O_DIRECT on fi
le./ibdata1; OPEN: Invalid argument, continuing anyway. O_DIRECT is known to result in
 'Invalid argument' on Linux on tmpfs, see MySQL Bug#26662.
mysql_1         | 2020-08-25 14:41:18 0 [ERROR] InnoDB: Corrupted page [page id: space
=0, page number=0] of datafile './ibdata1' could not be found in the doublewrite buffe
r.
fooda_login-api_1 exited with code 2
mysql_1         | 2020-08-25 14:41:18 0 [ERROR] InnoDB: Plugin initialization aborted
with error Data structure corruption
mysql_1         | 2020-08-25 14:41:18 0 [ERROR] Plugin 'InnoDB' init function returned
 error.
mysql_1         | 2020-08-25 14:41:18 0 [ERROR] Plugin 'InnoDB' registration as a STOR
AGE ENGINE failed.
mysql_1         | 2020-08-25 14:41:18 0 [ERROR] Unknown/unsupported storage engine: In
noDB
mysql_1         | 2020-08-25 14:41:18 0 [ERROR] Aborting
mysql_1         |
mysql_1         | Installation of system tables failed!  Examine the logs in
mysql_1         | /var/lib/mysql/ for more information.
mysql_1         |
mysql_1         | The problem could be conflicting information in an external
mysql_1         | my.cnf files. You can ignore these by doing:
mysql_1         |
mysql_1         |     shell> /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
mysql_1         |
mysql_1         | You can also try to start the mysqld daemon with:
mysql_1         |
mysql_1         |     shell> /usr/sbin/mysqld --skip-grant-tables --general-log &
mysql_1         |
mysql_1         | and use the command line tool /usr/bin/mysql
mysql_1         | to connect to the mysql database and look at the grant tables:
mysql_1         |
mysql_1         |     shell> /usr/bin/mysql -u root mysql
mysql_1         |     mysql> show tables;
mysql_1         |
mysql_1         | Try 'mysqld --help' if you have problems with paths.  Using
mysql_1         | --general-log gives you a log in /var/lib/mysql/ that may be helpful
.
mysql_1         |
mysql_1         | The latest information about mysql_install_db is available at
mysql_1         | https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
mysql_1         | You can find the latest source at https://downloads.mariadb.org and
mysql_1         | the maria-discuss email list at https://launchpad.net/~maria-discuss

mysql_1         |
mysql_1         | Please check all of the above before submitting a bug report
mysql_1         | at http://mariadb.org/jira
mysql_1         |
fooda_mysql_1 exited with code 1

khx1712 avatar Aug 25 '20 14:08 khx1712

[ERROR] InnoDB: Corrupted page [page id: space=0, page number=0] of datafile './ibdata1' could not be found in the doublewrite buffer.

정확히 어떤 환경에서 실행하시는 건지 모르겠는데, 이 부분이 핵심 메시지로 보입니다. 해당 파일이 손상된 걸로 보이는데, 저라면 지금 가볍게 실행하는 중이라면 그냥 data 폴더를 지우고 다시 시도해 볼 것 같습니다. 중요한 일이라면 recover 등의 키워드를 넣어서 복구하는데 집중하거나 백업된 데이터를 활용하고요.

ahastudio avatar Sep 27 '20 17:09 ahastudio