Coder Social home page Coder Social logo

compose error about conveyor HOT 12 CLOSED

shantanuo avatar shantanuo commented on June 11, 2024
compose error

from conveyor.

Comments (12)

malave avatar malave commented on June 11, 2024

Hi @shantanuo,

The channel-load service will keep pinging all services (every 10 seconds) until they are all up and it will show this message each time it pings a service and is not up yet. Having all services up could take a few minutes.

You should get an Command finished successfully.message if everything went as expected.

Please let us know if you are not seen this message after 8 minutes (this is the timeout of the channel-load service)

from conveyor.

shantanuo avatar shantanuo commented on June 11, 2024

The service is not up after waiting for more than 8 minutes.

from conveyor.

malave avatar malave commented on June 11, 2024

@shantanuo Can I get the entire log of channel-load from the start until it stops on its own?

from conveyor.

shantanuo avatar shantanuo commented on June 11, 2024

Sure.

https://todel162.s3.amazonaws.com/dba.txt

from conveyor.

wrathagom avatar wrathagom commented on June 11, 2024

@shantanuo can you tell me what the output of echo $UID is?

from conveyor.

malave avatar malave commented on June 11, 2024

@shantanuo We saw that there are permission error within the kibana and elasticsearch containers:

[32mconveyorized-kibana_1  |�[0m FATAL CLI ERROR Error: EACCES: permission denied, open '/usr/share/kibana/config/kibana.yml'

and

�[36melasticsearch_1        |�[0m SettingsException[Failed to load settings from /usr/share/elasticsearch/config/elasticsearch.yml]; nested: AccessDeniedException[/usr/share/elasticsearch/config/elasticsearch.yml];

It could be related to mismatch UID ( some more info here:https://medium.com/@mccode/understanding-how-uid-and-gid-work-in-docker-containers-c37a01d01cf )

from conveyor.

malave avatar malave commented on June 11, 2024

@shantanuo could you try modifiying docker-compose.yml and this something like this:

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_TAG:-6.3.0}
    user: '1000'
...
  conveyorized-kibana:
    image: samtecspg/conveyorized-kibana:repo-head
    user: '1000'
...

Change 1000 to what you get from running echo $UID

Let us know if that helped

from conveyor.

shantanuo avatar shantanuo commented on June 11, 2024

Still the same problem. I bought a new EC2 instance and then installed docker, compose and conveyor. I got the same error on a new server as well.

# cat /etc/system-release
Amazon Linux 2

I did not try with ubuntu or any other distribution because as per our company policy, if something does not work on Amazon Linux, then we do not use it.

from conveyor.

wrathagom avatar wrathagom commented on June 11, 2024

@shantanuo this is a Docker/ES issue more than it is related to Conveyor, though we definitely want to help you get it up and running. Did the logs on your EC2 instance have the same error messages in them?

[32mconveyorized-kibana_1  |�[0m FATAL CLI ERROR Error: EACCES: permission denied, open '/usr/share/kibana/config/kibana.yml'

and

�[36melasticsearch_1        |�[0m SettingsException[Failed to load settings from /usr/share/elasticsearch/config/elasticsearch.yml]; nested: AccessDeniedException[/usr/share/elasticsearch/config/elasticsearch.yml];

What EC2 size did you choose, and did you do anything else before immeadietly installing Docker, Compose, and Conveyor? I will try to re-produce.

from conveyor.

wrathagom avatar wrathagom commented on June 11, 2024

@shantanuo I just spun up a t2.large EC2 instance running Amazon Linux 2. This instance has 8G of RAM, which is little bit overkill, but 4G will likely not be enough. To run on a smaller VM, make sure you edit the RAM allocated to Elasticsearch in the compose file on this line.

For example to run on a t2.medium instance I would recommend:

     - ES_JAVA_OPTS=${ES_RAM:--Xmx2g -Xms2g}

Also, to get around the UID problem I had to chown the local storage folder recursively. But didn't have to add the user to the compose file.

sudo chown -R 1000:1000 local-storage/

from conveyor.

shantanuo avatar shantanuo commented on June 11, 2024

@wrathagom Thanks for the tip. It worked. This is awesome by the way 👍

from conveyor.

wrathagom avatar wrathagom commented on June 11, 2024

thanks, @shantanuo let us know if you have more troubles with it. Happy to help.

from conveyor.

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.