Git Product home page Git Product logo

Comments (8)

Nico640 avatar Nico640 commented on July 17, 2024

Hmm, not sure if this is a permission or a SiriDB issue. What happens if you manually create the /config/siridb directory? Does anything else than SiriDB show any errors?
You could also check if you get any different behaviour when using the nico640/docker-unms:testing image, as it uses a more recent SiriDB version.

from docker-unms.

gianmarco-mameli avatar gianmarco-mameli commented on July 17, 2024

Other errors I found in the docker log:

In Kernel.php line 765:,
Unable to create the "logs" directory (/usr/src/ucrm/app/logs). ,
Makefile:12: recipe for target 'server_with_migrate' failed,
make: *** [server_with_migrate] Error 1,
2020/12/20 23:28:25 [error] 1621#1621: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.1.3, server: , request: "GET // HTTP/1.1", upstream: "http://127.0.0.1:8082//", host: "unms.xxxxxx",
FATAL: role "root" does not exist,

I tried to create, recreate and delete the folder, with the container stopped and started, no change.

The testing image seems to work, next days I make some tests on it.
It's possible that the problem is related to the symbolic link on the siridb folder?

Thanks

from docker-unms.

Nico640 avatar Nico640 commented on July 17, 2024

I don't think it's a SiriDB specific issue, as UCRM also seems to have issues creating / accessing directories, but yes, it could be a symbolic link issue. Not sure why it works on the testing image though, as there are too many changes in the testing branch (e.g. change of the base image from Debian 9 to Alpine Linux 3.12)

from docker-unms.

gianmarco-mameli avatar gianmarco-mameli commented on July 17, 2024

Hi nico,
It seems to have found the problem: the clusters are based on Raspbian Os, but I don't made a check if the glusterfs version in the official repository was old, in this case 5.5. I have configured the buster-backports repository, which contains glusterfs version 8, I have reinstalled and reconfigured the storage and now the UNMS container seems to be working fine.
With the old version of glusterfs, I found a "stale file handle" error in the log, and searching google is related with some old bugs.
Thanks for you time

from docker-unms.

gianmarco-mameli avatar gianmarco-mameli commented on July 17, 2024

Hi Nico, sometimes the docker container spikes up on cpu usage, from logs seems the crm module writes on storage many file or log entries and the Glusterfs problem was not solved. Seems it works well if I disable the CRM module from settings. You know to disable completely the crm module on the container?

from docker-unms.

mwinters-stuff avatar mwinters-stuff commented on July 17, 2024

I have made a version of the docker image which removes crm so that its not continuously creating processes checking to see if crm is enabled (crm didnt work for me and was not needed).
https://github.com/mwinters-stuff/docker-unms-no-ucrm

from docker-unms.

Nico640 avatar Nico640 commented on July 17, 2024

Hmm, I once had an issue with high cpu usage and a frozen container that was caused by the /config volume becoming unreadable temporarily as the network share that the volume was stored on was unreachable for a short period, causing symbolic link loops inside the container. Not sure if that's what was happening here. Did this happen using the latest or testing image?

If you want to completely disable the crm module, you could either remove it from the container like @mwinters-stuff did it, or you could try to only disable the service for the crm module (/etc/services.d/ucrm). Note that both approaches will break the unms backup functionality, as unms will be unable to communicate with the crm module. Cron jobs like logrotate will also not run.

from docker-unms.

gianmarco-mameli avatar gianmarco-mameli commented on July 17, 2024

unfortunately the problems are the same, today the docker node where unms runs, spikes on the cpu making other containers unreachable and the glusterfs storage disconnected from the node, the top command reports spikes on cpu at 300% as seen, only a complete restart of all the three swarm nodes solves the problem. few days ago I modified the docker compose file of unms to limit the cpu al 50%, but nothing changes. The next step is to check if the solution removing CRM changes anything
thanks

from docker-unms.

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.