Coder Social home page Coder Social logo

Comments (9)

delfrrr avatar delfrrr commented on July 20, 2024 1

I was able to reproduce dead lock here https://github.com/dekart-xyz/dekart/blob/v0.7.0/src/server/report/report.go#L36
Getting my head around it

from dekart.

philipmargeotab avatar philipmargeotab commented on July 20, 2024

Some example errors (with identifying data removed):

googleapi: Error 403: Access Denied
googleapi: Error 404: Not found
googleapi: Error 400: Unrecognized name

these errors caused the self-hosted website to crash.

from dekart.

delfrrr avatar delfrrr commented on July 20, 2024

Hey @philipmargeotab will try to help you. I'm running Dekart instance on GCP for the Playground, so it should be possible.

Can you please tell:

  • which version do you use
  • copy here app.yaml (without sensitive details of course)

Also can you please set DEKART_LOG_DEBUG: "1" in env_variables and share here logs

from dekart.

philipmargeotab avatar philipmargeotab commented on July 20, 2024

Version is 0.7
###

# https://cloud.google.com/appengine/docs/flexible/custom-runtimes/configuring-your-app-with-app-yaml#intro
service: dekart-test
runtime: custom
env: flex

manual_scaling:
instances: 1 # important as dekart designed to work on single instance

resources:
memory_gb: 64.0 # recommended to handle up to 1M points
cpu: 16
disk_size_gb: 100

env_variables:
DEKART_LOG_DEBUG: "1"
DEKART_POSTGRES_DB: "xxxxxx"
DEKART_POSTGRES_USER: "xxxxxx"
DEKART_POSTGRES_PASSWORD: "xxxxxx"
DEKART_POSTGRES_PORT: "xxxx"
# see https://cloud.google.com/sql/docs/mysql/connect-app-engine-flexible
DEKART_POSTGRES_HOST: "10.x.x.x" # UNKNOWN
DEKART_CLOUD_STORAGE_BUCKET: "geotab-dekart-test" # "$BUCKET"
DEKART_BIGQUERY_PROJECT_ID: "test-xx" # "$PROJECT_ID"
DEKART_MAPBOX_TOKEN: "pk.eyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" #
# "$MAPBOX_TOKEN"

beta_settings:
# see https://cloud.google.com/sql/docs/mysql/connect-app-engine-flexible
cloud_sql_instances: "test-xx:europe-west1:dekart-db=tcp:xxxx"
# "$PROJECT_ID:europe-west1:$DB_INSTANCE_NAME=tcp:xxxx"

###

from dekart.

delfrrr avatar delfrrr commented on July 20, 2024

Hey I think I did manage to reproduce problem, will keep you posted here

from dekart.

delfrrr avatar delfrrr commented on July 20, 2024

Hey so I believe that problem was with a deadlock. In Dekart there is of course a lot error handling but deadlock formally is not an error. It's not easy to reproduce locally.

I found few potential issues in the code and address them d4395ce

@philipmargeotab could you pease update Dekart to 0.7.2 and share a feedback if issue still reproducing

from dekart.

philipmargeotab avatar philipmargeotab commented on July 20, 2024

Yes it appears to work now; no more deadlock. Thank you!

from dekart.

delfrrr avatar delfrrr commented on July 20, 2024

Great!

from dekart.

delfrrr avatar delfrrr commented on July 20, 2024

Fixed in 0.7.2

from dekart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.