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 error on model upload #4331
Comments
@erohmensing I think you have been looking into this right? |
Yeah i've seen the error before -- @dhwanils95 what does your deployment setup look like? Does mounting a |
The rasa_x container already has a /tmp/ directory in it with some files. Would mounting a directory explicitly help? If you want I will try and check as soon as possible. Thanks! |
Hm I'm not quite sure, we're trying to debug the problem currently. How did you go about installing (manual, script, openshift instructions, etc.) and what is your deployment setup? I haven't reproduced it yet, that information could help. |
I used both the script and manual installation. Since there is not automated script for CentOS, I did a manual installation using my custom action server which was replaced in the app service. I am using docker containers (Following are the versions I am using right now):
I did mount an empty directory to /tmp/ but there is no change. The issue is still there and I am not able to upload my model file. Also in an unrelated context, where can I get your dockerfiles? I think I will be able to drastically reduce your image size since right now rasa, rasa-x and duckling are very bulky (as you can see in the above output), it will become a problem for a lot of people in the coming future for production deployments as everyone wants to reduce their resource consumption. Thanks and regards. |
Great, thank you for the info! As for the image size, there's already a PR about reducing the The duckling dockerfile can be found here: https://github.com/RasaHQ/duckling/blob/master/Dockerfile |
Great, I will look into it and see how I can help out. |
@dhwanils95 are you sure that you ran the permission commands in step 10 (also 11?) So for e.g. the models folder, you would run
Can you check the permissions of the directory and post them here? |
Hey @erohmensing , So, I had changed the permission of the directory but the docker user which ran the containers was different and was not in the group with the same permissions and hence it was throwing that error. Your solution pointed me to the right direction to check out that and I was able to solve it. Closing the issue. |
Hi @dhwanils95, can you please specify what line and where did you add it to solve this issue? |
Hello @tpinju00, It was not a line that I had to edit. The docker user which runs my docker containers did not have sufficient permissions even though I had changed the permissions of the directory as pointed out by @erohmensing. You will need to check to which groups does your docker user belongs to and whether that group has the required (770) rights on those directories. Add your docker user to the group and you should be good to go. |
@dhwanils95 , I did this:
But the error still persists, any advice? |
Rasa version: 1.2.2
Rasa X version (if used & relevant): 0.20.1
Python version: 3.6
Operating system (windows, osx, ...): Ubuntu 18.04 and CentOS 7.6
Issue:
I am trying to upload a model via Rasa-x on two different installations, one on Ubuntu and the other on CentOS, both are throwing the same error of permission denied.
Error:
Command or request that led to error:
Content of configuration file (config.yml) (if relevant):
Content of domain file (domain.yml) (if relevant):
The text was updated successfully, but these errors were encountered: