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

failed to get the current user's default shell #1615

Open
jele84 opened this issue Jan 30, 2025 · 1 comment
Open

failed to get the current user's default shell #1615

jele84 opened this issue Jan 30, 2025 · 1 comment
Labels
1. Bug Something isn't working

Comments

@jele84
Copy link

jele84 commented Jan 30, 2025

Describe the bug
Toolbox won't start

Steps how to reproduce the behaviour

  1. Use Fedora CoreOS 38
  2. Enter toolbox create
  3. See the error (Additional context)

Expected behaviour
successful launch

Actual behaviour
Error: failed to get the current user's default shell

Screenshots
If applicable, add screenshots to help explain your problem.

Output of toolbox --version (v0.0.90+)
toolbox version 0.0.99.4

Toolbx package info (rpm -q toolbox)
toolbox-0.0.99.4-1.fc38.x86_64

Output of podman version

Client:       Podman Engine
Version:      4.5.1
API Version:  4.5.1
Go Version:   go1.20.4
Built:        Fri May 26 20:58:48 2023
OS/Arch:      linux/amd64

Podman package info (rpm -q podman)
podman-4.5.1-1.fc38.x86_64

Info about your OS
Fedora CoreOS 38.20230625.3.0

Additional context
Please help me figure out why toolbox does not start

# toolbox create --container test --log-level debug
DEBU Running as real user ID 0                    
DEBU Resolved absolute path to the executable as /usr/bin/toolbox 
DEBU Running on a cgroups v2 host                 
DEBU TOOLBOX_PATH is /usr/bin/toolbox             
DEBU Migrating to newer Podman                    
DEBU Toolbox config directory is /root/.config/toolbox 
DEBU Current Podman version is 4.5.1              
DEBU Creating runtime directory /run/toolbox      
DEBU Old Podman version is 4.5.1                  
DEBU Migration not needed: Podman version 4.5.1 is unchanged 
DEBU Setting up configuration                     
DEBU Setting up configuration: file /root/.config/containers/toolbox.conf not found 
DEBU Resolving container and image names          
DEBU Container: ''                                
DEBU Distribution (CLI): ''                       
DEBU Image (CLI): ''                              
DEBU Release (CLI): ''                            
DEBU Resolved container and image names           
DEBU Container: 'fedora-toolbox-38'               
DEBU Image: 'fedora-toolbox:38'                   
DEBU Release: '38'                                
DEBU Resolving container and image names          
DEBU Container: 'test'                            
DEBU Distribution (CLI): ''                       
DEBU Image (CLI): 'registry.fedoraproject.org/fedora-toolbox:38' 
DEBU Release (CLI): ''                            
DEBU Resolved container and image names           
DEBU Container: 'test'                            
DEBU Image: 'registry.fedoraproject.org/fedora-toolbox:38' 
DEBU Release: '38'                                
DEBU Checking if container test already exists    
DEBU Looking for image registry.fedoraproject.org/fedora-toolbox:38
DEBU Resolving fully qualified name for image registry.fedoraproject.org/fedora-toolbox:38 from RepoTags 
DEBU Resolved image registry.fedoraproject.org/fedora-toolbox:38 to registry.fedoraproject.org/fedora-toolbox:38 
DEBU Creating runtime directory /run/toolbox      
DEBU Checking if 'podman create' supports '--mount type=devpts' `
DEBU 'podman create' supports '--mount type=devpts' 
DEBU Checking if 'podman create' supports '--ulimit host' 
DEBU 'podman create' supports '--ulimit host'     
DEBU Resolving path to the D-Bus system socket    
DEBU /root canonicalized to /var/roothome         
DEBU Resolving path to the Avahi socket           
DEBU failed to find a SOCK_STREAM socket for avahi-daemon.socket 
DEBU Resolving path to the KCM socket             
DEBU failed to find a SOCK_STREAM socket for sssd-kcm.socket 
DEBU Resolving path to the pcsc socket            
DEBU failed to find a SOCK_STREAM socket for pcscd.socket 
DEBU Checking if /media is a symbolic link to /run/media 
DEBU /media is a symbolic link to /run/media      
DEBU Checking if /mnt is a symbolic link to /var/mnt 
DEBU /mnt is a symbolic link to /var/mnt          
DEBU Looking for toolbox.sh                       
DEBU Found /etc/profile.d/toolbox.sh              
DEBU Checking if /home is a symbolic link to /var/home 
DEBU /home is a symbolic link to /var/home        
Error: failed to get the current user's default shell
# echo $SHELL
/bin/bash
@jele84 jele84 added the 1. Bug Something isn't working label Jan 30, 2025
@jele84
Copy link
Author

jele84 commented Jan 30, 2025

Seems, that I found the way to start it:

SHELL=/bin/bash toolbox enter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant