i have an error for deploying python Voila on my VPS Ubuntu 22.04, 32 GB Ram 8 CPU Cores
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
this is my pm2 ecosystem.config.js:
module.exports = {
apps: [
{
name: "Voila-Test-Kernel-10",
script: "/opt/miniconda/envs/project3/bin/voila",
args: ["--no-browser", "/var/www/html/Voila_Home/AnalyticEngine.ipynb", "--template", "vuetify-default"],
interpreter: "/opt/miniconda/envs/project3/bin/python",
autorestart: true,
watch: false,
max_memory_restart: "31G",
instances: 1,
max_cpu_usage: 100
},
],
};
this is the error from pm2 logs:
0|Voila-Test-Kernel-10 | Traceback (most recent call last):
0|Voila-Test-Kernel-10 | File "/opt/miniconda/envs/project3/lib/python3.9/site-packages/voila/notebook_renderer.py", line 264, in _jinja_cell_generator
0|Voila-Test-Kernel-10 | output_cell = await self.executor.execute_cell(
0|Voila-Test-Kernel-10 | File "/opt/miniconda/envs/project3/lib/python3.9/site-packages/voila/execute.py", line 69, in execute_cell
0|Voila-Test-Kernel-10 | result = await self.async_execute_cell(cell, cell_index, store_history)
0|Voila-Test-Kernel-10 | File "/opt/miniconda/envs/project3/lib/python3.9/site-packages/nbclient/client.py", line 1005, in async_execute_cell
0|Voila-Test-Kernel-10 | raise DeadKernelError("Kernel died") from None
0|Voila-Test-Kernel-10 | nbclient.exceptions.DeadKernelError: Kernel died
0|Voila-Test-Kernel-10 | [Voila] AsyncIOLoopKernelRestarter: restarting kernel (1/5), keep random ports
if anyone know how to fix this please give me advice, thank you
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided pm2 ecosystem.config.js and the PM2 log showing nbclient.exceptions.DeadKernelError while running Voila from the Python 3.9 environment. Reproduce the deployment on Ubuntu 22.04, then determine whether the failure is in PM2 configuration or Voila/kernel execution; done means the notebook runs reliably under PM2 without kernel restarts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, python
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100