Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Stopped app's missing certificate prevents nginx from starting on Cloudron 10.2.0

Stopped app's missing certificate prevents nginx from starting on Cloudron 10.2.0

Scheduled Pinned Locked Moved Unsolved Support
1 Posts 1 Posters 19 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • affinityA
    affinityA
    affinity
    wrote last edited by
    #1

    On Cloudron 10.2.0, nginx failed to start because two configuration files for a stopped WordPress app referenced certificate files that were absent. The Cloudron dashboard and other hosted sites became unreachable, although their app containers continued to run.

    The nginx configuration test reported cannot load certificate and No such file or directory. The stopped app's apex and www configurations were under platformdata/nginx/applications/<app-id>/.

    A subsequent inspection found 42 included nginx configuration files associated with stopped apps among the 27 stopped apps inspected, beyond the two files initially quarantined. They passed nginx -t at the time of inspection. Four more entries were subsequently quarantined for two unused domains. We have not verified whether every remaining entry is affected by the same certificate lifecycle problem.

    To recover, we moved the two failing configuration files to a root-owned backup outside the nginx configuration tree, ran nginx -t, and started nginx. The dashboard and unaffected sites became reachable again. The app remains stopped; we did not delete its mailboxes.

    We do not yet know why the certificate files were missing, when the nginx files were generated, or why they remained in place. Cloudron staff previously noted that stopping an app should remove its nginx configuration: https://forum.cloudron.io/topic/13883/stopped-apps-generate-cert-errors

    While examining the installed 10.2.0 code, we noticed that the app location-change flow calls reverseProxy.configureApp even when runState is stopped. It appears that this can write nginx configurations for the new locations while the app remains stopped. We have not reproduced that flow or established whether it caused this incident. Could you confirm whether it is expected and whether those configurations can later reference missing certificates?

    Could Cloudron reconcile stopped-app configurations before nginx starts, and quarantine a configuration referencing a missing certificate while continuing to serve the dashboard and unaffected apps? Any recovery should preserve TLS validation and avoid serving an affected hostname with the wrong certificate. It would also help to surface the affected app and domain prominently in the dashboard or recovery logs.

    Does 10.2.1 address this failure path? Is there a supported preventative check or cleanup procedure for existing installations? We can provide sanitized logs and additional version information privately.

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Bookmarks
    • Search