Giter Site home page Giter Site logo

Comments (4)

mirjan-hoffmann avatar mirjan-hoffmann commented on June 29, 2024

another error occurs later in the playbook:

TASK [edu-sharing : Clear optional properties in client config.] ***************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named lxml
failed: [edu-sharing-vm] (item=/config/values/register/recoverUrl) => {"ansible_loop_var": "item", "changed": false, "item": "/config/values/register/recoverUrl", "msg": "Failed to import the required Python library (lxml) on edu-sharing's Python /usr/bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

Seems like the corresponding package (python-lxml) isn't installed for edu-sharing-new

Please also fix this

from edu-sharing-box.

mirjan-hoffmann avatar mirjan-hoffmann commented on June 29, 2024

Unfortunately, a clean vagrant up still don't works:

TASK [Get the path to the edu-sharing cluster docker volume.] ******************
fatal: [edu-sharing-vm]: FAILED! => {"changed": true, "cmd": "sg docker -c \"docker volume inspect --format '{{.Mountpoint}}'  $(docker volume ls -q |grep '_repository-service-volume-config-cluster')\"\n", "delta": "0:00:00.054597", "end": "2023-05-03 09:47:30.361069", "msg": "non-zero return code", "rc": 1, "start": "2023-05-03 09:47:30.306472", "stderr": "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/volumes\": dial unix /var/run/docker.sock: connect: permission denied\n\"docker volume inspect\" requires at least 1 argument.\nSee 'docker volume inspect --help'.\n\nUsage:  docker volume inspect [OPTIONS] VOLUME [VOLUME...]\n\nDisplay detailed information on one or more volumes", "stderr_lines": ["permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/volumes\": dial unix /var/run/docker.sock: connect: permission denied", "\"docker volume inspect\" requires at least 1 argument.", "See 'docker volume inspect --help'.", "", "Usage:  docker volume inspect [OPTIONS] VOLUME [VOLUME...]", "", "Display detailed information on one or more volumes"], "stdout": "", "stdout_lines": []}
...
TASK [edu-sharing : Clear optional properties in client config.] ***************
failed: [edu-sharing-vm] (item=/config/values/register/recoverUrl) => {"ansible_loop_var": "item", "changed": false, "item": "/config/values/register/recoverUrl", "msg": "The target XML source '/var/lib/docker/volumes/edu_sharing_docker_version_repository-service-volume-config-node/_data/defaults/client.config.xml' does not exist."}
failed: [edu-sharing-vm] (item=/config/values/banner) => {"ansible_loop_var": "item", "changed": false, "item": "/config/values/banner", "msg": "The target XML source '/var/lib/docker/volumes/edu_sharing_docker_version_repository-service-volume-config-node/_data/defaults/client.config.xml' does not exist."}
failed: [edu-sharing-vm] (item=/config/values/banner) => {"ansible_loop_var": "item", "changed": false, "item": "/config/values/banner", "msg": "The target XML source '/var/lib/docker/volumes/edu_sharing_docker_version_repository-service-volume-config-node/_data/defaults/client.config.xml' does not exist."}
failed: [edu-sharing-vm] (item=/config/values/allowedLicenses) => {"ansible_loop_var": "item", "changed": false, "item": "/config/values/allowedLicenses", "msg": "The target XML source '/var/lib/docker/volumes/edu_sharing_docker_version_repository-service-volume-config-node/_data/defaults/client.config.xml' does not exist."}
failed: [edu-sharing-vm] (item=/config/values/loginUrl) => {"ansible_loop_var": "item", "changed": false, "item": "/config/values/loginUrl", "msg": "The target XML source '/var/lib/docker/volumes/edu_sharing_docker_version_repository-service-volume-config-node/_data/defaults/client.config.xml' does not exist."}
ok: [edu-sharing-vm] => (item=/config/values/loginAllowLocal)
ok: [edu-sharing-vm] => (item=/config/values/loginProvidersUrl)
ok: [edu-sharing-vm] => (item=/config/values/loginProviderTargetUrl)
ok: [edu-sharing-vm] => (item=/config/values/logout)
ok: [edu-sharing-vm] => (item=/config/values/workspaceViewType)

@Edmondi-Kacaj this seems to be the problem (which we discussed already some weeks ago) that the docker-group is not available in $(...) for the first time the script is running. We already found a solution for this (see https://github.com/TIBHannover/edu-sharing-box/blob/master/ansible/roles/edu-sharing/tasks/edu-sharing-docker/client-configuration.yml#L4)
Could you fix https://github.com/TIBHannover/edu-sharing-box/blob/master/ansible/roles/edu-sharing/tasks/edu-sharing-docker/edu-sharing-config-file.yml#L4 too please?

from edu-sharing-box.

Edmondi-Kacaj avatar Edmondi-Kacaj commented on June 29, 2024

Hello @mirjan-hoffmann

Yes looks like this is already fixed in (https://github.com/TIBHannover/edu-sharing-box/blob/master/ansible/roles/edu-sharing/tasks/edu-sharing-docker/client-configuration.yml#L4), but I found another similar problem and I created a pull request to fix that too, see #44

from edu-sharing-box.

mirjan-hoffmann avatar mirjan-hoffmann commented on June 29, 2024

now a new box is starting again

from edu-sharing-box.

Related Issues (3)

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.