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

Server returns error when uploading lua scripts #4

Closed
YukariChiba opened this issue May 8, 2022 · 2 comments
Closed

Server returns error when uploading lua scripts #4

YukariChiba opened this issue May 8, 2022 · 2 comments

Comments

@YukariChiba
Copy link

Env Info

  • Operating System: Arch Linux x86_64 with 5.17.1-zen1-1-zen
  • rustc Version: 1.59.0
  • hive Version: master branch, commit ba132f1

Error

To reproduce, upload a lua script via curl:

curl localhost:3000/services/hello -X PUT -F single=@test.lua | jq

Server returns:

{
  "error": "I/O error",
  "detail": {
    "msg": "Invalid cross-device link (os error 18)"
  }
}

And the log of server shows:

 ERROR hive_server::handle > Invalid cross-device link (os error 18)
@hack3ric
Copy link
Owner

hack3ric commented May 8, 2022

Problem located. It is common among Linux users to have /tmp and home directory on different mount points. However tokio::fs::rename cannot be used across them.

I’ll push a fix soon.

hack3ric added a commit that referenced this issue May 9, 2022
This should solve #4.
@YukariChiba
Copy link
Author

Thank you for your fix. But now there is still issue uploading lua scripts:

{
  "error": "I/O error",
  "detail": {
    "msg": "the source path is neither a regular file nor a symlink to a regular file"
  }
}

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