You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @macdougall, Does the server returns any status code? if yes please paste the response headers and body here.
Will also be useful if you could paste your containers status using 'docker ps' command.
No status codes returned. But my containers are running in the background so I'd have to run a log off the docker command to check that. Here's my running containers:
9c95b787db07 redis:5.0 "docker-entrypoint.s…" 2 hours ago Up 2 hours 6379/tcp appwrite-ce_redis_1
8eb287e7a922 appwrite/mariadb:1.0.0 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:3306->3306/tcp appwrite-ce_mariadb_1
6be16643c81c appwrite/appwrite "/bin/bash /entrypoi…" 2 hours ago Up 2 hours 0.0.0.0:80->80/tcp appwrite-ce_appwrite_1
f75962e2a972 influxdb:1.6 "/entrypoint.sh infl…" 2 hours ago Up 2 hours 0.0.0.0:8086->8086/tcp appwrite-ce_influxdb_1
33c7de3da80f appwrite/telegraf:1.0.0 "/entrypoint.sh tele…" 2 hours ago Up 2 hours 8092/udp, 8094/tcp, 0.0.0.0:8125->8125/udp appwrite-ce_telegraf_1
dfdd5870ef82 appwrite/clamav:1.0.4 "/bin/bash /entrypoi…" 2 hours ago Up 2 hours (healthy) 3310/tcp appwrite-ce_clamav_1
d772cdc59737 appwrite/smtp:1.0.0 "/bin/entrypoint.sh …" 2 hours ago Up 2 hours 0.0.0.0:25->25/tcp appwrite-ce_smtp_1
Everything does seems to be running well, To try and figure whats going on I need more data. Can you try and paste some logs for both appwrite and mariadb conatiners?
Another thing that might help is to debug the nginx error log inside the appwrite container.
To get it, just run: docker exec -it 6be16643c81c bash
and in the conatiner run: cat /var/log/nginx/error.log
The server stop responding only after form submission?
Maybe try to remove all containers using 'docker-compose down' and then delete the appwrite-ce directory and run setup script again. Let me know if you have any lead.
This is a known issue where Gmail and other email providers reject messages sent from an ISP IP address. Anyway the Appwrite API ignores this type of errors and they do not cause any problem when using the stack on a dev environment.
Anyway if you have any indication that this might be the problem, you can edit the docker-compose file and change to your own 3rd party SMTP server using this vars:
This will remove the idea of having to configure an SMTP server. I've used it in several projects and it's helpful because you'll never have to have to explain the issue -- the only thing a person will need to do is to configure the email server for production and remove mailcatcher.
I did a clone on the repo, I can't get this to build locally. Is there anything I need to do?
Running a "docker-compose build", I'm getting the following error:
Step 35/38 : ADD ./vendor /usr/share/nginx/html/vendor
ERROR: Service 'appwrite' failed to build: ADD failed: stat /var/lib/docker/tmp/docker-builder903152574/vendor: no such file or directory
What are the projects requirements, maybe my local Mac doesn't have the right dependencies setup?
Activity
eldadfux commentedon Sep 2, 2019
Hi @macdougall, Does the server returns any status code? if yes please paste the response headers and body here.
Will also be useful if you could paste your containers status using 'docker ps' command.
macdougall commentedon Sep 2, 2019
No status codes returned. But my containers are running in the background so I'd have to run a log off the docker command to check that. Here's my running containers:
eldadfux commentedon Sep 2, 2019
Everything does seems to be running well, To try and figure whats going on I need more data. Can you try and paste some logs for both appwrite and mariadb conatiners?
Another thing that might help is to debug the nginx error log inside the appwrite container.
To get it, just run:
docker exec -it 6be16643c81c bashand in the conatiner run:
cat /var/log/nginx/error.logmacdougall commentedon Sep 2, 2019
I have nothing in those log files. In fact, they are empty.
root@6be16643c81c:/var/log/nginx# ls -alt
total 8
drwxr-xr-x 1 root root 4096 Sep 2 16:13 ..
drwxr-xr-x 1 root adm 4096 Aug 24 09:13 .
-rw-r----- 1 www-data adm 0 Aug 24 09:13 access.log
-rw-r----- 1 www-data adm 0 Aug 24 09:13 error.log
root@6be16643c81c:/var/log/nginx# cat error.log
root@6be16643c81c:/var/log/nginx#
eldadfux commentedon Sep 2, 2019
This is becoming really hard to debug, do you still have access to http://localhost?
The server stop responding only after form submission?
Maybe try to remove all containers using 'docker-compose down' and then delete the appwrite-ce directory and run setup script again. Let me know if you have any lead.
macdougall commentedon Sep 2, 2019
I think the SMTP server is hanging.
mtp_1 | 273 LOG: MAIN REJECT
smtp_1 | 273 H=appwrite-ce_appwrite_1.appwrite-ce_default (localhost.localdomain) [192.168.32.2] F=[email protected] rejected RCPT : relay not permitted
smtp_1 | 273 LOG: smtp_connection MAIN
smtp_1 | 273 SMTP connection from appwrite-ce_appwrite_1.appwrite-ce_default (localhost.localdomain) [192.168.32.2] closed by QUIT
influxdb_1 | [httpd] 192.168.32.6 - - [02/Sep/2019:19:22:30 +0000] "POST /write?db=telegraf HTTP/1.1" 204 0 "-" "telegraf" 01b83d15-cdb7-11e9-8003-000000000000 2891
eldadfux commentedon Sep 2, 2019
This is a known issue where Gmail and other email providers reject messages sent from an ISP IP address. Anyway the Appwrite API ignores this type of errors and they do not cause any problem when using the stack on a dev environment.
Anyway if you have any indication that this might be the problem, you can edit the docker-compose file and change to your own 3rd party SMTP server using this vars:
macdougall commentedon Sep 2, 2019
Ok, I'll look at that but I think you should consider using something like https://mailcatcher.me/
This will catch smtp messages so you're not having to configure a dev. server for production emails.
eldadfux commentedon Sep 3, 2019
@macdougall that might be a really good idea, I will definitely take a closer look at it.
macdougall commentedon Sep 3, 2019
This will remove the idea of having to configure an SMTP server. I've used it in several projects and it's helpful because you'll never have to have to explain the issue -- the only thing a person will need to do is to configure the email server for production and remove mailcatcher.
macdougall commentedon Sep 3, 2019
I did a clone on the repo, I can't get this to build locally. Is there anything I need to do?
Running a "docker-compose build", I'm getting the following error:
Step 35/38 : ADD ./vendor /usr/share/nginx/html/vendor
ERROR: Service 'appwrite' failed to build: ADD failed: stat /var/lib/docker/tmp/docker-builder903152574/vendor: no such file or directory
What are the projects requirements, maybe my local Mac doesn't have the right dependencies setup?
eldadfux commentedon Sep 3, 2019
To run locally:
eldadfux commentedon Sep 3, 2019
You will need php package manager composer to set it up: https://getcomposer.org/
22 remaining items
Merge pull request appwrite#4 from utopia-php/remove-leftover
Merge pull request appwrite#4 from anshganatra/main
Merge pull request appwrite#4 from kodumbeats/feat-save-arrays-in-cache
Merge pull request appwrite#4 from utopia-php/feat-get-states
Merge pull request appwrite#4 from utopia-php/phpstan-disallow-assert…
Merge pull request appwrite#4 from utopia-php/feat-php82
Merge pull request appwrite#4 from utopia-php/dev
Merge pull request appwrite#4 from utopia-php/CLO-4204-query-fingerprint
Merge pull request appwrite#4 from christyjacob4/feat-refactor-array-…
Merge pull request appwrite#4 from utopia-php/chore-fix-validators
Merge pull request appwrite#4 from utopia-php/feat/command-validation
Merge pull request appwrite#4 from utopia-php/agent/cloudflare-cache-…
Remove the Proxy cache adapter
Merge pull request appwrite#4 from christyjacob4/master
Merge pull request appwrite#4 from utopia-php/feat/utopia-query-0.3.x