Code Monkey home page Code Monkey logo

Comments (5)

jeremy-rutman avatar jeremy-rutman commented on July 17, 2024

pelias test run also returns the enotfound error

root@jeremy-TECRA-Z40-C-pipl:/home/jeremy/pelias_docker/docker/projects/portland-metro# pelias test run 
{ Error: getaddrinfo ENOTFOUND api api:4000
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'api',
  host: 'api',
  port: '4000' }


from docker.

jeremy-rutman avatar jeremy-rutman commented on July 17, 2024

sorry once again that was a lingering effect of the snap install . deracinating snap and killing remaining processes took care of it

from docker.

orangejulius avatar orangejulius commented on July 17, 2024

It's really interesting that using snap caused so many issues. We've found it to be problematic as well. Thanks for letting us know

from docker.

jeremy-rutman avatar jeremy-rutman commented on July 17, 2024

I am hitting this again on a new machine and new installs of everything - this time snap not involved. systemctl restart docker didn't help. Actually this time its different, EAI_AGAIN (appropriately enough given that I seem to be the only person running into this, and 'Ere Am I again ) instead of ENOTFOUND.

Elasticsearch ERROR: 2019-03-17T11:07:18Z
  Error: Request error, retrying
  GET http://elasticsearch:9200/_nodes => getaddrinfo EAI_AGAIN elasticsearch elasticsearch:9200
      at Log.error (/code/pelias/schema/node_modules/elasticsearch/src/lib/log.js:226:56)
      at checkRespForFailure (/code/pelias/schema/node_modules/elasticsearch/src/lib/transport.js:259:18)
      at HttpConnector.<anonymous> (/code/pelias/schema/node_modules/elasticsearch/src/lib/connectors/http.js:164:7)
      at ClientRequest.wrapper (/code/pelias/schema/node_modules/lodash/lodash.js:4935:19)
      at ClientRequest.emit (events.js:182:13)
      at Socket.socketErrorListener (_http_client.js:392:9)
      at Socket.emit (events.js:182:13)
      at emitErrorNT (internal/streams/destroy.js:82:8)
      at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
      at process._tickCallback (internal/process/next_tick.js:63:19)

Elasticsearch WARNING: 2019-03-17T11:07:18Z
  Unable to revive connection: http://elasticsearch:9200/

Elasticsearch WARNING: 2019-03-17T11:07:18Z
  No living connections

{ Error: No Living connections
    at sendReqWithConnection (/code/pelias/schema/node_modules/elasticsearch/src/lib/transport.js:226:15)
    at next (/code/pelias/schema/node_modules/elasticsearch/src/lib/connection_pool.js:214:7)
    at process._tickCallback (internal/process/next_tick.js:61:11) message: 'No Living connections' }
please install mandatory plugins before continuing.

digging into the pelias command definitions I tried docker-compose run 'schema' node scripts/create_index by hand which just reproduces the error , while curl -i -H GET http://elasticsearch:9200/_nodes hits curl: (6) Could not resolve host: elasticsearch although the latter may be a command I would have to send to the docker container .

pelias compose top returns


deploy@bolt88:/mnt/storage-box5/data/pelias/docker/projects/portland-metro$ pelias compose top
d51649bcddbd_pelias_elasticsearch
 UID      PID    PPID    C   STIME   TTY     TIME                           CMD                      
-----------------------------------------------------------------------------------------------------
deploy   29155   29136   2   06:23   ?     00:00:25   /usr/lib/jvm/jre-1.8.0-openjdk/bin/java -Xms2g 
                                                      -Xmx2g -XX:+UseConcMarkSweepGC                 
                                                      -XX:CMSInitiatingOccupancyFraction=75          
                                                      -XX:+UseCMSInitiatingOccupancyOnly             
                                                      -XX:+AlwaysPreTouch -server -Xss1m             
                                                      -Djava.awt.headless=true -Dfile.encoding=UTF-8 
                                                      -Djna.nosys=true                               
                                                      -Djdk.io.permissionsUseCanonicalPath=true      
                                                      -Dio.netty.noUnsafe=true                       
                                                      -Dio.netty.noKeySetOptimization=true           
                                                      -Dio.netty.recycler.maxCapacityPerThread=0     
                                                      -Dlog4j.shutdownHookEnabled=false              
                                                      -Dlog4j2.disable.jmx=true                      
                                                      -Dlog4j.skipJansi=true                         
                                                      -XX:+HeapDumpOnOutOfMemoryError                
                                                      -Des.cgroups.hierarchy.override=/ -Xms512m     
                                                      -Xmx512m                                       
                                                      -Des.path.home=/usr/share/elasticsearch -cp    
                                                      /usr/share/elasticsearch/lib/*                 
                                                      org.elasticsearch.bootstrap.Elasticsearch      
                                                      -Ecluster.name=pelias-dev                      
                                                      -Ediscovery.type=single-node                   
                                                      -Expack.monitoring.enabled=false               
                                                      -Ebootstrap.memory_lock=true                   
                                                      -Expack.security.enabled=false                 
deploy   29343   29155   0   06:23   ?     00:00:00   /usr/share/elasticsearch/plugins/x-pack/platfor
                                                      m/linux-x86_64/bin/controller 

from docker.

jeremy-rutman avatar jeremy-rutman commented on July 17, 2024

BTW - if I have one project running, will this prevent others from running? E.g. I have a machine running pelias prepare all (for project portland-metro) , can i now run pelias elastic create in a different project (eg planet) ?

from docker.

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.