monicahq / monica

Personal CRM. Remember everything about your friends, family and business relationships.
https://beta.monicahq.com
GNU Affero General Public License v3.0
21.39k stars 2.13k forks source link

Docker Instructions don't work on AWS #1475

Open camdroid opened 6 years ago

camdroid commented 6 years ago

Describe the bug When trying to spin up an instance of Monica on an AWS instance using the docker instructions found here, the following errors pop up when running docker-compose up:

...mysql_1     | Version: '5.7.22'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
monicahq_1  | /var/www/monica/scripts/docker/test-server.sh
monicahq_1  | APP_KEY already set
monicahq_1  | ✓ Maintenance mode: on
monicahq_1  | php artisan down --message=Upgrading Monica v2.2.1 --retry=10
monicahq_1  |
mysql_1     | 2018-06-11T02:47:23.995255Z 3 [ERROR] mysqld: Can't find file: './monica/cache.frm' (errno: 13 - Permission denied)
monicahq_1  | ✓ Resetting application cache
monicahq_1  | php artisan cache:clear
mysql_1     | 2018-06-11T02:47:24.000163Z 3 [ERROR] mysqld: Can't find file: './monica/cache.frm' (errno: 13 - Permission denied)
monicahq_1  | ✓ Maintenance mode: off
monicahq_1  | php artisan up
monicahq_1  |
monicahq_1  |
monicahq_1  | In Connection.php line 664:
monicahq_1  |
monicahq_1  |   SQLSTATE[HY000]: General error: 1017 Can't find file: './monica/cache.frm'
monicahq_1  |   (errno: 13 - Permission denied) (SQL: delete from `cache`)
monicahq_1  |
monicahq_1  |
monicahq_1  | In PDOConnection.php line 82:
monicahq_1  |
monicahq_1  |   SQLSTATE[HY000]: General error: 1017 Can't find file: './monica/cache.frm'
monicahq_1  |   (errno: 13 - Permission denied)
monicahq_1  |
monicahq_1  |
monicahq_1  | In PDOConnection.php line 80:
monicahq_1  |
monicahq_1  |   SQLSTATE[HY000]: General error: 1017 Can't find file: './monica/cache.frm'
monicahq_1  |   (errno: 13 - Permission denied)
monicahq_1  |
monicahq_1  |
monicahq_1  | AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message

When trying to access the web UI, these lines also appear:

mysql_1     | 2018-06-11T02:48:28.095362Z 5 [ERROR] mysqld: Can't find file: './monica/instances.frm' (errno: 13 - Permission denied)
monicahq_1  | 73.190.61.3 - - [11/Jun/2018:02:48:27 +0000] "GET / HTTP/1.1" 500 1458 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36"
monicahq_1  | 73.190.61.3 - - [11/Jun/2018:02:48:28 +0000] "GET /favicon.ico HTTP/1.1" 304 - "http://54.90.97.1:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36"

All that pops up in the browser is a message that says "Whoops, looks like something went wrong." Guessing it's a permission issue of some sort? Whatever I try, running docker-compose up resets the owners of the monica directory to user 1000 with group 101.

This was just installing according to the basic directions above - didn't mess with the MAIL* or DB* settings.

eleveneleven commented 6 years ago

I am having the same issue.