Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service does not start under Ubuntu 16.04 LTS #20

Closed
frne opened this issue Jul 6, 2018 · 6 comments
Closed

Service does not start under Ubuntu 16.04 LTS #20

frne opened this issue Jul 6, 2018 · 6 comments

Comments

@frne
Copy link

frne commented Jul 6, 2018

Maybe, this is just a question, but I cannot manage to get the role running if provisioning an Ubuntu Xenial Server.

Ansible Playbook (snip):

- hosts: all
  become: yes
  roles:
    - atosatto.minio
  vars:
    minio_server_datadirs: [ "/data" ]

Note: Mkdir-ed /data manually, doesn't make a difference

Minio service doesn't start. If I try to start it manually using sudo service minio start it runs for a short time:

sudo service minio status
● minio.service - Minio
   Loaded: loaded (/lib/systemd/system/minio.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-07-06 19:34:27 UTC; 3s ago
     Docs: https://docs.minio.io
  Process: 1523 ExecStartPre=/bin/bash -c [ -n "${MINIO_VOLUMES}" ] || echo "Variable MINIO_VOLUMES not set in /etc/default/minio" (code=exited, status=0/SUCCESS)
 Main PID: 1528 (minio)
    Tasks: 7
   Memory: 2.7M
      CPU: 14ms
   CGroup: /system.slice/minio.service
           └─1528 /usr/local/bin/minio server --address :9091 /data

Jul 06 19:34:27 ubuntu-xenial systemd[1]: Starting Minio...
Jul 06 19:34:27 ubuntu-xenial systemd[1]: Started Minio.

Then, http://server.tld:9091 is called in browser. => Connection refused

When sudo service minio status is called after that:

● minio.service - Minio
   Loaded: loaded (/lib/systemd/system/minio.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2018-07-06 19:34:32 UTC; 32s ago
     Docs: https://docs.minio.io
  Process: 1528 ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES (code=exited, status=1/FAILURE)
  Process: 1523 ExecStartPre=/bin/bash -c [ -n "${MINIO_VOLUMES}" ] || echo "Variable MINIO_VOLUMES not set in /etc/default/minio" (code=exited, status=0/SUCCESS)
 Main PID: 1528 (code=exited, status=1/FAILURE)

Jul 06 19:34:27 ubuntu-xenial systemd[1]: Starting Minio...
Jul 06 19:34:27 ubuntu-xenial systemd[1]: Started Minio.
Jul 06 19:34:32 ubuntu-xenial minio[1528]: [75B blob data]
Jul 06 19:34:32 ubuntu-xenial minio[1528]: [81B blob data]
Jul 06 19:34:32 ubuntu-xenial systemd[1]: minio.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 19:34:32 ubuntu-xenial systemd[1]: minio.service: Unit entered failed state.
Jul 06 19:34:32 ubuntu-xenial systemd[1]: minio.service: Failed with result 'exit-code'.

Am I doing it wrong, or is it a bug in the recipe / minio?

@frne
Copy link
Author

frne commented Jul 6, 2018

When /data is chemod-ed with 777, it works. Would be an improvement to the role, if the data directories are created and privileged correctly by the role, so they work. But besides that, this is basially resolved.

@atosatto
Copy link
Owner

atosatto commented Jul 7, 2018

Hi @frne, yes indeed it looks like a permissions problem. Are you using the latest version of the role (master)?

@frne
Copy link
Author

frne commented Jul 7, 2018

@atosatto installed via ansible galaxy yesterday. Will checkout master and try again.

@aotd1
Copy link

aotd1 commented Jul 30, 2018

v1.0.1 from ansible-galaxy is outdated.
Checkout from master fixes this problem (tested on Ubuntu 18.04)
Maybe update package in ansible-galaxy?

@atosatto
Copy link
Owner

atosatto commented Aug 9, 2018

Hi @frne I can confirm that with master it does work.
We will be doing soon a new release to avoid you to have to depend on master.
Can you confirm that master is working also for you?

@frne
Copy link
Author

frne commented Aug 9, 2018

@atosatto Yes, everything fine on master. Thx for your work.

@frne frne closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants