Skip to content

SubprocessError: Exception occurred in preexec_fn #139

Description

@mikechen66

Information

The problem arises in chapter:

  • Introduction
  • Text Classification
  • Transformer Anatomy
  • Multilingual Named Entity Recognition
  • Text Generation
  • Summarization
  • [ *] Question Answering
  • Making Transformers Efficient in Production
  • Dealing with Few to No Labels
  • Training Transformers from Scratch
  • Future Directions

Describe the bug

[chown Operation not permitted]

chown: changing ownership of 'elasticsearch-7.9.2/NOTICE.txt': Operation not permitted
chown: changing ownership of 'elasticsearch-7.9.2/config/users_roles': Operation not permitted
chown: changing ownership of 'elasticsearch-7.9.2/config/log4j2.properties': Operation not permitted

File ~/miniconda3/envs/torch/lib/python3.10/subprocess.py:1864, in Popen._execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, gid, gids, uid, umask, start_new_session)
1862 err_msg = os.strerror(errno_num)
1863 raise child_exception_type(errno_num, err_msg, err_filename)
-> 1864 raise child_exception_type(err_msg)

To Reproduce

Steps to reproduce the behavior:

  1. !chown -R daemon:daemon elasticsearch-7.9.2
  2. es_server = Popen(args=['elasticsearch-7.9.2/bin/elasticsearch'],
    stdout=PIPE, stderr=STDOUT, preexec_fn=lambda: os.setuid(1))

Expected behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions