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

ChromeOS: SUCO runtime issues after #1081 #1082

Open
10 of 23 tasks
130s opened this issue Sep 6, 2024 · 18 comments
Open
10 of 23 tasks

ChromeOS: SUCO runtime issues after #1081 #1082

130s opened this issue Sep 6, 2024 · 18 comments
Assignees
Labels
Epic Meta issue that is typically used to list of action items

Comments

@130s
Copy link
Collaborator

130s commented Sep 6, 2024

Tested on 130s-c13-morph.

Not working on ChromeOS...

  • SUCO: ModuleNotFoundError: No module named 'rosdep2', bash_return_code: 1 #1100

  • SUCO: pip not installing a pkg on a Linux container on ChromeOS #1099

  • SUCO: apt packages that are hosted on ros.org apt source aren't installed #1102

  • Install cmd in the doc failed.

    $ export INITOS=/tmp/hut_10sqft_os-setup.py &&  \
      export VERSION=develop  \
      export HOST_NAME=130s-C13-Morph  \
      export OSTYPE=ChromeOS  \
      export USERID=gm130s  \
      sudo apt install -y curl python3  \
      curl --output $INITOS https://raw.githubusercontent.com/kinu-garage/hut_10sqft/$VERSION/hut_10sqft/src/hut_10sqft/init_setup.py && \
        chmod 755 $INITOS \
        $INITOS --hostname $HOST_NAME --os $OSTYPE --user_id $USERID
    -bash: export: `-y': not a valid identifier
    -bash: export: `--output': not a valid identifier
    -bash: export: `/tmp/hut_10sqft_os-setup.py': not a valid identifier
    -bash: export: `https://raw.githubusercontent.com/kinu-garage/hut_10sqft//hut_10sqft/src/hut_10sqft/init_setup.py': not a valid identifier
    
    • Exec cmd that worked:
      export INITOS=/tmp/hut_10sqft_os-setup.py &&    export VERSION=develop &&    export HOST_NAME=130s-C13-Morph &&    export OSTYPE=ChromeOS  &&  export USERID=gm130s &&  sudo apt install -y curl python3 &&    curl --output $INITOS https://raw.githubusercontent.com/kinu-garage/hut_10sqft/$VERSION/hut_10sqft/src/hut_10sqft/init_setup.py &&     chmod 755 $INITOS &&     $INITOS --hostname $HOST_NAME --os $OSTYPE --user_id $USERID
      
  • ~/.bashrc not linked. OS init setup tool: .bashrc didn't get updated  #796

  • SSH keys are not installed.

    $ ls -alth ~/.ssh
    ls: cannot access '/home/gm130s/.ssh': No such file or directory
    
  • link dir duplicated w/o any good usage.

    $ ls -lath ~/link/link/
    total 4.0K
    drwxr-xr-x 1 gm130s gm130s 90 Sep  6 13:53 ..
    drwxr-xr-x 1 gm130s gm130s 22 Sep  6 13:53 .
    lrwxrwxrwx 1 gm130s gm130s 33 Sep  6 13:53 GoogleDrive -> /mnt/chromeos/GoogleDrive/MyDrive
    
  • emacs-mozc, mozc-utils-gui (error reads mozc_tool that the shortcut mozc_conf_tool references to) missing.

    File is missing: Cannot open load file, No such file or directory, mozc
    
  • apt update fails.

    $ sudo apt update
    Ign:1 https://apt.dockerproject.org/repo ubuntu- InRelease
    Hit:2 https://deb.debian.org/debian bookworm InRelease
    :
    Ign:1 https://apt.dockerproject.org/repo ubuntu- InRelease
    Err:1 https://apt.dockerproject.org/repo ubuntu- InRelease
    
    Something wicked happened resolving 'apt.dockerproject.org:https' (-5 - No address associated with hostname)
    Fetched 55.4 kB in 7s (7,666 B/s)  
    Reading package lists... Done  
    Building dependency tree... Done 
    Reading state information... Done 
    All packages are up to date.
    W: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-/InRelease  Something wicked happened resolving 'apt.dockerproject.org:https' (-5 - No address associated with hostname)
    W: Some index files failed to download. They have been ignored, or old ones used instead. ```
    
  • ack in bash executable not found even though it's in package.xml.

  • git fetch origin fails.

    $ git fetch origin
    [email protected]: Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

    Update: I had to these things before git can access the remote:

    1. Generate ssh key by ssh-keygen.
    2. chmod 700 id_rsa*
    3. Register a pub key on to my account on github.com.
  • rosdep on bash not found.

    subprocess: About to execute the cmd: rosdep install --from-paths . --ignore-src -r -y
    output: , error: /bin/sh: 1: rosdep: not found, bash_return_code: 127
    
  • For unknown reason, ~/.config/hut_10sqft already existed with the HEAD pointing to older commit than the version I intended to use.

    • This may or may not be the cause of rosdep not installing the pkgs as listed above.
  • It's c13-morph, not c14...

  • What if a backup file with the same name already exists? Does the existing backup get overwritten and lost?

  • FileNotFoundError: At '/root/.config/hut_10sqft', a local repo is expected to be present in order to continue. SUCO: FileNotFoundError: At '/root/.config/hut_10sqft', a local repo is expected to be present in order to continue. #1094

  • SUCO: Some redundant stdout #1095

  • Setup finished without listing the captured issues. --> Actually it was happening but for some reason it was printed earlier than some of the apt outputs.

    Log
    :
    Unpacking xdotool (1:3.20160805.1-4) ...
    Setting up libxdo3:amd64 (1:3.20160805.1-4) ...
    Setting up xdotool (1:3.20160805.1-4) ...
    Processing triggers for man-db (2.9.4-2) ...
    Processing triggers for libc-bin (2.31-13+deb11u10) ...
    executing command [apt-get install -y ack]
    executing command [apt-get install -y apt-transport-https]
    executing command [apt-get install -y emacs]
    executing command [apt-get install -y gimp]
    executing command [apt-get install -y gnuplot]
    executing command [apt-get install -y gnuplot-x11]
    executing command [apt-get install -y meld]
    executing command [apt-get install -y mesa-utils]
    executing command [apt-get install -y meshlab]
    executing command [apt-get install -y ntp]
    executing command [apt-get install -y python3-empy]
    executing command [apt-get install -y python3-rocker]
    executing command [apt-get install -y python3-rosdep2]
    executing command [apt-get install -y python3-vcstool]
    executing command [apt-get install -y debtree]
    executing command [apt-get install -y nmap]
    executing command [apt-get install -y openssh-server]
    executing command [apt-get install -y texlive-fonts-recommended]
    executing command [apt-get install -y texlive-latex-base]
    executing command [apt-get install -y tree]
    executing command [apt-get install -y xdotool]
            Error: WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 3
    ERROR: the following packages/stacks could not have their rosdep keys resolved
    to system dependencies (ROS distro is not set. Make sure `ROS_DISTRO` environment variable is set, or use `--rosdistro` option to specify the distro, e.g. `--rosdistro indigo`):
    hut_10sqft: Cannot locate rosdep definition for [rpl]
    Continuing to install resolvable dependencies...
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    E: Unable to locate package python3-rocker
    debconf: delaying package configuration, since apt-utils is not installed
    E: Unable to locate package python3-vcstool
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    debconf: delaying package configuration, since apt-utils is not installed
    ERROR: the following rosdeps failed to install
      apt: command [apt-get install -y python3-rocker] failed
      apt: command [apt-get install -y python3-vcstool] failed
      apt: Failed to detect successful installation of [python3-rocker]
      apt: Failed to detect successful installation of [python3-vcstool]
    Setup finished.
    
  • AttributeError: 'ChromeOsSetup' object has no attribute '_which_docker'

    subprocess: About to execute the cmd: None $DEBIAN_FRONTEND
    subprocess: About to execute the cmd: None $DEBIAN_FRONTEND
    :
    output: , error: /bin/sh: 1: None: not found, bash_return_code: 127
    output: , error: /bin/sh: 1: None: not found, bash_return_code: 127
    output: , error: /bin/sh: 1: None: not found, bash_return_code: 127
    Traceback (most recent call last):
      File "/tmp/hut_10sqft_os-setup.py", line 1065, in <module>
        comp_setup.main()
      File "/tmp/hut_10sqft_os-setup.py", line 1053, in main
        _os_builder.run(_args,
      File "/tmp/hut_10sqft_os-setup.py", line 748, in run
        super().run(args, host_config, conf_repo_remote, conf_base_path)
      File "/tmp/hut_10sqft_os-setup.py", line 601, in run
        self.setup_docker(userid_os=self._os_user_id, skip=self._args_in.skip_setup_docker)
      File "/tmp/hut_10sqft_os-setup.py", line 782, in setup_docker
        OsUtil.subproc_bash(f'{self._which_docker} run hello-world && echo "docker seems to be installed successfully." || (echo "Something went wrong with docker installation."; RESULT=1', does_sudo=True)
                               ^^^^^^^^^^^^^^^^^^
    AttributeError: 'ChromeOsSetup' object has no attribute '_which_docker'. Did you mean: '_which_aptkey'?
    

Carried over from #1045

@130s 130s self-assigned this Sep 6, 2024
@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s
Copy link
Collaborator Author

130s commented Sep 7, 2024

Created SSH key locally on c13-morph but ssh-agent keeps failing with it.
Also on this container I have been failing to reduce the creds file's visitbility...

$ ssh-add /home/gm130s/pcl/id_rsa
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0750 for '/home/gm130s/pcl/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
gm130s@penguin:~/pcl$ ls -ltha /home/gm130s/pcl/id_rsa
-rwxr-x--- 1 gm130s chronos-access 2.6K Sep  7 14:22 /home/gm130s/pcl/id_rsa
gm130s@penguin:~/pcl$ chmod 700 /home/gm130s/pcl/id_rsa.pub 
gm130s@penguin:~/pcl$ ls -ltha /home/gm130s/pcl/id_rsa
-rwxr-x--- 1 gm130s chronos-access 2.6K Sep  7 14:22 /home/gm130s/pcl/id_rsa
gm130s@penguin:~/pcl$ chmod go-x /home/gm130s/pcl/id_rsa.pub 
gm130s@penguin:~/pcl$ chmod go-x /home/gm130s/pcl/id_rsa
gm130s@penguin:~/pcl$ ls -ltha /home/gm130s/pcl/id_rsa
-rwxr-x--- 1 gm130s chronos-access 2.6K Sep  7 14:22 /home/gm130s/pcl/id_rsa
gm130s@penguin:~/pcl$ chgrp gm130s /home/gm130s/pcl/id_rsa
gm130s@penguin:~/pcl$ ls -ltha /home/gm130s/pcl/id_rsa
-rwxr-x--- 1 gm130s chronos-access 2.6K Sep  7 14:22 /home/gm130s/pcl/id_rsa
gm130s@penguin:~/pcl$ ssh-add /home/gm130s/pcl/id_rsa.pub
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0750 for '/home/gm130s/pcl/id_rsa.pub' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s
Copy link
Collaborator Author

130s commented Sep 25, 2024

  • Still I don't see .bashrc is symlinked.
  • Also saw weird issues that took me a while to resolve but once it's resolved I cannot repro.
    • python3-git didn't get installed via apt although subprocess_bash reported no issue. I kept running SUCO, then at some point the issue went away. Maybe right before that I might have apt install -y python3-git (or purge) manually but ID remember.
    • ps nor w didn't exist. But after a kind-of successful run of SUCO both were back available.

@130s

This comment was marked as duplicate.

@130s 130s added the Epic Meta issue that is typically used to list of action items label Sep 26, 2024
@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

@130s

This comment was marked as duplicate.

130s added a commit that referenced this issue Oct 2, 2024
130s added a commit that referenced this issue Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Meta issue that is typically used to list of action items
Projects
None yet
Development

No branches or pull requests

1 participant