question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PermissionError: [Errno 1] Operation not permitted when run rasa shell in docker

See original GitHub issue

Rasa version: 1.2.3

Rasa X version (if used & relevant): 0.20.1

Python version: 3.6.8

Operating system (windows, osx, …): Linux

Issue: PermissionError: [Errno 1] Operation not permitted when run rasa shell in docker

Error (including full traceback):

 File "/usr/local/lib/python3.6/site-packages/rasa/core/run.py", line 126, in run_cmdline_io
    server_url=constants.DEFAULT_SERVER_FORMAT.format(port)
  File "/usr/local/lib/python3.6/site-packages/rasa/core/channels/console.py", line 129, in record_messages
    text = get_user_input(button_question)
  File "/usr/local/lib/python3.6/site-packages/rasa/core/channels/console.py", line 77, in get_user_input
    style=Style([("qmark", "#b373d6"), ("", "#b373d6")]),
  File "/usr/local/lib/python3.6/site-packages/questionary/question.py", line 45, in ask
    return self.unsafe_ask(patch_stdout)
  File "/usr/local/lib/python3.6/site-packages/questionary/question.py", line 59, in unsafe_ask
    return self.application.run()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 709, in run
    return run()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 683, in run
    return f.result()
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/future.py", line 149, in result
    raise self._exception
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/coroutine.py", line 90, in step_next
    new_f = coroutine.throw(exc)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 658, in _run_async2
    result = yield f
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/coroutine.py", line 86, in step_next
    new_f = coroutine.send(None)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/application/application.py", line 598, in _run_async
    with self.input.attach(read_from_input):
  File "/usr/local/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/input/vt100.py", line 147, in _attached_input
    loop.add_reader(fd, callback)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/posix.py", line 272, in add_reader
    self.selector.register(fd)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/select.py", line 76, in register
    sel.register(fd)
  File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/eventloop/select.py", line 131, in register
    self._sel.register(fd, selectors.EVENT_READ, None)
  File "/usr/local/lib/python3.6/selectors.py", line 412, in register
    self._epoll.register(key.fd, epoll_events)
PermissionError: [Errno 1] Operation not permitted

Command or request that led to error:

rasa shell

Content of configuration file (config.yml) (if relevant):

# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en
pipeline: supervised_embeddings

# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mkopinskycommented, Nov 23, 2021

I got this error; it had nothing to do with file permissions and was because I forgot to pass -it to docker run

2reactions
VinceD2049commented, Apr 30, 2020

You can execute rasa shell is a docker like this :

docker run  --user $(id -u):$(id -g) -it -v $(pwd):/app --entrypoint rasa rasa/rasa shell  
Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Compose fails - Rasa Open Source
Implementing rasa with docker and slack. ... I get the error- ... exception=PermissionError(1, 'Operation not permitted')> rasa_1 ...
Read more >
python 3.4 - PermissionError: [Errno 1] Operation not permitted
This means that you need to start your script with sudo/admin rights.
Read more >
Getting permission error : r/docker - Reddit
For the most part, when you see something like PermissionError: [Errno 1] Operation not permitted on a linux machine, it means that the ......
Read more >
rasa/rasa - Docker Image | Docker Hub
Running and changing the documentation. First of all, install all the required dependencies: make install. After the installation has finished, you can run...
Read more >
Building the docker-compose.yaml to run or init Rasa bot
Because rasa init would try to create files to the container's /app folder, which in turn map to the host's specific folder, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found