Code Monkey home page Code Monkey logo

Comments (13)

bradrydzewski avatar bradrydzewski commented on August 19, 2024

can you check the logs for errors? should be /var/log/upstart/drone.log
also can you check your js console for errors?

from gitness.

cmer avatar cmer commented on August 19, 2024

Nothing in the JS console.

Log file seems OK as well:

starting service container bradrydzewski/mysql:5.5
starting service container bradrydzewski/elasticsearch:0.90
starting service container bradrydzewski/redis:2.8
starting service container bradrydzewski/memcached
creating build image
Step 0 : FROM bradrydzewski/ruby:2.0.0
 ---> 234bd8089bce
Step 1 : WORKDIR /var/cache/drone/src/github.com/cmer/drone-test
 ---> Running in 1d0bf963b243
 ---> e023be2892a0
Step 2 : ADD drone /usr/local/bin/
 ---> 66b731dc6ef6
Step 3 : USER ubuntu
 ---> Running in efcfc1082499
 ---> ab0e5e29c249
Step 4 : ENV HOME /home/ubuntu
 ---> Running in 16be66e4c245
 ---> a20abf23c7af
Step 5 : ENV LANG en_US.UTF-8
 ---> Running in 325edee708e8
 ---> b2c7feeae110
Step 6 : ENV LANGUAGE en_US:en
 ---> Running in ad5b022351a0
 ---> 4c04a834c803
Step 7 : ENV LOGNAME ubuntu
 ---> Running in a0bf7c661cf8
 ---> 7b404411df9e
Step 8 : ENV TERM xterm
 ---> Running in 9c1137cefeff
 ---> a0dcf4ecc26a
Step 9 : ENV SHELL /bin/bash
 ---> Running in f9c6166106bf
 ---> cb95182f350a
Step 10 : ADD id_rsa /home/ubuntu/.ssh/id_rsa
 ---> 4d50cac4525d
Step 11 : RUN sudo chown -R ubuntu:ubuntu /home/ubuntu/.ssh
 ---> Running in 02723ddb8430
 ---> c6be814bf531
Step 12 : RUN sudo chown -R ubuntu:ubuntu /var/cache/drone
 ---> Running in 94249c26cd7b
 ---> 7fee139df326
Step 13 : RUN sudo chown -R ubuntu:ubuntu /usr/local/bin/drone
 ---> Running in acde3c9a7d29
 ---> 0fab0355237f
Step 14 : RUN sudo chmod 600 /home/ubuntu/.ssh/id_rsa
 ---> Running in a837503205cd
 ---> af32b50f0585
Step 15 : ADD proxy.sh /etc/drone.d/
 ---> 770bc7190d55
Step 16 : ENTRYPOINT /bin/bash -e /usr/local/bin/drone
 ---> Running in e4436db451a0
 ---> e218d7d820c6
Successfully built e218d7d820c6
Removing intermediate container 1d0bf963b243
Removing intermediate container 756a555191a8
Removing intermediate container 1673c04e4e28
Removing intermediate container 325edee708e8
Removing intermediate container ad5b022351a0
Removing intermediate container f9c6166106bf
Removing intermediate container 16be66e4c245
Removing intermediate container a0bf7c661cf8
Removing intermediate container 94249c26cd7b
Removing intermediate container acd60ef3f9f3
Removing intermediate container efcfc1082499
Removing intermediate container 9c1137cefeff
Removing intermediate container 02723ddb8430
Removing intermediate container acde3c9a7d29
Removing intermediate container a837503205cd
Removing intermediate container e4436db451a0
copying repository to /var/cache/drone/src/github.com/cmer/drone-test
starting build
removing build container
removing service container mysql
removing service container elasticsearch
removing service container redis
removing service container memcached
removing build image

from gitness.

georgedrummond avatar georgedrummond commented on August 19, 2024

The same happened to me when i added in elasticsearch. Taking it out runs my specs, although they now fail because elasticsearch isnt available.

from gitness.

teodor-pripoae avatar teodor-pripoae commented on August 19, 2024

I have the same issue, when I add elasticsearch, it doesn't do anything.

[DRONE] copying repository to /var/cache/drone/src/project
[DRONE] starting build
[DRONE] removing build container
[DRONE] removing service container postgres
[DRONE] removing service container redis
[DRONE] removing service container elasticsearch:0.90
[DRONE] removing build image

Drone Build Results (1)
 ✓  (Less than a second)

from gitness.

bradrydzewski avatar bradrydzewski commented on August 19, 2024

would anyone be willing to debug a little further? otherwise I may not get to this for a few weeks ... as you can see I have quite the backlog of issues and PRs that I'm working through

from gitness.

cmer avatar cmer commented on August 19, 2024

I can help. email me at c at codified dot co (and not dot com)

from gitness.

teodor-pripoae avatar teodor-pripoae commented on August 19, 2024

If this helps, it seems that container is running out of memory. It is strange as I have 800mb free of 1gb.

root@dronebox:~/project# docker run -t -i bradrydzewski/elasticsearch:0.90
Error occurred during initialization of VM
Could not reserve enough space for object heap

root@dronebox:~/project# free -m
             total       used       free     shared    buffers     cached
Mem:           995        194        800          0         51         86
-/+ buffers/cache:         56        938
Swap:            0          0          0

from gitness.

cmer avatar cmer commented on August 19, 2024

@teodor-pripoae was right! I was testing Drone on a 2GB DigitalOcean instance. Bumped it to 8GB and it's working now! Thanks so much!

from gitness.

cmer avatar cmer commented on August 19, 2024

Actually I spoke too soon. Containers are running but I still get no output.

from gitness.

xpepper avatar xpepper commented on August 19, 2024

@cmer FYI I use @yosssi's pull request on custom services (#80) to be able to use the official build of elasticsearch by dockerfile (https://index.docker.io/u/dockerfile/elasticsearch/) and succeeded.

from gitness.

bradrydzewski avatar bradrydzewski commented on August 19, 2024

Any idea what the issue is with the the Drone elastic search image?
https://github.com/drone/images/blob/master/database/elasticsearch/elasticsearch_0.90/Dockerfile

We should get that fixed regardless.

The reason I haven't merged pull request #80 is because there is no need to specify ports in the yaml. We can query the ports using the Docker client. It is easy to add syntax to the yaml, but a bit more tricky to remove it.

from gitness.

x1ddos avatar x1ddos commented on August 19, 2024

@bradrydzewski about the elasticsearch image issue. Following @teodor-pripoae, I rebuilt it based off the one in drone/images/.../Dockerfile changing CMD to:

CMD ["-f", "-Xmx256m", "-Des.index.store.type=memory"]

i.e. reducing memory to 256m. The container runs successfully with this change.

Actually, now that I think about it, -Xmx and -Xms could probably be removed from CMD. That way one can specify additional arguments when needed (once #80 (comment) is in place).

from gitness.

cmer avatar cmer commented on August 19, 2024

I can confirm that ElasticSearch is the problem. Just removing it from my .drone.yml got my build to execute. I have other failures but at least I get some output now. Thanks @xpepper.

from gitness.

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.