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

no such file or directory, open '/lila/...' after crashing at first setup/startup #122

Open
alvinlollo opened this issue Sep 20, 2024 · 9 comments

Comments

@alvinlollo
Copy link

When I've been installing Lila during the process do starting it up for the first time my computer crashed resulting in an errors that are hard to fix, using some of the actions:
start Start the containers stop Stop the containers restart Restart the containers down Stop the containers and remove their volumes build Pre-fetch and pre-build all the images necessary for the containers format Run the code formatter to match Lichess code style hostname Set the hostname to something different than the default localhost mobile For mobile app development. Pair and connect to a mobile device flutter Get the 'flutter run' command with the URL arguments pre-configured db Reset and re-seed the database with fresh fake data lila clean Run 'sbt clean' in the lila container. Useful if there are compilation errors lila restart Restart the lila container to apply changes to the codebase gitpod public Make http port 8080 public on the Gitpod instance ui Compile the frontend code. Runs in watch mode to automatically recompile on changes add-services Add new services to the existing setup status Show the status of all git repositories in ./repos pull Pull the latest changes from all git repositories in ./repos

I've been able to fix all but one issue which is this:
no such file or directory, open '/lila/...'
almost all the commands I tried to use tries to access this directory that does not exist, I'm not sure how to fix it or what's specifically contained in it except for db and config

@alvinlollo
Copy link
Author

alvinlollo commented Sep 20, 2024

Another things to add (if it helps)

  • is when I used .lila-docker ui it spits out an error:

` node:internal/modules/cjs/loader:1222
throw err;
^

Error: Cannot find module '/lila/ui/build'
at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
at Module._load (node:internal/modules/cjs/loader:1045:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:5)
at node:internal/main/run_main_module:30:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v22.5.1`

  • When I list all my directories in / I do not see /lila

  • And I store all my containers in a auto mounted directory at /media/HD2 and make a directory with the appropriate name including docker, and of course I have symlinked them and it does not effect in running containers

@alvinlollo
Copy link
Author

alvinlollo commented Sep 24, 2024

Relised that During the setup process it would have eventually cloned 2 more repos:

I put them at / so the first part of the issue is done but a new problem is
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./lila": stat ./lila: no such file or directory: unknown

I've tried symlinking /lila to /lila-docker but it did not work

@Carbrex
Copy link
Member

Carbrex commented Sep 24, 2024

I would recommend you to reclone lila-docker and try running ./lila-docker start again.

@alvinlollo
Copy link
Author

I have done that as well as reinstalling docker but it would not try and reinstall everything again

@alvinlollo
Copy link
Author

Every container is starting up correctly except lila-docker-lila-1

@Carbrex
Copy link
Member

Carbrex commented Sep 24, 2024

What is the error you are seeing?

@alvinlollo
Copy link
Author

node:internal/modules/cjs/loader:1222
throw err;
^

Error: Cannot find module '/lila/ui/build'
at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
at Module._load (node:internal/modules/cjs/loader:1045:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:5)
at node:internal/main/run_main_module:30:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v22.5.1`

@fitztrev
Copy link
Member

What host OS are you using?

And during the setup, when you run ./lila-docker start has it not cloned lila into ./repos/lila? You mention symlinking but that should not be necessary.

@alvinlollo
Copy link
Author

i'm using Ubuntu 24.04.1 LTS and it has cloned everything into ./repos/lila

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

3 participants