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: Broken Pipe in Kubernetes deployment #527

Open
IngwiePhoenix opened this issue Nov 28, 2024 · 0 comments
Open

Bug: Broken Pipe in Kubernetes deployment #527

IngwiePhoenix opened this issue Nov 28, 2024 · 0 comments

Comments

@IngwiePhoenix
Copy link

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

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

1 participant