Code Monkey home page Code Monkey logo

circus_autorestart_plugin's People

Contributors

metworkbot avatar thebaptiste avatar thefab avatar

Watchers

 avatar  avatar  avatar

circus_autorestart_plugin's Issues

ValueError: '/home/mfdata/var/plugins/<plugin>/...' is not in the subpath of '/home/mfdata/<plugin>' OR one path is relative and the other is absolute.

In the circus.log of the mfdata module, there is an error looping indefinitely :

2023-12-15 15:53:52 circus[809] [INFO] process: /opt/metwork-mfext-2.2/opt/python3_core/bin/python -c from circus import plugins;plugins.main() --endpoint ipc:///home/mfdata/var/circus.socket --pubsub ipc:///home/mfdata/var/circus_pubsub.socket --config __name__:plugin:autorestart:::stop_signal:9:::stop_children:True:::name:plugin:autorestart circus_autorestart_plugin.CircusAutorestartPlugin launched under pid: 2876
2023-12-15 15:53:53 circus[2876] [INFO] Loading the plugin...
2023-12-15 15:53:53 circus[2876] [INFO] Endpoint: 'ipc:///home/mfdata/var/circus.socket'
2023-12-15 15:53:53 circus[2876] [INFO] Pub/sub: 'ipc:///home/mfdata/var/circus_pubsub.socket'
2023-12-15 15:53:53 circus[2876] [INFO] Starting
2023-12-15 15:53:53 circus_autorestart_plugin[2876] [INFO] watch /home/mfdata/var/plugins/foo
2023-12-15 15:53:53 circus[2876] [INFO] Stopping
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/metwork-mfext-2.2/opt/python3_circus/lib/python3.11/site-packages/circus/plugins/__init__.py", line 262, in main
    plugin.start()
  File "/opt/metwork-mfext-2.2/opt/python3_circus/lib/python3.11/site-packages/circus/util.py", line 482, in _log
    return func(self, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/metwork-mfext-2.2/opt/python3_circus/lib/python3.11/site-packages/circus/plugins/__init__.py", line 64, in start
    self.initialize()
  File "/opt/metwork-mfext-2.2/opt/python3_circus/lib/python3.11/site-packages/circus_autorestart_plugin/__init__.py", line 142, in initialize
    self.fill_watchers(debug_output=True)
  File "/opt/metwork-mfext-2.2/opt/python3_circus/lib/python3.11/site-packages/circus_autorestart_plugin/__init__.py", line 205, in fill_watchers
    monitored_watcher.start_monitoring()
  File "/opt/metwork-mfext-2.2/opt/python3_circus/lib/python3.11/site-packages/circus_autorestart_plugin/__init__.py", line 65, in start_monitoring
    self.wds = add_inotify_watch(self.inotify_handle, self.working_dir,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/metwork-mfext-2.2/opt/python3_circus/lib/python3.11/site-packages/circus_autorestart_plugin/__init__.py", line 42, in add_inotify_watch
    if not include_function(fullpath):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/metwork-mfext-2.2/opt/python3_circus/lib/python3.11/site-packages/circus_autorestart_plugin/__init__.py", line 96, in include_function
    if ematches(path):
       ^^^^^^^^^^^^^^
  File "/opt/metwork-mfext-2.2/opt/python3/lib/python3.11/site-packages/gitignore_parser.py", line 29, in <lambda>
    return lambda file_path: any(r.match(file_path) for r in rules)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/metwork-mfext-2.2/opt/python3/lib/python3.11/site-packages/gitignore_parser.py", line 29, in <genexpr>
    return lambda file_path: any(r.match(file_path) for r in rules)
                                 ^^^^^^^^^^^^^^^^^^
  File "/opt/metwork-mfext-2.2/opt/python3/lib/python3.11/site-packages/gitignore_parser.py", line 128, in match
    rel_path = str(_normalize_path(abs_path).relative_to(self.base_path))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/metwork-mfext-2.2/opt/python3_core/lib/python3.11/pathlib.py", line 730, in relative_to
    raise ValueError("{!r} is not in the subpath of {!r}"
ValueError: '/home/mfdata/var/plugins/foo/python3_virtualenv_sources' is not in the subpath of '/home/mfdata/foo' OR one path is relative and the other is absolute.

Reproduced with docker image: metwork/mfdataplugins-centos8-buildimage:release_2.2

Create/install two dummy "dev-linked" plugins in mfdata. Then watch the circus log.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.