Skip to content

The database was suddenly deleted #52

@Invincible83

Description

@Invincible83

A strange thing happened to me. I have a pretty powerful VPS with ~10 apps. Over the morning they all stopped working. Superadmin couldn't load (the apps). All other apps were throwing 502 Bad Gateway. I figured out what was the problem but not what caused it.

The databases/applications.json was empty. Fortunately applications.backup contained json but applications.json was completely empty. There was no {} either, so superadmin threw an error when loading the file on startup.

I am attaching a zip with the code that made the problem - exactly what happened. Unfortunately I couldn't figure out why applications.json was suddenly empty. Maybe a mini outage at the vps hosting but I can't simulate that. I didn't add any app. No app had errors. And even none of them were close to SSL expiration.

test.zip

====================================================
PID           : 1699
Node.js       : v20.10.0
Total.js      : v4093
OS            : linux 5.4.0-105-generic
Memory        : 9.72 MB / 17.54 MB
User          : root
====================================================
Name          : Total.js
Version       : 1.0.0
Date          : 2024-03-22 08:03:23
Mode          : debug
====================================================
Directory     : /www/superadmin
node_modules  : /www/node_modules/total4/
====================================================

Thank you

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