# |
Sep 13th 2019, 16:52 |
alexis752 |
Yes, but my problem isn't about the error itself |
# |
Sep 13th 2019, 16:49 |
slackebot |
"Todo para tu vehículo", icon: "ion-android-pin" }, highlight: false, gridLocation: { x: -2054770, y: 29431 } } lo` |
# |
Sep 13th 2019, 16:49 |
challgren |
`Error: [MongoDB\Driver\Exception\BulkWriteException] Can't extract geo keys: { _id: ObjectId('5cc8937534908a4b46542773'), id: "12632774", title: "ESTACION LOS ANDES", address: "CR 2 38 55", phone: "", location: { coordinates: [ -75881.5637, 876.26365 ], type: "Point" }, createdAt: 1568392500, updatedAt: 1568392500, countryId: 5, status: 1, publish: false, cityId: 4699, products: [ 136, 137 ], club: false, merchantType: { id: 151, name: |
# |
Sep 13th 2019, 16:48 |
challgren |
Looks like your issue is related to geo keys |
# |
Sep 13th 2019, 16:41 |
alexis752 |
i edited the hostname |
# |
Sep 13th 2019, 16:40 |
alexis752 |
https://gist.github.com/ruano84/01adc53e5447a86dce7dac38d6859d3e |
# |
Sep 13th 2019, 16:36 |
louis |
Yeap |
# |
Sep 13th 2019, 16:35 |
alexis752 |
the cake logs? |
# |
Sep 13th 2019, 16:35 |
louis |
could you paste it in a gists ? |
# |
Sep 13th 2019, 16:34 |
alexis752 |
the error associated, but nothing related to the custom errors |
# |
Sep 13th 2019, 16:34 |
alexis752 |
In fact the cakephp's `logs/error.log` shows the error |
# |
Sep 13th 2019, 16:34 |
louis |
And in CakePHP logs ? |
# |
Sep 13th 2019, 16:33 |
slackebot |
<alexis752> |
# |
Sep 13th 2019, 16:33 |
alexis752 |
even for the json views |
# |
Sep 13th 2019, 16:33 |
alexis752 |
I have nothing in the apahce logs |
# |
Sep 13th 2019, 16:31 |
louis |
Yeap, especially that i’m using DomPDF (that’s an old projet) and this engine is a bit slow and heavy for the server ^^ |
# |
Sep 13th 2019, 16:30 |
admad |
Check the webserver aka Apache logs |
# |
Sep 13th 2019, 16:30 |
alexis752 |
i'm using apache 2.4 + php-fpm 7 |
# |
Sep 13th 2019, 16:30 |
slackebot |
<alexis752> |
# |
Sep 13th 2019, 16:30 |
alexis752 |
I'm having a bit of trouble with the apache config, the custom errors of Cakephp doesn't work for me |
# |
Sep 13th 2019, 16:29 |
alexis752 |
Hi guys |
# |
Sep 13th 2019, 16:26 |
challgren |
And your not depending on the request to generate everything and deal with potential timeouts |
# |
Sep 13th 2019, 16:25 |
challgren |
That way theres a bit of parallel processing going on |
# |
Sep 13th 2019, 16:25 |
challgren |
I use it to generate my pdfs/zips |
# |
Sep 13th 2019, 16:25 |
louis |
Wow that’s perfect |
# |
Sep 13th 2019, 16:24 |
challgren |
https://sandbox.dereuromark.de/sandbox/queue-examples/scheduling |
# |
Sep 13th 2019, 16:24 |
challgren |
Plus you can see whats been cleaned and what failed cleanup |
# |
Sep 13th 2019, 16:23 |
louis |
I’m going to try this way ! I agree, never thought about it :expressionless: Thank you @challgren |
# |
Sep 13th 2019, 16:22 |
challgren |
A little bit cleaner IMHO |
# |
Sep 13th 2019, 16:22 |
challgren |
Yeah same idea except the queue handles it |
# |
Sep 13th 2019, 16:21 |
louis |
Okay, in previous projects I was writing CakePHP shell planned with a cron task. this is why I’m looking for better solution :slightly_smiling_face: |
# |
Sep 13th 2019, 16:20 |
challgren |
That way if the user wants to redownload it again, Im not hammering the server with another pdf creation/zip process and can quickly serve them the “cached” package |
# |
Sep 13th 2019, 16:19 |
challgren |
Using https://github.com/dereuromark/cakephp-queue |
# |
Sep 13th 2019, 16:19 |
challgren |
But what I do is create my pdfs/zips and then create a queue task to clean it up in an hour |
# |
Sep 13th 2019, 16:18 |
challgren |
Nah Im just waking up so the mt dew hasnt kicked in yet |
# |
Sep 13th 2019, 16:18 |
louis |
Should I explain in another way ? |
# |
Sep 13th 2019, 16:18 |
challgren |
Oh probably do a queue task |
# |
Sep 13th 2019, 16:18 |
louis |
@challgren Yeap I’m using it ;) . Sorry if my question is not well formulated |
# |
Sep 13th 2019, 16:17 |
challgren |
@louis https://github.com/FriendsOfCake/CakePdf is awesome! |
# |
Sep 13th 2019, 16:16 |
louis |
Hello everyone, I’m looking for advices for PDF generation. At the moment i’ve a method that saving multiple Pdf files into TMP directory (named with a uuid) adnd then I create an archive of theses Pdf. The problem is what is a good way to remove this directory after serving file to user using `response->withFile()` |
# |
Sep 13th 2019, 16:15 |
ruano84 |
Hi guys |