Closed kgilpin closed 1 year ago
Which config file are you using? You want the one that's specific to docker: https://github.com/grishka/Smithereen/blob/master/examples/config_docker.properties
Yes, I've just added the key and salt, and removed the dummy domain
option.
➜ Smithereen git:(master) ✗ diff config.properties examples/config.properties
8a9
> domain=YOUR_DOMAIN_HERE
32,33c33,34
< imgproxy.key=e35370575394e3cb3140bf37657f7f861b4ea2f79ca394191268b7f01fc4c0a9
< imgproxy.salt=f398a7d4b1926924eee7d82d7f5dbf1f89b870ad23da2ed30353cf922a6c5827
---
> imgproxy.key=GENERATE YOUR OWN
> imgproxy.salt=GENERATE YOUR OWN
You're saying that you used the regular config.properties, aren't you? The non _docker
one is for running Smithereen on the host OS without any form of containerization. You do need config_docker.properties
, in particular db.host=mysql
is the important part.
Got it! Thank you.
One correction I can make: In the README:
docker exec -it smithereen_web_1 bash -c ./smithereen-init-admin
What worked for me:
docker-compose exec web bash -c ./smithereen-init-admin
or
docker exec -it smithereen-web-1 bash -c ./smithereen-init-admin
Starting the project with the provided docker-compose.yml, I'm stuck on the following issue.
MySQL reports ready and OK:
The
web
container can't seem to find the database:View stack trace ⬇️
``` smithereen-web-1 | Exception in thread "main" java.lang.RuntimeException: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure smithereen-web-1 | smithereen-web-1 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. smithereen-web-1 | at smithereen.SmithereenApplication.main(SmithereenApplication.java:106) smithereen-web-1 | Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure smithereen-web-1 | smithereen-web-1 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. smithereen-web-1 | at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) smithereen-web-1 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) smithereen-web-1 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) smithereen-web-1 | at com.mysql.cj.jdbc.ConnectionImpl.