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

Permission Denied #5

Open
c-delouvencourt opened this issue Oct 26, 2023 · 2 comments
Open

Permission Denied #5

c-delouvencourt opened this issue Oct 26, 2023 · 2 comments

Comments

@c-delouvencourt
Copy link

Hello,

Thanks for your package, I have this error when I send an email (permission denied), how can I set my permission on Debian to handle this package ?

The command \"\"\" '/home/XXXXXX/node_modules/.bin/tsx' '/home/XXXXXX/vendor/maantje/react-email/src/../render.tsx' '/home/XXXXXX/emails/MBSubscriptionPaymentRejected' '{\"firstName\":\"Cl\\XXXXXX\",\"link\":\"XXXXXX\"}'\" failed.\n\nExit Code: 126(Invoked command cannot execute)\n\nWorking directory: /home/XXXXXX\n\nOutput:\n================\n\n\nError Output:\n================\nsh: 1: exec: : Permission denied\n

Thank you in advance

@maantje
Copy link
Owner

maantje commented Nov 1, 2023

Hey @c-delouvencourt 👋,

/home/XXXXXX/node_modules/.bin/tsx should be executable for the user the runs the script, most likely the user that runs your webserver.

What do your permission for /home/XXXXXX/node_modules/.bin/tsx look like?

@lvillacin
Copy link

lvillacin commented May 2, 2024

I encountered this issue as previously and noticed that node is not present in the command. Have you tried the solution in #7?

Also, make sure you install node in a folder that the user running the server has access to.

You can also check if the application directory is owned by the user running the server.

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