[gogocarto] auto update from json doesn't work #15
Open
opened 4 years ago by mathieusarrasin
·
6 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
data --> dynamic import
I put the update frequency at 1
But it never worked.
Went to
carte.laroue.org
to have a look.This is the output of:
It seems there's custom code (via
getCustomCode()
) that generates a bug, but probably because of a problem contacting mongodb.I see also that I have an error 500 when trying to access to the definition of the "import dynamique" in the UI.
Here are the logs:
If we check mongodb logs, each time I do a checkExternalSourceToUpdate or I try to edit the source in the UI:
The kernel logs:
I've produced a new image, based on the official mongo image (we were on a custom image that is based on alpine). There are 2 reason why this could help:
4.0.5
to4.0.24
(we could expect several fixes here)libc
(I recall reading some concerns about stability of mongodb on non-libc
)The downside is that image is nearly twice the weight (430Mo vs 248Mo).
If this removes the segfault, I could see to get the
4.0.24
on alpine, but due to licensing issues, we are on our own for the compilation of mongodb (last version of alpine supporting mongodb is3.9
with mongo4.0.5
). This might reserve some surprise even if we could expect4.0.24
is not really code-different than4.0.6
...The next step is to organize a test by switching mongodb images on
gestion.laroue.org
. May I stress out thatmongodb
is also intensively used by rocketchat installation ongestion.laroue.org
. I already tested that this was not a problem on a stagedvps-03.0k.io
with a small dummy rocketchat installation.I couldn't reproduce the segfault in
vps-03.0k.io
withgestion.laroue.org
gogocarto's data. (trying with same mongodb4.0.5
)But, I reproduced the error when importing:
I modified the code to see the custom php code, and also, now I can see it on
vps-03.0k.io
as the segfault disappeared also.This line:
The
trim()
is obviously getting an array instead of a string.This is what an element looks like:
Notice the 'extra_contact_ids' are not a string.
gestion.laroue.org
with:4.0.24
,is running fine:
I modified the php code in a way that only avoids the script to fail, and this needs to be addressed as soon as possible.
Can you give me a feedback here whenever it is possible ? I still need to push the modification to 0k-charms, and set
gestion.laroue.org
back to follow master branch of0k-charms
.Problem solved thanks @vlab I guess you can close the ticket.
Another problem appears with the new PHP config Valentin proposed: during the data import process, we do not feed anymore the "facebook", "linkedin" and "instagram" gogocarto fields anymore.
Here is an example of result of Gogocarto import:
The Facebook url is only in the
extra_contact_ids
field whereas we need it in thefacebook
field (otherwise we cannot use it for the display on the map).