Giter Club home page Giter Club logo

Comments (12)

swalkinshaw avatar swalkinshaw commented on June 3, 2024

On some systems (a CI env in my case),

Any more details on this system? Trellis requires Ubuntu which should always come with cron.

from trellis.

LucasDemea avatar LucasDemea commented on June 3, 2024

This happens with a custom docker image based on cimg/php:8.1.21-browsers. Cron was not missing in the 8.1.9 version.
This image is itself based on cimg/base which is on an ubuntu base.

from trellis.

LucasDemea avatar LucasDemea commented on June 3, 2024

docker run -it ubuntu:22.04 crontab
=>

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "crontab": executable file not found in $PATH: unknown.

from trellis.

strarsis avatar strarsis commented on June 3, 2024

+1, I encountered the same issue with a minimal Ubuntu 22.04 LTS install.
Manually installing the cron package fixed the issue.

However, the current Ubuntu 22.04 LTS minimal installation does not contain cron, so for Trellis supporting the default Ubuntu 22.04 LTS minimal install, Trellis should also ensure that the cron package is being present?
There are golden images for Ubuntu 22.04 LTS minimal that also contain cron, but these being custom additions by the image creator/cloud provider. And there were images for Ubuntu LTS minimal in the past that contained additional services that actually interfered with the Trellis setup. IMHO only the default Ubuntu minimal system should be considered authoritative.
And just ensuring the presence of the cron package should not interfere with systems with cron already installed.

Edit: I used the Ubuntu 22.04 LTS server ISO (ubuntu-22.04.3-live-server-amd64 (Ubuntu 22.04.3 LTS (Jammy Jellyfish)
release images page
, Server install image) and selected the "Ubuntu Server (minimized)" base. Also enabled "Install OpenSSH server" option, left all listed, featured server snaps unselected.

from trellis.

swalkinshaw avatar swalkinshaw commented on June 3, 2024

@strarsis was cron the only other package missing when using the minimal version?

from trellis.

strarsis avatar strarsis commented on June 3, 2024

@swalkinshaw: Yes, after cron was installed the provisioning worked fine.

from trellis.

swalkinshaw avatar swalkinshaw commented on June 3, 2024

Seems reasonable to add then in that case 👍

from trellis.

strarsis avatar strarsis commented on June 3, 2024

@swalkinshaw: On first glance, it should be sufficient to add cron to apt_packages_default?

from trellis.

swalkinshaw avatar swalkinshaw commented on June 3, 2024

Yep that should be it 👍

from trellis.

strarsis avatar strarsis commented on June 3, 2024

@swalkinshaw: #1506 #1499

from trellis.

strarsis avatar strarsis commented on June 3, 2024

IMHO, as the PR is now merged, this issue can be closed.

from trellis.

strarsis avatar strarsis commented on June 3, 2024

(Note: I just noticed that there is another, similar PR, which is probably now redundant: #1499)

from trellis.

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.