Using H2O.ai removed my Chrome browser?

I was trying to use H2O ai to automate model selection, and this Python library creates a local server, presumably opened with my default browser.

What happened is, as I had Chrome open, I ran the code. The code took a while, and then froze my PC completely. I had to restart.

Once I restarted, my Chrome seems to have disappeared.

Here is the code I used:

import h2o
from h2o.automl import H2OAutoML
from sklearn.model_selection import train_test_split

h2o.init()

Checking whether there is an H2O instance running at http://localhost:54321..... not found.
Attempting to start a local H2O server...
  Java Version: openjdk version "21.0.4" 2024-07-16; OpenJDK Runtime Environment (Red_Hat-21.0.4.0.7-2) (build 21.0.4+7); OpenJDK 64-Bit Server VM (Red_Hat-21.0.4.0.7-2) (build 21.0.4+7, mixed mode, sharing)
  Starting server from /mnt/sda1/PycharmProjects/anespo-DL.4.1/.venv/lib/python3.12/site-packages/h2o/backend/bin/h2o.jar
  Ice root: /tmp/tmpurwn74sc
  JVM stdout: /tmp/tmpurwn74sc/h2o_alessio_started_from_python.out
  JVM stderr: /tmp/tmpurwn74sc/h2o_alessio_started_from_python.err
  Server is running at http://127.0.0.1:54321
Connecting to H2O server at http://127.0.0.1:54321 ... successful.
H2O_cluster_uptime:	01 secs
H2O_cluster_timezone:	Europe/Rome
H2O_data_parsing_timezone:	UTC
H2O_cluster_version:	3.46.0.4
H2O_cluster_version_age:	1 month and 1 day
H2O_cluster_name:	H2O_from_python_alessio_slup1a
H2O_cluster_total_nodes:	1
H2O_cluster_free_memory:	7.601 Gb
H2O_cluster_total_cores:	32
H2O_cluster_allowed_cores:	32
H2O_cluster_status:	locked, healthy
H2O_connection_url:	http://127.0.0.1:54321
H2O_connection_proxy:	{"http": null, "https": null}
H2O_internal_security:	False
Python_version:	3.12.4 final

h2o_df = h2o.H2OFrame(df_3)

from sklearn.feature_extraction.text import TfidfVectorizer

tfidf = TfidfVectorizer(max_features=5000) 
tfidf_matrix = tfidf.fit_transform(df['text'])
tfidf_df = pd.DataFrame(tfidf_matrix.toarray(), columns=tfidf.get_feature_names_out())

df_final = pd.concat([tfidf_df, df['label']], axis=1)
h2o_df = h2o.H2OFrame(df_final)
h2o_df['label'] = h2o_df['label'].asfactor()

aml = H2OAutoML(max_runtime_secs=3600,  
                project_name="fake_news_classification",
                stopping_metric="AUC", 
                seed=42)

aml.train(x=train.columns[:-1], y='label', training_frame=train)

lb = aml.leaderboard
print(lb)
aml = H2OAutoML(max_runtime_secs=3600, 
                project_name="fake_news_classification",
                stopping_metric="AUC", 
                seed=42)

aml.train(x=train.columns[:-1], y='label', training_frame=train)

lb = aml.leaderboard
print(lb)

Then I noticed it kept giving me connection errors
Job request failed Local server has died unexpectedly. RIP., will retry after 3s.

And then I noticed my browser seemed to not open anymore. I can’t even find it in my installed applications.

alessio@fedora:~$ sudo dnf repolist
repo id                                                 repo name
WineHQ                                                  WineHQ packages
brave-browser                                           Brave Browser
code                                                    Visual Studio Code
docker-ce-stable                                        Docker CE Stable - x86_64
fedora                                                  Fedora 40 - x86_64
fedora-cisco-openh264                                   Fedora 40 openh264 (From Cisco) - x86_64
google-chrome                                           google-chrome
protonvpn-fedora-stable                                 ProtonVPN Fedora Stable repository
rpmfusion-free                                          RPM Fusion for Fedora 40 - Free
rpmfusion-free-tainted                                  RPM Fusion for Fedora 40 - Free tainted
rpmfusion-free-updates                                  RPM Fusion for Fedora 40 - Free - Updates
rpmfusion-nonfree                                       RPM Fusion for Fedora 40 - Nonfree
rpmfusion-nonfree-tainted                               RPM Fusion for Fedora 40 - Nonfree tainted
rpmfusion-nonfree-updates                               RPM Fusion for Fedora 40 - Nonfree - Updates
updates                                                 Fedora 40 - x86_64 - Updates
alessio@fedora:~$ which google-chrome
/usr/bin/which: no google-chrome in (/home/alessio/google-cloud-sdk/bin:/home/alessio/.local/bin:/home/alessio/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/var/lib/snapd/snap/bin)

I am not sure how else to check what went wrong. Any ideas?

Reinstall if installed, otherwise install:

sudo dnf reinstall google-chrome-stable
sudo dnf install google-chrome-stable

Thank you, I have other browsers I am going to use for the moment, I wasn’t super happy with Chrome anyways.

I was more surprised as to why this happened… seems very quirky behavior of a library to uninstall a browser.

We have not collected enough information about the problem to conclude anything.
To investigate the actual cause, verify package integrity and check transaction history:

rpm -V google-chrome-stable
sudo dnf history list google-chrome-stable
sudo dnf history info google-chrome-stable

When I write these commands I get these responses:

rpm -V google-chrome-stable:

package google-chrome-stable is not installed

sudo dnf history list google-chrome-stable:

ID     | Command line                                                                 | Date and time    | Action(s)      | Altered
-----------------------------------------------------------------------------------------------------------------------------------
   135 |                                                                              | 2024-08-11 09:06 | Removed        |    1  <
   131 | update                                                                       | 2024-08-08 16:23 | I, U           |   70 > 
   130 | update                                                                       | 2024-08-03 10:18 | C, E, I, O, U  |  111  <
   125 | update                                                                       | 2024-07-18 20:46 | C, E, I, U     |  548 ><
   101 | localinstall google-chrome-stable_current_x86_64.rpm -y                      | 2024-06-22 11:42 | Install        |    1 >E

sudo dnf history info google-chrome-stable:

    Reason Change kernel-6.9.5-200.fc40.x86_64                                     @updates
    Removed       kernel-6.9.4-200.fc40.x86_64                                     @@System
    Reason Change kernel-core-6.9.5-200.fc40.x86_64                                @updates
    Removed       kernel-core-6.9.4-200.fc40.x86_64                                @@System
    Reason Change kernel-devel-6.9.5-200.fc40.x86_64                               @updates
    Removed       kernel-devel-6.9.4-200.fc40.x86_64                               @@System
    Reason Change kernel-modules-6.9.5-200.fc40.x86_64                             @updates
    Removed       kernel-modules-6.9.4-200.fc40.x86_64                             @@System
    Reason Change kernel-modules-core-6.9.5-200.fc40.x86_64                        @updates
    Removed       kernel-modules-core-6.9.4-200.fc40.x86_64                        @@System
    Reason Change kernel-modules-extra-6.9.5-200.fc40.x86_64                       @updates
    Removed       kernel-modules-extra-6.9.4-200.fc40.x86_64                       @@System
Scriptlet output:
   1 error: libselinux: type 0: Regex version mismatch, expected: 10.42 2022-12-11 actual: 10.44 2024-06-07
   2 error: libselinux: type 0: Regex version mismatch, expected: 10.42 2022-12-11 actual: 10.44 2024-06-07
   3 warning: file /usr/lib/.build-id/d2/19d9435f941160e8d5110bfd031fed2335cbb5: remove failed: No such file or directory
   4 warning: file /usr/lib/.build-id/d0/7fdec79c98b8b201daa9b0c5b9d9b194b64ce3: remove failed: No such file or directory
   5 warning: file /usr/lib/.build-id/c3/dea054715eb61174444a2e8360027fdafe7f57: remove failed: No such file or directory
   6 warning: file /usr/lib/.build-id/c2/56753b2b1ee8a5bfa5c717dec054fc4c30e501: remove failed: No such file or directory
   7 warning: file /usr/lib/.build-id/c0/de790d945387bc0acb7275d1b88e9e83db232f: remove failed: No such file or directory
   8 warning: file /usr/lib/.build-id/a0/acd0251e59da7cfdde02f01b97c59e6d453fa7: remove failed: No such file or directory
   9 warning: file /usr/lib/.build-id/90/3a3a61ef22cbf47f6548fe0d3508c0de40efff: remove failed: No such file or directory
  10 warning: file /usr/lib/.build-id/81/ff7abc295ba16d66f87c6f9df13a9c451f1f21: remove failed: No such file or directory
  11 warning: file /usr/lib/.build-id/7e/2bc94b4c97e793bcd11ff54e33d3dc80da2464: remove failed: No such file or directory
  12 warning: file /usr/lib/.build-id/60/89cd565f750c0308634b5c74ee4e6da9eb54bc: remove failed: No such file or directory
  13 warning: file /usr/lib/.build-id/5b/8322cd4d5877fde73390f80b87e546dbb65f06: remove failed: No such file or directory
  14 warning: file /usr/lib/.build-id/53/275cf16749819b8aaad80f424a9431e8d0e4ce: remove failed: No such file or directory
  15 warning: file /usr/lib/.build-id/4f/be50a78cc70024abd0b379b75b9ba30861ee1f: remove failed: No such file or directory
  16 warning: file /usr/lib/.build-id/30/9e8c02bf6cb2cad68cd5822110f7b33d4ccfda: remove failed: No such file or directory
  17 warning: file /usr/lib/.build-id/1e/c853971eff4024359d12d61c8f8e8242a960b6: remove failed: No such file or directory
-------------------------------------------------------------------------------
Transaction ID : 101
Begin time     : Sat 22 Jun 2024 11:42:10 AM CEST
Begin rpmdb    : 700b5f9687453cf0bc336440774a3d2d0147bad19dbe8785958014b3f583c14a
End time       : Sat 22 Jun 2024 11:42:15 AM CEST (5 seconds)
End rpmdb      : e0651d95df0e98ec619b12c582fd94e6dea7256a070bccfcc90e0b56aeba5333 **
User           : Alessio <alessio>
Return-Code    : Success
Releasever     : 40
Command Line   : localinstall google-chrome-stable_current_x86_64.rpm -y
Comment        : 
Packages Altered:
    Install google-chrome-stable-126.0.6478.114-1.x86_64 @@commandline
Scriptlet output:
   1 error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)
   2 error: /tmp/google.sig.7vrpci: key 1 import failed.
   3 error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)
   4 error: /tmp/google.sig.7vrpci: key 2 import failed.

This actually has a super long list of upgraded/upgrade things at the top. I only picked the last ones.

This is the latest related transaction:

sudo dnf history info 135

Oh, yeah indeed it seems like.

alessio@fedora:~$ sudo dnf history info 135
[sudo] password for alessio: 
Transaction ID : 135
Begin time     : Sun 11 Aug 2024 09:06:36 AM CEST
Begin rpmdb    : 696d376d32d8f5aaae2cd5cd55c7a76e693a03325fbacadfc7a596f9eb166cc2
End time       : Sun 11 Aug 2024 09:06:37 AM CEST (1 seconds)
End rpmdb      : bfc7de96a4311d1a115df240074822c3a2314c5d6f0e335af644d0d0fa4c3320
User           : Alessio <alessio>
Return-Code    : Success
Releasever     : 
Command Line   : 
Comment        : 
Packages Altered:
    Removed google-chrome-stable-127.0.6533.99-1.x86_64 @@System

It’s very strange…

Since the CLI was not involved in this transaction, it must be related to PackageKit and was most likely caused by some GUI action, perhaps a misclick.

But I wasn’t even touching the PC at that point, I left it working because I figured it would take some computational resources.

I only had Chrome open, but haven’t surfed the net. Not sure. But if everything is fine that’s what matters. I could try once more just to test if it’s really that library, once I finish training the models.

You can check if there are more suspicious transactions:

sudo dnf history list | grep -e 2024-08-1[01]
alessio@fedora:~$ sudo dnf history list | grep -e 2024-08-1[01]
[sudo] password for alessio: 
   136 | update                                                                       | 2024-08-11 09:59 | Upgrade        |   28   
   135 |                                                                              | 2024-08-11 09:06 | Removed        |    1   

I tried and it gave me this. The update is likely me earlier doing the reinstall/install you had suggested

Let’s focus on transaction 101
How did you install chrome? Have you downloaded the rpm from Google?
I don’t remember where it unpack all the stuff, maybe in /opt
Maybe you can’t start it from the command line because such location is not more in the PATH variable?
Just wondering.

I can’t remember exactly, but I usually always install directly from cmd and copy the repo, in facts I have the google-chrome repo in the repolist.

Transaction ID : 101
Begin time     : Sat 22 Jun 2024 11:42:10 AM CEST
Begin rpmdb    : 700b5f9687453cf0bc336440774a3d2d0147bad19dbe8785958014b3f583c14a
End time       : Sat 22 Jun 2024 11:42:15 AM CEST (5 seconds)
End rpmdb      : e0651d95df0e98ec619b12c582fd94e6dea7256a070bccfcc90e0b56aeba5333
User           : Alessio <alessio>
Return-Code    : Success
Releasever     : 40
Command Line   : localinstall google-chrome-stable_current_x86_64.rpm -y
Comment        : 
Packages Altered:
    Install google-chrome-stable-126.0.6478.114-1.x86_64 @@commandline
Scriptlet output:
   1 error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)
   2 error: /tmp/google.sig.7vrpci: key 1 import failed.
   3 error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)
   4 error: /tmp/google.sig.7vrpci: key 2 import failed.

If you wish to use and keep google chrome updated you should have the repo enabled. Then it can be installed directly with either dnf or gnome software (packagekit).

# dnf repolist
repo id                                                         repo name
google-chrome                                                   google-chrome