Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

CentOS7: Failed to start gunicorn.service: Unit not found.

Đang mở
#364 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
centos, linux
Lĩnh vực
devops

Hướng nghiên cứu

Reproduce the declared python and python::gunicorn resources on CentOS 7 and inspect the service behavior around the reported systemctl invocation. Compare the module's Gunicorn management behavior with the expected service unit; done means the declaration creates a startable gunicorn.service without the reported Unit not found error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

using master:HEAD on CentOS7 having declared:

class { 'python':
   version    => 'system',
   pip        => 'present',
   dev        => 'absent',
   virtualenv => 'absent',
   gunicorn   => 'present',
   manage_gunicorn => true,
 }  

and:

python::gunicorn { 'puppet_reports':
   ensure      => present,
   mode        => 'wsgi',
   dir         => $dir,
   bind        => "0.0.0.0:${port}",
   accesslog   => "${log_dir}/access.log",
   errorlog    => "${log_dir}/error.log",
   appmodule   => 'puppet_reports:app',
   timeout     => 30,
   owner       => $owner,
   require     => Vcsrepo[$dir],
 }

I get:

Error: Could not start Service[gunicorn]: Execution of '/bin/systemctl start gunicorn' returned 5: Failed to start gunicorn.service: Unit not found.
Wrapped exception:
Execution of '/bin/systemctl start gunicorn' returned 5: Failed to start gunicorn.service: Unit not found.
Error: /Stage[main]/Python::Config/Service[gunicorn]/ensure: change from stopped to running failed: Could not start Service[gunicorn]: Execution of '/bin/systemctl start gunicorn' returned 5: Failed to start gunicorn.service: Unit not found.
Notice: /Stage[main]/Python/Anchor[python::end]: Dependency Service[gunicorn] has failures: true
Warning: /Stage[main]/Python/Anchor[python::end]: Skipping because of failed dependencies
Ngôn ngữ chính
Ruby
Star
196
Fork
371
Merge trung bình
5 giờ 54 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voxpupuli/puppet-python

Tất cả issue của voxpupuli/puppet-python

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.