Cron image not running when the instance has not been initalized

Open
#313 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, docker-compose, mariadb, nginx, shell

Research direction

Start with cron.sh and the Docker Compose setup, then reproduce the startup sequence with an uninitialized Friendica instance. Check how the cron container handles the “Friendica isn't properly installed yet” condition. Done means the container remains running before initialization and starts the Friendica daemon after basic configuration.

Written by the indexing model from the issue text.

Description

Durig updating the images for 2025.07 (rc) I realized the following behaviour:

Setting up a friendice instance with docker-compose including a mariadb, one friendica container for the app and a second one for cron jobs (starting with cron.sh) plus a nginx.

The cron container keeps exiting with the message:

cron_1  | [Error] Friendica isn't properly installed yet
test2_cron_1 exited with code 0

After setting up basic configuration the cron container messaged
cron_1 | Starting Friendica daemon
and kept running.

I see this behaviour annoying (at least for new users) and suggest that the cron container shall keep running after start.

@nupplaphil, what is your opinion to this?

Dominant language
Shell
Stars
70
Forks
27
Avg merge
1h 7m
Merged PRs (30d)
1

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from friendica/docker

All issues in friendica/docker

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.