friendica / friendica/docker

Enabling debugging with autoinstall via env variables seems brocken

Open
#284 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
68
Forks
26
PR merge metrics
No merged PRs in 30d

Description

I created a new instance with docker-compose (using autoinstall) where the env variables

```
- FRIENDICA_LOGFILE=/tmp/friendica.log
- FRIENDICA_LOGLEVEL=debug
- FRIENDICA_DEBUGGING=true
```

are set.

Executing into the friendica container before trying to register the admin user showed that no log has been created. The env variables passed are available.

After registering the admin user with `bin/console user add` and logging into the instance the `Logs` settings under `Admin` showed:

![Image](https://github.com/user-attachments/assets/a574b72d-fe9b-4892-a00b-c514fd61ee9c)

It seems obvious that the log is not created and logging not enabled as expected.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the docker-compose autoinstall setup with FRIENDICA_LOGFILE, FRIENDICA_LOGLEVEL, and FRIENDICA_DEBUGGING set, then inspect the container environment and run bin/console user add. Compare the configured values with the Admin Logs settings and verify that the expected log file is created and debug logging is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.