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

chore: create upload directory when server starts #4

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

rabi-siddique
Copy link
Collaborator

@rabi-siddique rabi-siddique commented Nov 4, 2024

While testing the Causeway deployment on Kubernetes, I discovered that although the server starts successfully, file uploads consistently fail due to the upload directory not being created on time. To resolve this issue, I have adjusted the server's startup process to ensure the directory is created beforehand.

Here are the relevant Kubernetes logs:

kubectl logs causeway-prod-5d5694c76b-5ggb8
plantuml.jar not found. Downloading...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 9862k  100 9862k    0     0   935k      0  0:00:10  0:00:10 --:--:-- 1279k
Downloaded plantuml.jar successfully.
Running in production mode...
yarn run v1.22.22
$ node index.js
Server listening on 3000
Multiple 'POST /upload' requests resulted in 'ENOENT: no such file or directory' errors, indicating the absence of the required 'uploads' directory.

These logs were generated while addressing file upload failures, and the adjustments to directory creation should prevent further errors of this nature.

@rabi-siddique rabi-siddique merged commit fab64d7 into main Nov 4, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant