Coder Social home page Coder Social logo

Comments (8)

miloskroulik avatar miloskroulik commented on July 17, 2024 2

Yes, I can confirm that it works afterwards. Thanks a lot @ghostwords and @L-P

from ansible-role-simp_le.

L-P avatar L-P commented on July 17, 2024

I have yet to test if this is the cause of your problem but you are not
supposed to run this role as root/sudo.

Can you give me the contents of /home/root/.cache/ansible-simp_le/conf.json?

from ansible-role-simp_le.

miloskroulik avatar miloskroulik commented on July 17, 2024

{"dest": "/home/root/.cache/ansible-simp_le/simp_le", "vhosts": [{"domains": ["www.shaarli.milhaus.cz", "shaarli.milhaus.cz"], "output": "/var/certs/shaarli_milhaus_cz", "root": "/var/www/shaarli/.well-known/acme-challenge"}], "email": "<my_email>"}

All the directories do exist. Also, I'm using that VPS as root through SSH, is that a problem?

from ansible-role-simp_le.

L-P avatar L-P commented on July 17, 2024

I use this role on multiple VPS running Ubuntu 14.04 and it works fine, but it
is designed to run as an unprivileged user.

Hence the hackish thing I did in defaults/main.yml, I use /home/<user> as
the remote user home directory so the cache is written in /home∕root/.cache
instead of /root/.cache.

You'll want to set the following variable if you plan to keep using root:

simp_le_cache: "/root/.cache/ansible-simp_le"               

I successfully ran the role as root on Ubuntu 14.04.

Does /home/root/.cache/ansible-simp_le/simp_le/venv/bin/simp_le exist?

from ansible-role-simp_le.

miloskroulik avatar miloskroulik commented on July 17, 2024

Yes, it exists. I set the variable you mentioned, but the problem remains.

from ansible-role-simp_le.

L-P avatar L-P commented on July 17, 2024

Edit ~/.cache/ansible-simp_le/generate-certs and print cmd and
vhost["output"] before L68.
See if both paths are correct and exist.

from ansible-role-simp_le.

ghostwords avatar ghostwords commented on July 17, 2024

I believe the issue is in the generate-certs script caused by a leading slash in the second argument to os.path.join. Proposed fix:

43c43
<     command = [os.path.join(conf["dest"], "/venv/bin/simp_le")]
---
>     command = [os.path.join(conf["dest"], "venv", "bin", "simp_le")]

from ansible-role-simp_le.

L-P avatar L-P commented on July 17, 2024

Confirmed. I wonder why it worked for me. I tested with v1.1.0, the
bug was introduced in 060625f, first thing I should have asked was the
version you were using.

This is fixed in master, can you try again @miloskroulik ?

from ansible-role-simp_le.

Related Issues (4)

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.