Comments (12)
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.
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.
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.
+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.
@strarsis was cron
the only other package missing when using the minimal version?
from trellis.
@swalkinshaw: Yes, after cron
was installed the provisioning worked fine.
from trellis.
Seems reasonable to add then in that case 👍
from trellis.
@swalkinshaw: On first glance, it should be sufficient to add cron
to apt_packages_default
?
from trellis.
Yep that should be it 👍
from trellis.
from trellis.
IMHO, as the PR is now merged, this issue can be closed.
from trellis.
(Note: I just noticed that there is another, similar PR, which is probably now redundant: #1499)
from trellis.
Related Issues (20)
- Default mount type and slow VM HOT 6
- Action Required: Fix Renovate Configuration
- Feature Request: re-enable php opcache for dev-environments? HOT 4
- Bug: ERROR! couldn't resolve module/action 'community.general.alternatives' HOT 1
- Bug: uploads subfolders ownership HOT 1
- Bug: the role 'mailhog' was not found HOT 1
- Bug: MariaDB Serversetup skipped if we want to create multiple sites with remote db and local db
- Bug: `Check whether Ansible can connect as <user>` – passes when SSH connection fails HOT 2
- Bug: composer auth during wordpress install has loop var conflict HOT 1
- Bug: TLS 1.3 not working HOT 4
- Bug: latest curl version fails to retrieve urls on trellis managed hosts
- Feature Request: switch from ssmtp to msmtp
- Personal Data in Commit HOT 4
- Vagrant box with Ubuntu 22.04 on Apple silicon won't start HOT 2
- 💡 Feature Request: Add ability to use vault pass lookup plugins by default. HOT 3
- PHP `8`: Enable `JIT` (`PHP` `INI` option) HOT 4
- Can't install galaxy dependencies on Python 3.12 HOT 1
- Officially support Ubuntu 24.04
- MariaDB 10.6.18 release requires action HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trellis.