Giter Club home page Giter Club logo

Comments (6)

geerlingguy avatar geerlingguy commented on June 29, 2024

@gmcdowell - Do you have a stable solr_version set in your playbook, or do you allow the role's variable to set the version used?

Also, can you paste the full error message here? (I'm presuming you got a user permission error).

This role is intended to be run as root (using --become on the CLI or become: yes in your playbook).

from ansible-role-solr.

gmcdowell avatar gmcdowell commented on June 29, 2024

@geerlingguy - Apologies. I should have been more explicit.

  • setting solr_version: 6.3.0

  • error msg:
    TASK [geerlingguy.solr : Create configured cores.]


    failed: 192.168.71.196 => {"changed": true, "cmd":
    "/opt/solr/bin/solr create -c collection1", "delta": "0:00:00.098290",
    "end": "2016-11-15 12:26:43.795758", "failed": true, "item": "collection1",
    "rc": 1, "start": "2016-11-15 12:26:43.697468
    ", "stderr": "", "stdout": "WARNING: Creating cores as the root user can
    cause Solr to fail and is not advisable. Exiting.\n If you started
    Solr as root (not advisable either), force core creation by adding argument
    -force", "stdout_lines": ["WARNING: Crea
    ting cores as the root user can cause Solr to fail and is not advisable.
    Exiting.”, " If you started Solr as root (not advisable either),
    force core creation by adding argument -force"], "warnings": []}

  • run as root:
    ansible_become_user=root

thx,
Greg

from ansible-role-solr.

geerlingguy avatar geerlingguy commented on June 29, 2024

@gmcdowell - Thanks for posting the additional info. Looks like I'll need to get some things working better for 6.3.0, as the install/core setup is a little different.

from ansible-role-solr.

gmcdowell avatar gmcdowell commented on June 29, 2024

@geerlingguy - It’s never ending eh ;)

from ansible-role-solr.

geerlingguy avatar geerlingguy commented on June 29, 2024

Reproduced after bumping the default version:

https://travis-ci.org/geerlingguy/ansible-role-solr/jobs/180215833

from ansible-role-solr.

geerlingguy avatar geerlingguy commented on June 29, 2024

See upstream issue introducing this change: https://issues.apache.org/jira/browse/SOLR-7826

from ansible-role-solr.

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.