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

cant upload files #48

Closed
ippocratis opened this issue May 7, 2021 · 4 comments
Closed

cant upload files #48

ippocratis opened this issue May 7, 2021 · 4 comments

Comments

@ippocratis
Copy link

ippocratis commented May 7, 2021

so i managed to Install myDrive on my raspberry pi 400 running manjaro arm sway.
my flow was:
install Node Modules,
Run the build,
Create Environment Variables through webUI,
Rebuild the project,
create webui encryption key,
build docker with mongodb included,
Start the Docker Image,

istalling the node modules and running the build throw some errors (i dont recall them sorry) but nothing fatal build ended succesfully

in my docker-variables.env i dont use ssl for now coz i coudnt make that work(i have valid lets encrypt certs for my ddns but those are in .pem format and not sure how to add the .cert files but thatts another story brobably not related with my issue)

so i can login and navigate to mydrive at localhost:3000, ip:3000 and even http://ddns:3000 and able to create and move folders
following logs with docker logs --follow container_id and whenever i try to upload anything i get an error

Uploading File Error File Route: Await Stream Input Error
Could not remove fs file [Error: ENOENT: no such file or directory, unlink '/home/ippo/myDrive/data7ab031d5-ebab-48f0-bc9d-b62f593fabf7'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'unlink',
  path: '/home/ippo/myDrive/data7ab031d5-ebab-48f0-bc9d-b62f593fabf7'
}

in path i see 7ab031d5-ebab-48f0-bc9d-b62f593fabf7
i dont know whatt that is
given .env path was /home/ippo/myDrive/data

any ideas apreciated

@subnub
Copy link
Owner

subnub commented May 7, 2021 via email

@ippocratis
Copy link
Author

ippocratis commented May 7, 2021

true my path was missing the slash in the end
fixed that in the .env file under FS_DIRECTORY= and ROOT= and run
docker-compose up -d
again
but problem remains the same


Uploading File Error File Route: Await Stream Input Error
Could not remove fs file [Error: ENOENT: no such file or directory, unlink '/home/ippo/myDrive/data/fba07e89-599a-4868-94dc-197e3a02722f'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'unlink',
  path: '/home/ippo/myDrive/data/fba07e89-599a-4868-94dc-197e3a02722f'
}

@ippocratis
Copy link
Author

damn looks like i had to remove path from FS_DIRECTORY=
i had it both in ROOT and FS_DIRECTORY=

@ippocratis
Copy link
Author

you can close this

@subnub subnub closed this as completed May 7, 2021
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

No branches or pull requests

2 participants