Code Monkey home page Code Monkey logo

Comments (4)

bgoosman avatar bgoosman commented on June 12, 2024

I'm on bitbucket, and the project page gave me a green checkmark on the git repository, so I'm not sure what to do now. I already added the publish ssh key to my workspace on bitbucket.

from hocus.

hugodutka avatar hugodutka commented on June 12, 2024

It looks like the VM that fetchRepository uses was killed before the Hocus agent could shut it down normally. This could have happened because your host was out of memory and the OOM killer did its thing. Are you running it on a system that has less than 8-16GB of free RAM? Hocus is currently very memory hungry and we are working on reducing that.

If memory is the culprit, an easy fix would be creating a swap file on your host. I would suggest 16GB of size. https://linuxize.com/post/create-a-linux-swap-file/

from hocus.

bgoosman avatar bgoosman commented on June 12, 2024

Hmm I should have 64 GB RAM total, on an Ubuntu 20.04 Focal OS.
image

top - 15:38:46 up 20:48,  1 user,  load average: 0.23, 0.55, 0.54
Tasks: 267 total,   1 running, 266 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  64241.8 total,  35695.6 free,    466.1 used,  28080.1 buff/cache
MiB Swap:  32735.0 total,  32735.0 free,      0.0 used.  63065.2 avail Mem

I forgot I got this warning which I didn't know what to do with. (Sorry, not a linux pro 😅)

> HOCUS_HOSTNAME="x" ops/bin/local-up.sh
HOCUS_HOSTNAME="x" ops/bin/local-up.sh
[WARNING] Host kernel *might* be too old. If you encounter issues with nested virtualization please first try running Hocus on at least the 5.10 kernel
Building docker images 👷📦
Building vm-builder done in 1.32 s ✅
Building db-autosetup done in 0.52 s ✅
Building keycloak done in 0.80 s ✅
Building temporal-codec done in 1.34 s ✅
Building ui done in 0.82 s ✅
Building agent done in 0.88 s ✅
Pulling docker images 📥 - ✅ in 1.26 s
Building MicroVMs 👷🖥️ - ✅ in 4.21 s
Seeding the DB 🌱 - ✅ in 0.77 s
Starting the DB 📙 - ✅ in 2.00 s
Starting Keycloak 🔑 - ✅ in 11.01 s
Starting Temporal ☁️  - ✅ in 12.52 s
Starting Hocus 🧙🪄  - ✅ in 3.98 s

You may access Hocus here: http://x:3000/ Creds: dev/dev
Keycloak: http://x:4200/ Creds: admin/admin
Temporal: http://x:8080/

To delete all data ./ops/bin/local-cleanup.sh
To get debug logs: ./ops/bin/local-cmd.sh logs
To stop the deploy: ./ops/bin/local-cmd.sh down

Hmm I ran as root, but some of the processes are showing up as a sub account I created earlier.

top - 15:42:13 up 20:51,  1 user,  load average: 0.22, 0.46, 0.51
Tasks: 345 total,   2 running, 341 sleeping,   0 stopped,   2 zombie
%Cpu(s):  1.7 us,  0.6 sy,  0.0 ni, 97.2 id,  0.5 wa,  0.0 hi,  0.1 si,  0.0 st
MiB Mem :  64241.8 total,  34705.6 free,   1400.9 used,  28135.2 buff/cache
MiB Swap:  32735.0 total,  32735.0 free,      0.0 used.  62099.2 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
3153183 ben       20   0  843896 119528  44260 S   8.0   0.2   0:04.17 temporal-server
   6448 root      20   0 2171064  54520  34280 S   1.7   0.1  15:32.09 containerd
   6569 root      20   0 2743272 139344  61024 S   1.7   0.2  18:06.06 dockerd
3153479 70        20   0  174716  18744  15452 S   1.0   0.0   0:00.13 postgres
3154508 root      20   0  104.7g 374672  59088 S   1.0   0.6   0:12.05 node
3154130 root      20   0 1596484  95224  42048 S   0.7   0.1   0:01.48 node
      1 root      20   0  169012  12596   8512 S   0.3   0.0   4:01.05 systemd
    548 message+  20   0    7404   4520   3868 S   0.3   0.0   0:56.35 dbus-daemon
3138296 root      20   0   19268   9724   8032 S   0.3   0.0   0:00.97 systemd
3147404 root      20   0       0      0      0 I   0.3   0.0   0:00.03 kworker/10:4-events
3152434 root      20   0  720752   9720   6812 S   0.3   0.0   0:00.40 containerd-shim
3152662 ben       20   0 5547528 320828  29992 S   0.3   0.5   0:11.37 java
3153457 70        20   0  174420  23824  20852 S   0.3   0.0   0:00.16 postgres
3153480 70        20   0  173872  15716  12900 S   0.3   0.0   0:00.01 postgres
3154111 root      20   0  720752  10388   7388 S   0.3   0.0   0:00.35 containerd-shim
3170811 70        20   0  175236  19208  15352 S   0.3   0.0   0:00.04 postgres

Here are my prebuild limits. I just raised prebuild to 4096*4.

image

On the brightside the git integration seems to be working, since a push to dev triggered a prebuild

image

Raising the prebuild limit did not help 😞

from hocus.

gorbak25 avatar gorbak25 commented on June 12, 2024

@bgoosman

  • What filesystem are you running on, how much free storage is available on the system?
  • Are you running plain docker, docker in user namespaces or podman ?
  • How large is your bitbucket repository?
  • I've checked on my setup that Hocus works well with Bitbucket, the issue must lie somewhere in the setup.
  • Do you have an hocus.yml file in the repository?

from hocus.

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.