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

Internal server error: Unknown #4747

Closed
amadoson opened this issue Jan 16, 2025 · 1 comment
Closed

Internal server error: Unknown #4747

amadoson opened this issue Jan 16, 2025 · 1 comment

Comments

@amadoson
Copy link

Internal Error Stacktrace:

Error Message: [Errno 2] No such file or directory: '/proc/771/stat'

Traceback (most recent call last):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_classful.py", line 303, in proxy
    response = view(**request.view_args)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_classful.py", line 271, in inner
    return fn(*args, **kwargs)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/auth.py", line 130, in decorated_view
    return fn(*args, **kwargs)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/panel/admin/Dashboard.py", line 71, in index
    stats = {'system': hutils.system.system_stats(), 'top5': hutils.system.top_processes()}
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/hutils/system.py", line 22, in top_processes
    processes = [p for p in psutil.process_iter(['name', 'memory_full_info', 'cpu_percent']) if p.info['name'] != '']
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/hutils/system.py", line 22, in <listcomp>
    processes = [p for p in psutil.process_iter(['name', 'memory_full_info', 'cpu_percent']) if p.info['name'] != '']
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/__init__.py", line 1535, in process_iter
    proc = add(pid)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/__init__.py", line 1512, in add
    proc = Process(pid)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/__init__.py", line 319, in __init__
    self._init(pid)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/__init__.py", line 355, in _init
    self._ident = self._get_ident()
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/__init__.py", line 396, in _get_ident
    return (self.pid, self.create_time())
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/__init__.py", line 778, in create_time
    self._create_time = self._proc.create_time()
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/_pslinux.py", line 1717, in wrapper
    return fun(self, *args, **kwargs)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/_pslinux.py", line 1953, in create_time
    ctime = float(self._parse_stat_file()['create_time'])
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/_pslinux.py", line 1717, in wrapper
    return fun(self, *args, **kwargs)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/_common.py", line 508, in wrapper
    raise raise_from(err, None)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/_pslinux.py", line 1780, in _parse_stat_file
    data = bcat("%s/%s/stat" % (self._procfs_path, self.pid))
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/_common.py", line 851, in bcat
    return cat(fname, fallback=fallback, _open=open_binary)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/_common.py", line 839, in cat
    with _open(fname) as f:
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/psutil/_common.py", line 799, in open_binary
    return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE)

Details:

Hiddify Version: 10.80.11
Python Version: 3.10.16 (main, Dec 4 2024, 08:53:38) [GCC 13.2.0]
OS: Linux-6.8.0-51-generic-x86_64-with-glibc2.39
User Agent: Unknown

@litoosh13
Copy link

1.Make a backup
2. rebuild server to ubuntu 22.04
3. install latest version of the panel
4.restore backup
you can follow all learning's material about the panel here:
hiddify.com/manager

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

2 participants