machinaris: Internal Server Error

Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Fresh installation of Debian 10, Docker 19 and Machinaris (Plotter-only), following the Docker Wiki at https://github.com/guydavis/machinaris/wiki/Docker

Can someone confirm if this is an issue with Machinaris or not? I successfully installed on an exact same VM yesterday.

Update 1: Just tried on a fresh install of Ubuntu 20.04, same issue.

Update 2: Seems to be a Plotter-only issue as running Full-Node works as expected.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

Closing as v0.4.0 has been released. Thanks for the contribution!

While it may still be possible to see the generic Gunicorn web server error page shown above for other reasons such as overloaded server or other error, the specific error being discussed above is no longer possible in v0.4.0 as a plotter is managed via the controller’s WebUI now. It’s no longer possible to WebUI pages on a worker, just a redirect to the controller’s WebUI.

Good day! Machinaris test version ghcr.io/guydavis/machinaris:test has re-worked this area of the code as part of adding support for a single WebUI to manage multiple workers on your LAN.

If you have the time/inclination, please test out this upcoming release and let me know if it corrects them problem outlined in this issue.

Hi, this exact issue just happened on one my plotters (Windows) tonight. I accidentally pulled the log out from under a running plot job (from in the .machinaris/plotman/logs/ folder). When I did so, the main page broke due to bad parsing on my part. The plotman status CLI command was actually printing error info in its first lines as shown:

image

The second output is after I put the missing log file back, my plotman status command no longer had the error and my Machinaris /index page came back. Please check your plotman status output from in-container console.

Overall the fix for this bug is for me to tighten up the parsing of plotman status so web server doesn’t face plant if the output contains a couple of error lines. Thanks for the report!

http://IP_ADDR:8926/plotting shows the Plotman interface as expected, and so does http://IP_ADDR:8926/settings/plotting.

Seems to be a problem related to the summary page.

Logs

docker logs machinaris
Adding key at path: {/root/.chia/mnemonic.txt}
Traceback (most recent call last):
  File "/chia-blockchain/venv/bin/chia", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
  File "/chia-blockchain/chia/cmds/chia.py", line 77, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/chia-blockchain/chia/cmds/keys.py", line 52, in add_cmd
    mnemonic = Path(filename).read_text().rstrip()
  File "/usr/lib/python3.8/pathlib.py", line 1232, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/lib/python3.8/pathlib.py", line 1218, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/lib/python3.8/pathlib.py", line 1074, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.chia/mnemonic.txt'
Added plot directory "/plots".
Starting in Plotter-only mode.  Run Plotman from either CLI or WebUI.
Configuring Chia...
Configuring Plotman...
Starting Machinaris...
Completed startup.  Browse to port 8926.
Adding key at path: {/root/.chia/mnemonic.txt}
Traceback (most recent call last):
  File "/chia-blockchain/venv/bin/chia", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
  File "/chia-blockchain/chia/cmds/chia.py", line 77, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/chia-blockchain/chia/cmds/keys.py", line 52, in add_cmd
    mnemonic = Path(filename).read_text().rstrip()
  File "/usr/lib/python3.8/pathlib.py", line 1232, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/lib/python3.8/pathlib.py", line 1218, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/lib/python3.8/pathlib.py", line 1074, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.chia/mnemonic.txt'
Added plot directory "/plots".
Starting in Plotter-only mode.  Run Plotman from either CLI or WebUI.
Configuring Chia...
Configuring Plotman...
Starting Machinaris...
Completed startup.  Browse to port 8926.
Adding key at path: {/root/.chia/mnemonic.txt}
Traceback (most recent call last):
  File "/chia-blockchain/venv/bin/chia", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
  File "/chia-blockchain/chia/cmds/chia.py", line 77, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/chia-blockchain/chia/cmds/keys.py", line 52, in add_cmd
    mnemonic = Path(filename).read_text().rstrip()
  File "/usr/lib/python3.8/pathlib.py", line 1232, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/lib/python3.8/pathlib.py", line 1218, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/lib/python3.8/pathlib.py", line 1074, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.chia/mnemonic.txt'
Added plot directory "/plots".
Starting in Plotter-only mode.  Run Plotman from either CLI or WebUI.
Configuring Chia...
Configuring Plotman...
Starting Machinaris...
Completed startup.  Browse to port 8926.
Adding key at path: {/root/.chia/mnemonic.txt}
Traceback (most recent call last):
  File "/chia-blockchain/venv/bin/chia", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
  File "/chia-blockchain/chia/cmds/chia.py", line 77, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/chia-blockchain/venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/chia-blockchain/chia/cmds/keys.py", line 52, in add_cmd
    mnemonic = Path(filename).read_text().rstrip()
  File "/usr/lib/python3.8/pathlib.py", line 1232, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/lib/python3.8/pathlib.py", line 1218, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/lib/python3.8/pathlib.py", line 1074, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.chia/mnemonic.txt'
Added plot directory "/plots".
Starting in Plotter-only mode.  Run Plotman from either CLI or WebUI.
Configuring Chia...
Configuring Plotman...
Starting Machinaris...
Completed startup.  Browse to port 8926.

Tried to start plotting and it works as expected 😃