seems your server is somewhat overloaded and performing too slow sometimes, so you can temporary increase connection time timeout: 15000 in config/database.yml
Jun 06 18:02:08 ip-172-31-15-131 sharetri2[1152]: App 2379 stdout: {"method":"HEAD","path":"/","format":"html","controller":"HomepageController","action":"index","status":301,"duration":82.4
Jun 06 18:03:29 ip-172-31-15-131 sharetri2[1152]: App 2379 stdout: {"method":"GET","path":"/","format":"html","controller":"HomepageController","action":"index","status":200,"duration":26429
Jun 06 18:03:42 ip-172-31-15-131 sharetri2[1152]: App 2379 stdout: {"marketplace_id":1,"tag":"listing_index_service","free":"Error connecting to Sphinx via the MySQL protocol. Error connecti
Jun 06 18:03:47 ip-172-31-15-131 sharetri2[1152]: App 2379 stdout: {"method":"GET","path":"/","format":"html","controller":"HomepageController","action":"index","status":500,"duration":7789.
“Error connecting to Sphinx via the MySQL protocol” I don’t know how to resolve it, I know the server is good, I just test to connect to it (Being a AWS server, It’s an external database)
I tried to use the patch but when I restart Sphinx I get this error:
ERROR: index ‘listing_delta’: sql_range_query: Expression #20 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘sharetribe_production.locations.latitude’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (DSN=mysql://sharetribe:***@localhost:3306/sharetribe_production).
ERROR: index ‘listing_delta’: sql_range_query: Expression #20 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘sharetribe_production.locations.latitude’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (DSN=mysql://sharetribe:***@localhost:3306/sharetribe_production).
I would like to use this most essential patch with Sharetribe 10, but I believe it’s not compatible anymore (patch fails to apply)… Would anyone know if there is a way to get through with that ? @zenik, I believe you were the one who came up with this solution ?
Applying the patch worked like a charm. Funny thing is that when I set location to private to show listing locations approximate wit a radius, the whole map disappears. On the homepage looking on the map, it still shows the map with exact locations.
Applying the patch, feedback is given that 1 of 4 parts where already part of an upstream patch.
Hi @Lennard
You need to enable Google Maps static API for your google maps API key. Hopefully, this will work.
Please let me know if I can still assist you with any issues or implementations in your marketplace application.