Skip to content

Unable to create swapfile #48

@FallconTXoC

Description

@FallconTXoC

Expected Behavior

As explained in the docs, swapfile should be created with no problem in the webserver container.

Actual Behavior

swapon /swapfile throws an Operation not permitted error. When checking perms by doing a swapoff -a system indicates that we are not a superuser. This kind of behavior is usual in a VPS environment when using a specific OS that limits actions, but should not happen in a container. Though I'm using Podman so I'm not sure if this is related to it, but this is unlikely.

Steps to Reproduce the Problem

  • Build the containers using the steps described in the docs.
  • Start the containers using the steps described in the docs.
  • Open a shell in the webserver container and use the steps to create a swapfile in the docs.

Specifications

  • OpenCVE version: Latest
  • Platform: Windows Server 2022 (using WSL 2 Ubuntu 22.04.1 LTS)
  • Docker version: Using Podman v4.9.0
  • Docker-compose version: v2.24.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions