What's happening?
When the hard link count of a file reaches 65000, the server starts throwing errors and presents the user with a 504 Gateway Time-Out.
2019-01-18 18:24:21.2121+00:00: You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
2019-01-18 18:24:21.2121+00:00: Error: EMLINK: too many links, link '/var/www/lewd2/Public/uploads/cc0ab30ede7e_0.png' -> '/var/www/lewd2/Public/uploads/c4891de873b5_0.png'
2019-01-18 18:25:21.2121+00:00: (node:531) UnhandledPromiseRejectionWarning: Error: EMLINK: too many links, link '/var/www/lewd2/Public/uploads/cc0ab30ede7e_0.png' -> '/var/www/lewd2/Public/uploads/bb2e9d1566df_0.png'
2019-01-18 18:25:21.2121+00:00: (node:531) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
2019-01-18 18:25:21.2121+00:00: (node:531) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2019-01-18 18:26:22.2222+00:00: (node:531) UnhandledPromiseRejectionWarning: Error: EMLINK: too many links, link '/var/www/lewd2/Public/uploads/cc0ab30ede7e_0.png' -> '/var/www/lewd2/Public/uploads/93d90566f30e_0.png'
and so on.
What should be happening?
Throw a 500 error instead and perhaps tell them there are too many (65000) duplicates of the same file.
Also keep quiet in the error log, because it's handled and fine aye? 8-)
But why?
Because some thundercunt is going to try crash lewd.se one day and errors are annoying.
What's happening? When the hard link count of a file reaches 65000, the server starts throwing errors and presents the user with a 504 Gateway Time-Out.
and so on.
What should be happening? Throw a 500 error instead and perhaps tell them there are too many (65000) duplicates of the same file. Also keep quiet in the error log, because it's handled and fine aye? 8-)
But why? Because some thundercunt is going to try crash lewd.se one day and errors are annoying.