Coder Social home page Coder Social logo

Comments (4)

robgmills avatar robgmills commented on June 17, 2024

I've opened a branch to try to fix this thinking it'd be an easy change: flexget-daemon->flexget-daemon-role. But now I'm running into some oddness with the ansible provisioning in vagrant.

Oddly, if I start a vagrant vm with the same box but no provisioning, and, using ansible-playbook, run the playbook with become: true, everything works.

Also oddly, if I update the configured box in the Vagrantfile to be debian/jessie64, it works also.

Steps to Reproduce

  1. git clone https://github.com/robgmills/flexget-daemon-role.git
  2. cd flexget-daemon-role
  3. git checkout -t origin/fix/2-misnamed-role
  4. vagrant up

Error:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'bento/ubuntu-16.04'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
==> default: Setting the name of the VM: flexget-daemon-role_default_1473801591271_64655
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /Users/rmills/Code/rgm/flexget-daemon-role
==> default: Running provisioner: ansible...
    default: Running ansible-playbook...

PLAY [all] *********************************************************************

TASK [setup] *******************************************************************
ok: [default]

TASK [flexget-daemon-role : ensure pip is installed] ***************************
changed: [default]

TASK [flexget-daemon-role : ensure setuptools is installed] ********************
changed: [default]

TASK [flexget-daemon-role : ensure flexget is installed] ***********************
changed: [default]

TASK [flexget-daemon-role : ensure daemon user exists] *************************
changed: [default]

TASK [flexget-daemon-role : ensure config dir exists] **************************
changed: [default]

TASK [flexget-daemon-role : ensure flexget config file is setup correctly] *****
changed: [default]

TASK [flexget-daemon-role : ensure systemd startup scripts are setup correctly]
changed: [default]

RUNNING HANDLER [flexget-daemon-role : reload systemd] *************************
changed: [default]

RUNNING HANDLER [flexget-daemon-role : enable flexget service] *****************
changed: [default]

RUNNING HANDLER [flexget-daemon-role : stop flexget service] *******************
ok: [default]

RUNNING HANDLER [flexget-daemon-role : set flexget web password] ***************
fatal: [default]: FAILED! => {"failed": true, "msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user. For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user"}

RUNNING HANDLER [flexget-daemon-role : start flexget service] ******************

NO MORE HOSTS LEFT *************************************************************
    to retry, use: --limit @tests/test.retry

PLAY RECAP *********************************************************************
default                    : ok=11   changed=9    unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

from flexget-daemon.

gaieges avatar gaieges commented on June 17, 2024

Ahh - Think you're exactly right regarding the role name issue. Know how to fix that in all cases (ie if I check out the repo as a different folder name)? Looking around briefly, it seems as though most scripts just assume you use the reponame.

On the second issue, for some reason I see the same thing. It appears you can fix it if you set become: true on the test.yml script. Which I think in turn breaks the Travis test. I'll give it a shot in a separate branch. edit I lied about this. Looks like it's something else. Investigating.

from flexget-daemon.

robgmills avatar robgmills commented on June 17, 2024

Cool. Hoping to get this resolved so I can make sure any changes I submit don't break your targeted OS.

from flexget-daemon.

gaieges avatar gaieges commented on June 17, 2024

Think I have a fix for this as well, weird issue.

from flexget-daemon.

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.