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

can't remove '/var/www/wallabag/var/cache': Invalid argument #347

Open
curionox opened this issue Jul 5, 2023 · 6 comments
Open

can't remove '/var/www/wallabag/var/cache': Invalid argument #347

curionox opened this issue Jul 5, 2023 · 6 comments

Comments

@curionox
Copy link

curionox commented Jul 5, 2023

Environment
Version: docker wallabag/wallabag
Installation: docker
PHP version:
Database: mysql
Parameters:
What steps will reproduce the bug?
When I execute the following command as root on Alpine

use docker-compsoe

services:
  wallabag:
    image: wallabag/wallabag
    container_name: wallabag
    environment:
      - MYSQL_ROOT_PASSWORD=wallaroot
      - SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
      - SYMFONY__ENV__DATABASE_HOST=db
      - SYMFONY__ENV__DATABASE_PORT=3306
      - SYMFONY__ENV__DATABASE_NAME=wallabag
      - SYMFONY__ENV__DATABASE_USER=wallabag
      - SYMFONY__ENV__DATABASE_PASSWORD=wallapass
      - SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
      - SYMFONY__ENV__REDIS_PORT=7379
      - SYMFONY__ENV__DATABASE_TABLE_PREFIX="wallabag_"
      - SYMFONY__ENV__MAILER_DSN=~
      - [email protected]
      - SYMFONY__ENV__DOMAIN_NAME=https://***:443
      - SYMFONY__ENV__SERVER_NAME="wallabag"
    ports:
      - '6080:80'
    volumes:
      - /opt/wallabag/images:/var/www/wallabag/web/assets/images
      - /opt/wallabag/data:/var/www/wallabag/data
    healthcheck:
      test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost/"]
      interval: 1m
      timeout: 3s
    depends_on:
      - db
      - redis
  db:
    image: mariadb
    environment:
      - MYSQL_ROOT_PASSWORD=wallaroot
    ports:
      - 3306:3306
    volumes:
      - /opt/mariadb/data:/var/lib/mysql
  redis:
    image: redis:alpine
    ports:
      - 7379:6379```

db_1 | Version: '11.0.2-MariaDB-1:11.0.2+maria~ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
db_1 | 2023-07-05 6:50:40 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'unauthenticated' host: '172.24.0.4' (This connection closed normally without authentication)
wallabag | WARN: MySQL database is already configured. Remove the environment variable with root password.
wallabag | rm: can't remove '/var/www/wallabag/var/cache': Invalid argument
wallabag exited with code 1

@tuxoche
Copy link

tuxoche commented Jul 15, 2023

Same issue here, just on LXC container Debian Bookworm on Proxmox. Oh and i wanna use a already running maraidb on a different host :-(

@atdnorth
Copy link

atdnorth commented Jul 17, 2023

Same here. Log output. LXC with ubuntu and portainer.


Checked Status Recommendation


PDO Driver (pdo_mysql) OK!

Database connection OK!

Database version OK!

curl_exec OK!

curl_multi_init OK!


[OK] Success! Your system can run wallabag properly.

Step 2 of 4: Setting up database.


Creating schema...

Clearing the cache...

Database successfully setup.

Step 3 of 4: Administration setup.


Administration successfully setup.

Step 4 of 4: Config setup.


Config successfully setup.

[OK] wallabag has been successfully installed.

[OK] You can now configure your web server, see https://doc.wallabag.org

rm: can't remove '/var/www/wallabag/var/cache': Invalid argument

@cgraefe
Copy link

cgraefe commented Jul 18, 2023

Same here on CentOS 7. To work around the problem temporarily, I downgraded wallabag/wallabag from version 2.5.4 to 2.5.2.

@frootmig
Copy link

I can confirm that downgrading to wallabag version 2.5.2 solves the issue. Database type doesn’t matter. Tested on lxc Debian 12.

@frootmig
Copy link

frootmig commented Oct 2, 2023

As a workaround I am building my own wallabag container for this purpose with the following Dockerfile:

FROM wallabag/wallabag:2.6.6

RUN sed -i 's/rm -f -r /var/www/wallabag/var/cache/echo "Disable cache delete"/g' /entrypoint.sh

Seems this helps for my environment. But I still don't understand why the rm command is not possible and has to be ommited.

@ehoppmann
Copy link

Downgrading to 2.5.2 fixed things here, still broken on latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants