inabahare / lewd2

A based file uploader
https://lewd.se
GNU General Public License v3.0
23 stars 3 forks source link

Uploading not working #93

Closed kattjevfel closed 4 years ago

kattjevfel commented 4 years ago

When in development mode, upload will be marked as success but no file is uploaded and this is shown in the log:

Aug 18 23:28:14 lewd node[2346]: (node:2346) UnhandledPromiseRejectionWarning: Error: Cannot find module 'weak-napi'
Aug 18 23:28:14 lewd node[2346]: Require stack:
Aug 18 23:28:14 lewd node[2346]: - /var/www/lewd2/packages/backend/node_modules/dnode/index.js
Aug 18 23:28:14 lewd node[2346]: - /var/www/lewd2/packages/backend/dist/index.js
Aug 18 23:28:14 lewd node[2346]:     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
Aug 18 23:28:14 lewd node[2346]:     at Function.Module._load (internal/modules/cjs/loader.js:841:27)
Aug 18 23:28:14 lewd node[2346]:     at Module.require (internal/modules/cjs/loader.js:1025:19)
Aug 18 23:28:14 lewd node[2346]:     at require (internal/modules/cjs/helpers.js:72:18)
Aug 18 23:28:14 lewd node[2346]:     at new D (/var/www/lewd2/packages/backend/node_modules/dnode/index.js:28:20)
Aug 18 23:28:14 lewd node[2346]:     at Function.exports.connect (/var/www/lewd2/packages/backend/node_modules/dnode/index.js:12:13)
Aug 18 23:28:14 lewd node[2346]:     at scan (/var/www/lewd2/packages/backend/dist/index.js:1416:35)
Aug 18 23:28:14 lewd node[2346]:     at HandleUpload.newFile (/var/www/lewd2/packages/backend/dist/index.js:1549:23)
Aug 18 23:28:14 lewd node[2346]:     at HandleUpload.HandleExistingFile (/var/www/lewd2/packages/backend/dist/index.js:1499:12)
Aug 18 23:28:14 lewd node[2346]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
Aug 18 23:28:14 lewd node[2346]: (node:2346) 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().
Aug 18 23:28:14 lewd node[2346]: (node:2346) [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.

When in production mode it will simply tell me I must sign in, or throw a 504 Gateway Error (from nginx)

I have a feeling this might be due to the recent cron rework judging by at scan (/var/www/lewd2/packages/backend/dist/index.js:1416:35), but I know you like tickets about as much as possible.