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

cmd not found during build of rstudio server #833

Closed
shalberd opened this issue Jan 11, 2025 · 2 comments
Closed

cmd not found during build of rstudio server #833

shalberd opened this issue Jan 11, 2025 · 2 comments
Labels
kind/bug Something isn't working

Comments

@shalberd
Copy link
Contributor

shalberd commented Jan 11, 2025

What steps did you take and what happened:
I built rstudio server on my Mac.
This error here does not seem to affect the final image built, but still wondering why cmd not found happens:

STEP 11/37: WORKDIR /tmp/
--> 3b6339bd07a2
STEP 12/37: RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/rstudio-server-rhel-2024.04.2-764-x86_64.rpm &&     yum install -y rstudio-server-rhel-2024.04.2-764-x86_64.rpm &&     rm rstudio-server-rhel-2024.04.2-764-x86_64.rpm &&     yum -y clean all  --enablerepo='*'
--2025-01-10 18:27:38--  https://download2.rstudio.org/server/rhel9/x86_64/rstudio-server-rhel-2024.04.2-764-x86_64.rpm
Resolving download2.rstudio.org (download2.rstudio.org)... 3.165.190.47, 3.165.190.72, 3.165.190.7, ...
Connecting to download2.rstudio.org (download2.rstudio.org)|3.165.190.47|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 133017206 (127M) [application/octet-stream]
Saving to: ‘rstudio-server-rhel-2024.04.2-764-x86_64.rpm’

     0K ........ ........ ........ ........ 25% 2.29M 41s
 32768K ........ ........ ........ ........ 50% 2.29M 27s
 65536K ........ ........ ........ ........ 75% 2.26M 14s
 98304K ........ ........ ........ ......  100% 2.29M=56s

2025-01-10 18:28:35 (2.28 MB/s) - ‘rstudio-server-rhel-2024.04.2-764-x86_64.rpm’ saved [133017206/133017206]

CentOS Stream 9 - BaseOS                        1.2 MB/s | 8.4 MB     00:06    
CentOS Stream 9 - AppStream                     2.2 MB/s |  21 MB     00:09    
CentOS Stream 9 - CRB                           941 kB/s | 6.7 MB     00:07    
CentOS Stream 9 - Extras packages                21 kB/s |  20 kB     00:00    
Extra Packages for Enterprise Linux 9 - x86_64  2.2 MB/s |  23 MB     00:10    
Extra Packages for Enterprise Linux 9 openh264  1.4 kB/s | 2.5 kB     00:01    
Last metadata expiration check: 0:00:02 ago on Fri 10 Jan 2025 06:29:44 PM UTC.
Dependencies resolved.
================================================================================
 Package             Arch        Version                Repository         Size
================================================================================
Installing:
 rstudio-server      x86_64      2024.04.2+764-1        @commandline      127 M
Installing dependencies:
 psmisc              x86_64      23.4-3.el9             baseos            243 k

Transaction Summary
================================================================================
Install  2 Packages

Total size: 127 M
Total download size: 243 k
Installed size: 639 M
Downloading Packages:
psmisc-23.4-3.el9.x86_64.rpm                    911 kB/s | 243 kB     00:00    
--------------------------------------------------------------------------------
Total                                           295 kB/s | 243 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : psmisc-23.4-3.el9.x86_64                               1/2 
  Installing       : rstudio-server-2024.04.2+764-1.x86_64                  2/2 
  Running scriptlet: rstudio-server-2024.04.2+764-1.x86_64                  2/2 
cp: cannot create regular file '/etc/init.d/': Not a directory
chmod: cannot access '/etc/init.d/rstudio-server': No such file or directory
/var/tmp/rpm-tmp.Nu0GPq: line 152: chkconfig: command not found
/usr/sbin/rstudio-server: line 12: /etc/init.d/rstudio-server: No such file or directory

  Verifying        : psmisc-23.4-3.el9.x86_64                               1/2 
  Verifying        : rstudio-server-2024.04.2+764-1.x86_64                  2/2 

Installed:
  psmisc-23.4-3.el9.x86_64         rstudio-server-2024.04.2+764-1.x86_64        

Complete!

What did you expect to happen:
This error in build log not to appear:

cp: cannot create regular file '/etc/init.d/': Not a directory
chmod: cannot access '/etc/init.d/rstudio-server': No such file or directory
/var/tmp/rpm-tmp.Nu0GPq: line 152: chkconfig: command not found
/usr/sbin/rstudio-server: line 12: /etc/init.d/rstudio-server: No such file or directory

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • OpenDatahub Version: (please check the operator version)
  • Workbench: (all, data-science, etc)
  • Workbench Version: (2023.1, etc)
  • Specific tool: (jupyterlab, rstudio server, code-server, elyra-pipelines,etc)
  • Notebook-Controller Version: (please check the image version in notebook-controller deployment)

Logs/Screenshots

@shalberd shalberd added the kind/bug Something isn't working label Jan 11, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in ODH IDE Planning Jan 11, 2025
@jiridanek
Copy link
Member

It's a known issue, we closed this as Won't Do in Jira https://issues.redhat.com/browse/RHOAIENG-5099

@shalberd
Copy link
Contributor Author

"There does not seem to be any impact on functionality at all, since we don't use systemd in our images, but instead we use supervisord (implemented in RHOAIENG-8298, before we used spawn-fcgi). We write our own service unit files for supervisord, so we are not impacted."

I see, yeah, not relevant in a CentOS9 / RHEL Context with supervisord, cool. Closing.

Sven

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅Done in ODH IDE Planning Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants