Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] no more logrotate with access.log #451

Closed
1 task done
adamaen87 opened this issue Jan 25, 2024 · 3 comments
Closed
1 task done

[BUG] no more logrotate with access.log #451

adamaen87 opened this issue Jan 25, 2024 · 3 comments

Comments

@adamaen87
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Some weeks ago my swag dashboard started to have very long loading time.
After some checks, i find my access.log was huge (more than 400MB). The cause is that there was no logrotate since the beginning of december (3 december for me at 02:00). Before that i can see logrotate working once a week.
On the 15 january , i have forced a manual logrotate by connecting in the container, it works and started a new access.log, but still no logrotate for now.

Expected Behavior

No response

Steps To Reproduce

Using latest swag image

Environment

- OS: OMV 6 latest version

CPU architecture

x86-64

Docker creation

version: "2.1"
networks:
  swag:
    name: swag
services:
  swag:
    image: lscr.io/linuxserver/swag
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1002
      - PGID=100
      - TZ=Europe/Paris
      - URL=xxxxx.fr
      - SUBDOMAINS=wildcard
      - VALIDATION=dns
      - DNSPLUGIN=ovh
      - [email protected]
      - DOCKER_MODS=linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-dashboard|linuxserver/mods:swag-dbip
    volumes:
      - CHANGE_TO_COMPOSE_DATA_PATH/swag:/config
      - /srv/dev-disk-by-uuid-0af611a1-6b76-4b01-a0cb-60f81c3e770c/docker/volumes/nextcloud_aio_nextcloud/_data/data/nextcloud.log:/appslog/nextcloud/nextcloud.log:ro
      - CHANGE_TO_COMPOSE_DATA_PATH/bitwarden/config/logs/identity.log:/appslog/bitwarden/identity.log:ro
      - CHANGE_TO_COMPOSE_DATA_PATH/authelia/authelia.log:/appslog/authelia/authelia.log:ro
      - CHANGE_TO_COMPOSE_DATA_PATH/embyserver/logs/embyserver.txt:/appslog/embyserver/embyserver.txt:ro
    ports:
      - 81:81
      - 443:443
    restart: unless-stopped
    networks:
      - swag

Container logs

25/01/2024
08:58:48
[mod-init] Running Docker Modification Logic
25/01/2024
08:58:48
[mod-init] Adding linuxserver/mods:swag-auto-reload to container
25/01/2024
08:58:49
[mod-init] linuxserver/mods:swag-auto-reload at sha256:9dbae5d11b0dab3c5825a700ea1933a606a81df6312186da0f167e6ed8b6039e has been previously applied skipping
25/01/2024
08:58:49
[mod-init] Adding linuxserver/mods:swag-dashboard to container
25/01/2024
08:58:50
[mod-init] linuxserver/mods:swag-dashboard at sha256:594c67a6b598c080f019ef64b7978d4408e451f88530293646e395d8324460a7 has been previously applied skipping
25/01/2024
08:58:50
[mod-init] Adding linuxserver/mods:swag-dbip to container
25/01/2024
08:58:51
[mod-init] linuxserver/mods:swag-dbip at sha256:030971d1da84c696a68f83198102981bef5c9a37aa54666e48915723ecd50a70 has been previously applied skipping
25/01/2024
08:58:51
[migrations] started
25/01/2024
08:58:51
[migrations] 01-nginx-site-confs-default: skipped
25/01/2024
08:58:51
[migrations] done
25/01/2024
08:58:51
usermod: no changes
25/01/2024
08:58:51
───────────────────────────────────────
25/01/2024
08:58:51
25/01/2024
08:58:51
      ██╗     ███████╗██╗ ██████╗
25/01/2024
08:58:51
      ██║     ██╔════╝██║██╔═══██╗
25/01/2024
08:58:51
      ██║     ███████╗██║██║   ██║
25/01/2024
08:58:51
      ██║     ╚════██║██║██║   ██║
25/01/2024
08:58:51
      ███████╗███████║██║╚██████╔╝
25/01/2024
08:58:51
      ╚══════╝╚══════╝╚═╝ ╚═════╝
25/01/2024
08:58:51
25/01/2024
08:58:51
   Brought to you by linuxserver.io
25/01/2024
08:58:51
───────────────────────────────────────
25/01/2024
08:58:51
25/01/2024
08:58:51
To support the app dev(s) visit:
25/01/2024
08:58:51
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
25/01/2024
08:58:51
25/01/2024
08:58:51
To support LSIO projects visit:
25/01/2024
08:58:51
https://www.linuxserver.io/donate/
25/01/2024
08:58:51
25/01/2024
08:58:51
───────────────────────────────────────
25/01/2024
08:58:51
GID/UID
25/01/2024
08:58:51
───────────────────────────────────────
25/01/2024
08:58:51
25/01/2024
08:58:51
User UID:    1002
25/01/2024
08:58:51
User GID:    100
25/01/2024
08:58:51
───────────────────────────────────────
25/01/2024
08:58:51
25/01/2024
08:58:52
using keys found in /config/keys
25/01/2024
08:58:52
Variables set:
25/01/2024
08:58:52
PUID=1002
25/01/2024
08:58:52
PGID=100
25/01/2024
08:58:52
TZ=Europe/Paris
25/01/2024
08:58:52
URL=xxxxxxxxx.fr
25/01/2024
08:58:52
SUBDOMAINS=wildcard
25/01/2024
08:58:52
EXTRA_DOMAINS=
25/01/2024
08:58:52
ONLY_SUBDOMAINS=false
25/01/2024
08:58:52
VALIDATION=dns
25/01/2024
08:58:52
CERTPROVIDER=
25/01/2024
08:58:52
DNSPLUGIN=ovh
25/01/2024
08:58:52
[email protected]
25/01/2024
08:58:52
STAGING=
25/01/2024
08:58:52
25/01/2024
08:58:53
Using Let's Encrypt as the cert provider
25/01/2024
08:58:53
SUBDOMAINS entered, processing
25/01/2024
08:58:53
Wildcard cert for xxxxxx.fr will be requested
25/01/2024
08:58:53
E-mail address entered: [email protected]
25/01/2024
08:58:53
dns validation via ovh plugin is selected
25/01/2024
08:58:53
Certificate exists; parameters unchanged; starting nginx
25/01/2024
08:58:53
The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
25/01/2024
08:58:53
**** Applying the SWAG dashboard mod... ****
25/01/2024
08:58:53
Applying the dbip mod...
25/01/2024
08:58:53
Applied the dbip mod
25/01/2024
08:58:53
**** goaccess already installed, skipping ****
25/01/2024
08:58:53
**** swag-auto-reload deps already installed, skipping ****
25/01/2024
08:58:53
**** libmaxminddb already installed, skipping ****
25/01/2024
08:58:53
**** Applied the SWAG dashboard mod ****
25/01/2024
08:58:53
[custom-init] No custom files found, skipping...
25/01/2024
08:58:53
MOD Auto-reload: Watching the following files/folders for changes (excluding .sample and .md files):
25/01/2024
08:58:53
/config/nginx
25/01/2024
08:58:53
[ls.io-init] done.
25/01/2024
08:58:53
Server ready
@snippetsBySam
Copy link

snippetsBySam commented Jan 27, 2024

The issue has been previously reported(see here) and fixed in this PR, but it hasn't been merged by the maintainers yet. For now you can just use the test image from the branch i.e. lspipepr/swag:amd64-2.8.0-pkg-e4f07cf0-dev-6ed17c1d5291121da66a0935ed8651a109b15e4e-pr-441 or lspipepr/swag:arm64v8-2.8.0-pkg-e4f07cf0-dev-6ed17c1d5291121da66a0935ed8651a109b15e4e-pr-441, depending on your CPU architecture, until it gets merged.

@adamaen87
Copy link
Author

Yes i find it after i posted the issue. I will wait the official release, until then i force logrotate with command line in the container.
Thanks.

@nemchik
Copy link
Member

nemchik commented Jan 27, 2024

Fixed in #441

@nemchik nemchik closed this as completed Jan 27, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants