https://www.orchest.io/ logo
#tech-support
Title
# tech-support
c

Carlos A. Crespo

10/24/2022, 2:09 PM
Hi! I follow development workflow and when I run
Copy code
orchest install --dev
I get this error:
Copy code
Installing the Orchest Controller to manage the Orchest Cluster...
Traceback (most recent call last):
  File "/home/carlos/Documents/github/orchest/.venv/bin/orchest", line 33, in <module>
    sys.exit(load_entry_point('orchest-cli', 'console_scripts', 'orchest')())

(...)

  File "/home/carlos/Documents/github/orchest/orchest-cli/orchestcli/cmds.py", line 174, in install
    with open(f"services/orchest-controller/deploy/k8s/{manifest_file_name}") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'services/orchest-controller/deploy/k8s/orchest-controller.yaml'
I think I have all the dependencies installed. I tried looking in
scripts/build_container.sh
for some clue ¿? but to no avail. Does anyone have any idea or guesses what might be wrong? Thanks in advance!
j

Jacopo

10/24/2022, 2:11 PM
Hi @Carlos A. Crespo, when installing with
--dev
you will first need to build the orchest controller through, for example,
bash scripts/build_container.sh -o $SOME_VERSION -t $SOME_VERSION -i orchest-controller
. This will make it so that the required yaml file is created
👍 1
Note that this particular option is to install Orchest with an
orchest-controller
that has had some source code changes, and differs from dev mode, i.e.
orchest patch --dev
This means that, if you don't need to play around with the controller, you can install Orchest normally and then apply
--dev
mode
c

Carlos A. Crespo

10/24/2022, 2:19 PM
@Jacopo Thank you for your response.
Hi @Carlos A. Crespo, when installing with
--dev
you will first need to build the orchest controller through, for example,
bash scripts/build_container.sh -o $SOME_VERSION -t $SOME_VERSION -i orchest-controller
. This will make it so that the required yaml file is created
Yes, I have run it but no error and no yaml file created. I wan't to work in this issue.
j

Jacopo

10/24/2022, 2:22 PM
Yes, I have run it but no error and no yaml file created.
Could you show me the output of the build script that you are getting?
Also, where are you invoking the command from? You need to be in the root directory of the orchest repo
Btw, to work on that issue you won't need to install with
--dev
, but I'm definitively interested in getting it to work regardless
👍 1
c

Carlos A. Crespo

10/24/2022, 2:54 PM
Now I re-run everything and I got the same: http://linkode.org/#GpHbSbiMJbzuarSzdKS8d I will return to this topic in the afternoon. Thanks for your time and sorry for not being able to make progress!
👀 1
r

Rick Lamers

10/24/2022, 2:54 PM
Reading up on this thread, you have to make sure you have the dependencies available that are listed here.
make
helm
kubectl
and
go
(min. 1.18) in particular are crucial
j

Jacopo

10/24/2022, 2:55 PM
Indeed, depenencies are the issue, see
😥 1
c

Carlos A. Crespo

10/25/2022, 1:17 PM
Hello 👋, I finally managed to solve the problem. Here are the details: Ubuntu 22.04.1, 64-bit with Python 3.10 with all dependencies installed. However, it was not working due to npm and pnpm. If I install as it is in the guide:
sudo apt-get install -y nodejs
sudo npm install -g pnpm
It installs without any problems but when running
npm run setup --install && pnpm i
I get the following error:
Copy code
> setup
> npm i -g pnpm@~7.0.0

npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/bin/pnpm
npm ERR! dest /usr/bin/.pnpm-JTllyBcj
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/bin/pnpm' -> '/usr/bin/.pnpm-JTllyBcj'
npm ERR!  [Error: EACCES: permission denied, rename '/usr/bin/pnpm' -> '/usr/bin/.pnpm-JTllyBcj'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'rename',
npm ERR!   path: '/usr/bin/pnpm',
npm ERR!   dest: '/usr/bin/.pnpm-JTllyBcj'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/_logs/2022-10-24T22_02_42_068Z-debug-0.log
It doesn't matter if I run it with
sudo
To avoid this problem I used
nodeenv
and everything worked great.
Copy code
$ python -m venv env
$ source env/bin/activate
(env) $ pip install nodeenv
(env) $ nodeenv -p
(env) $ which npm
(env) $ npm install -g pnpm
Thanks @juanlu for the help!
🙌🏼 1
🙌 2
r

Rick Lamers

10/25/2022, 4:17 PM
Great to see you pull through 🔥 💪. Thanks @juanlu and apologies for the bumpy ride @Carlos A. Crespo!
6 Views