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

Error on creating a new award #58

Open
ShlomiPorush opened this issue Jul 25, 2022 · 2 comments
Open

Error on creating a new award #58

ShlomiPorush opened this issue Jul 25, 2022 · 2 comments

Comments

@ShlomiPorush
Copy link

Error did occur: {"errno":-2,"code":"ENOENT","syscall":"copyfile","path":"/run/nodebb/node_modules/nodebb-plugin-ns-awards/public/uploads/award-dcc3c7ac-1659-42d0-a988-9ab0cab7db46.jpg","dest":"/app/code/public/uploads/awards/award-dcc3c7ac-1659-42d0-a988-9ab0cab7db46.jpg"}

image

@NicolasSiver
Copy link
Owner

Check your NodeBB installation. For some reason, the Plugin can not write the newly uploaded reward. You should check the user behind your NodeBB and if they can write files here:

  • /run/nodebb/node_modules/nodebb-plugin-ns-awards/public/uploads/
  • /app/code/public/uploads/awards/

@Frozen-byte
Copy link

got the same issue when I use the plugin on localhost on Linux.

Server answers:

{
    "errno": -2,
    "code": "ENOENT",
    "syscall": "copyfile",
    "path": "/home/frozen_byte/Projects/nodebb-plugin-ns-awards/public/uploads/award-2611e152-4610-4c52-b7ad-53ac5b3e3bb2.png",
    "dest": "/home/frozen_byte/Projects/NodeBB/public/uploads/awards/award-2611e152-4610-4c52-b7ad-53ac5b3e3bb2.png"
}

So I checked and the "awards" folder was missing, created it manually and it worked.

Anyway the missing folder should create automatically IMHO

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

3 participants