Skip to content

Bug: Broken Pipe in Kubernetes deployment #527

@IngwiePhoenix

Description

@IngwiePhoenix

Hello there!

I just wanted to share a file with my friends from my Plik instance running inside a k3s environment.

The way that ingress is configured is actually:
plik deployment -> Traefik -> VPN <- Caddy <- World

Somewhere in that chain, and apparently quite early, I encounter this error:

[11/28/2024 20:04:14][WARNING ][[10.42.0.195][dnXYxqnjpSIXfjpN]] error while copying file to response : write tcp 10.42.0.17:8080->10.42.0.1:39416: write: broken pipe
[11/28/2024 20:04:14][INFO    ][[10.42.0.195][dnXYxqnjpSIXfjpN]] GET /stream/dnXYxqnjpSIXfjpN/T96DpRPCgr2o1ebl/XDNetplay.7z [200 OK] (193.84823ms)
[11/28/2024 20:04:18][CRITICAL][[10.42.0.195][dnXYxqnjpSIXfjpN]] internal server error -- missing reader -- 500
[11/28/2024 20:04:18][INFO    ][[10.42.0.195][dnXYxqnjpSIXfjpN]] GET /stream/dnXYxqnjpSIXfjpN/T96DpRPCgr2o1ebl/XDNetplay.7z [301 Moved Permanently] (2.113206ms)
[11/28/2024 20:04:19][CRITICAL][[10.42.0.195][dnXYxqnjpSIXfjpN]] internal server error -- missing reader -- 500
[11/28/2024 20:04:19][INFO    ][[10.42.0.195][dnXYxqnjpSIXfjpN]] GET /stream/dnXYxqnjpSIXfjpN/T96DpRPCgr2o1ebl/XDNetplay.7z [301 Moved Permanently] (2.078496ms)
[11/28/2024 20:04:24][CRITICAL][[10.42.0.195][dnXYxqnjpSIXfjpN]] internal server error -- missing reader -- 500
[11/28/2024 20:04:24][INFO    ][[10.42.0.195][dnXYxqnjpSIXfjpN]] GET /stream/dnXYxqnjpSIXfjpN/T96DpRPCgr2o1ebl/XDNetplay.7z [301 Moved Permanently] (2.440177ms)

What reasons could there be for this situation? Here is my config:

apiVersion: v1
kind: ConfigMap
metadata:
  name: plik-cm
  namespace: plik
data:
  plikd.cfg: |-
    Debug               = false
    DebugRequests       = false
    LogLevel            = "INFO"
    ListenPort          = 8080
    ListenAddress       = "0.0.0.0"
    MetricsPort         = 0
    MetricsAddress      = "0.0.0.0"
    Path                = ""
    SslEnabled          = false # unused, tls terminated with traefik/caddy
    SslCert             = "plik.crt"
    SslKey              = "plik.key"
    TlsVersion          = "tlsv10"
    NoWebInterface      = false
    DownloadDomain      = "https://uploads.birb.it"
    DownloadDomainAlias = []
    EnhancedWebSecurity = true
    SessionTimeout      = "365d"
    AbuseContact        = "[email protected]"
    WebappDirectory     = "../webapp/dist"
    ClientsDirectory    = "../clients"
    ChangelogDirectory  = "../changelog"
    SourceIpHeader      = "X-FORWARDED-FOR"
    UploadWhitelist     = []

    MaxFileSizeStr      = "100GB"
    MaxUserSizeStr      = "unlimited"
    MaxFilePerUpload    = 1000

    DefaultTTLStr       = "30d"
    MaxTTLStr           = "90d"

    FeatureAuthentication = "forced"
    FeatureOneShot        = "enabled"
    FeatureRemovable      = "enabled"
    FeatureStream         = "enabled"
    FeaturePassword       = "enabled"
    FeatureComments       = "enabled"
    FeatureSetTTL         = "enabled"
    FeatureExtendTTL      = "enabled"
    FeatureClients        = "enabled"
    FeatureGithub         = "enabled"
    FeatureText           = "enabled"

    DataBackend = "file"
    [DataBackendConfig]
        Directory = "/plik/files"

    [MetadataBackendConfig]
        Driver = "sqlite3"
        ConnectionString = "/plik/db/plik.db"
        Debug = false

Kind regards,
Ingwie

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