Firefox upgrade to 78esr fails with crypto message

Hello all,

Following an upgrade of firefox from 68esr to 78esr firefox fails to launch. Getting the below info. What’s going on with that crypto test??? How do I fix it?

sibylle@E7470:~> which firefox
/usr/bin/firefox
sibylle@E7470:~> firefox --version
Mozilla Firefox 78.6.0esr
sibylle@E7470:~> firefox
fips - softokn: crypto test failed - aborting
Redirecting call to abort() to mozalloc_abort

ExceptionHandler::GenerateDump cloned child 18220
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
sibylle@E7470:~> fips - softokn: crypto test failed - aborting

sibylle@E7470:~> zypper se -iv '*irefox*'
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S  | Name                               | Typ   | Version             | Arch   | Repository
---+------------------------------------+-------+---------------------+--------+--------------------------------
i+ | MozillaFirefox                     | Paket | 78.6.0-lp151.2.82.1 | x86_64 | Hauptaktualisierungs-Repository
    name: MozillaFirefox
i  | MozillaFirefox-branding-upstream   | Paket | 78.6.0-lp151.2.82.1 | x86_64 | Hauptaktualisierungs-Repository
    name: MozillaFirefox-branding-upstream
i  | MozillaFirefox-translations-common | Paket | 78.6.0-lp151.2.82.1 | x86_64 | Hauptaktualisierungs-Repository
    name: MozillaFirefox-translations-common
i+ | firefox-esr-branding-openSUSE      | Paket | 68-lp151.3.3.1      | x86_64 | Hauptaktualisierungs-Repository
    name: firefox-esr-branding-openSUSE


Cheers,
Gert

zypper se -iv '*irefox*'

Change to

LANG=EN zypper se -iv firef

Well, is it really that difficult to understand the few German words there that are very similar to their English counterparts in any case?

BTW, I prefer LANG=C although I guess the effect is the same.

Hello,

Update : I tried downgrading firefox 78->68. Unfortunately the bug persists. Something got broken in the initial upgrade that is now permanent.

What’s the solution to make firefox usable again? (Other then new OS install) :frowning:

I installed Opera as alternate browser and it works OK.

Cheers,
Gert

You’re a bit sparse on details, please post the output of;

zypper lr -d

and

zypper se -si mozilla

It’s possible that mozilla-nss is out of date or different version than Firefox that you installed, which might cause this issue.

It is also possible that your installation of firefox is fine. The problem could be in your user profile. Have you tried creating a new profile?

Linux and UNIX® are multi-user operating systems.

  • Therefore, whenever a User experiences runtime errors, the 1st thing which has to be checked is – “Does this also occur with another (normal
    ) «non-root» {non-system} user?” - Setup a new, fresh, test user account, login as that user and, check if the error also occurs with that user.
  • Please be aware that, the test user always has to have a “clean” (no history) environment – the test user’s home directory only has the contents of ‘/etc/skel/’ – login as the test user, let the GUI configure itself, logout, and then log back in again – begin testing …

For the case of Mozilla, one has to be careful – if the Mozilla product doesn’t have it’s settings and contents (for the case of Thunderbird) archived, the needed repair may well remove everything …

  • For the case of Firefox, regularly archive your Bookmarks …
  • Check the user directory ‘~/.mozilla/firefox/’ – check for files in “Crash Reports/” …
  • Removing the contents of ‘~/.mozilla/firefox/???.default/cert8.dir/’ and also removing ‘~/.mozilla/firefox/???.default/cert8.db’ may help to get Firefox up and running again …

[HR][/HR]There’s also this thread – <https://forums.opensuse.org/showthread.php/546808-fips-softokn-crypto-test-failed-aborting&gt;.

  • I’ve pointed that thread to this thread.

@Miuku

Thank you for helping about the bug.
This is the output of the cmds:

~> LANG=EN sudo zypper lr -d
#  | Alias                     | Name                                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service
---+---------------------------+---------------------------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
 1 | openSUSE-Leap-15.1-1      | openSUSE-Leap-15.1-1                                    | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-_USB_DISK_3.0_070A93F767DEEA36-0:0-part1 |
 2 | packman.inode.at-suse     | Packman Repository                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.1/                         |
 3 | repo-debug                | Debug Repository                                        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.1/repo/oss/      |
 4 | repo-debug-non-oss        | Debug Repository (Non-OSS)                              | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.1/repo/non-oss/  |
 5 | repo-debug-update         | Update Repository (Debug)                               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.1/oss/                 |
 6 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS)                      | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.1/non-oss/             |
 7 | repo-non-oss              | Non-OSS Repository                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/non-oss/        |
 8 | repo-oss                  | Haupt-Repository                                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/oss/            |
 9 | repo-source               | Source Repository                                       | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.1/repo/oss/     |
10 | repo-source-non-oss       | Source Repository (Non-OSS)                             | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.1/repo/non-oss/ |
11 | repo-update               | Hauptaktualisierungs-Repository                         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/oss                        |
12 | repo-update-non-oss       | Aktualisierungs-Repository (Nicht-Open-Source-Software) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/non-oss/                   |
13 | teamviewer                | TeamViewer - x86_64                                     | Yes     | (r ) Yes  | No      |   99     | rpm-md | http://linux.teamviewer.com/yum/stable/main/binary-x86_64/               |


~> LANG=EN zypper se -si mozilla
Loading repository data...
Reading installed packages...

S  | Name                                   | Type    | Version             | Arch   | Repository
---+----------------------------------------+---------+---------------------+--------+--------------------------------
il | MozillaFirefox                         | package | 78.6.0-lp151.2.82.1 | x86_64 | Hauptaktualisierungs-Repository
il | MozillaFirefox-branding-openSUSE       | package | 68-lp151.3.3.1      | x86_64 | Hauptaktualisierungs-Repository
i  | MozillaThunderbird                     | package | 78.6.0-lp151.2.63.1 | x86_64 | Hauptaktualisierungs-Repository
i  | MozillaThunderbird-translations-common | package | 78.6.0-lp151.2.63.1 | x86_64 | Hauptaktualisierungs-Repository
i  | ca-certificates-mozilla                | package | 2.44-lp151.2.12.1   | noarch | Hauptaktualisierungs-Repository
i  | kmozillahelper                         | package | 5.0.5-lp151.3.3.1   | x86_64 | Hauptaktualisierungs-Repository
i  | mozilla-nspr                           | package | 4.25.1-lp151.2.13.1 | x86_64 | Hauptaktualisierungs-Repository
i  | mozilla-nspr-32bit                     | package | 4.25.1-lp151.2.13.1 | x86_64 | Hauptaktualisierungs-Repository
i  | mozilla-nss                            | package | 3.53.1-lp151.2.29.1 | x86_64 | Hauptaktualisierungs-Repository
i  | mozilla-nss-32bit                      | package | 3.53.1-lp151.2.29.1 | x86_64 | Hauptaktualisierungs-Repository
i  | mozilla-nss-certs                      | package | 3.53.1-lp151.2.29.1 | x86_64 | Hauptaktualisierungs-Repository
i  | mozilla-nss-certs-32bit                | package | 3.53.1-lp151.2.29.1 | x86_64 | Hauptaktualisierungs-Repository


Cheers,
Gert

@dcurtisfra

The Crash Reports don’t show much:

sibylle@E7470:~/.mozilla/firefox/Crash Reports> ls -lrt
insgesamt 8
-rw------- 1 sibylle users 10  5. Jan 06:32 InstallTime20201207224150
drwx------ 1 sibylle users  0  5. Jan 06:32 events
-rw-r--r-- 1 sibylle users  0  5. Jan 06:32 submit.log
-rw------- 1 sibylle users 10  6. Jan 00:14 LastCrash
sibylle@E7470:~/.mozilla/firefox/Crash Reports>
sibylle@E7470:~/.mozilla/firefox/Crash Reports> cat LastCrash
1609888448
sibylle@E7470:~/.mozilla/firefox/Crash Reports>

I looked for those directories:

sibylle@E7470:~/.mozilla/firefox> LANG=EN  ls ~/.mozilla/firefox/*.default*/cert8.dir
ls: cannot access '/home/sibylle/.mozilla/firefox/*.default*/cert8.dir': No such file or directory
sibylle@E7470:~/.mozilla/firefox> LANG=EN ls ~/.mozilla/firefox/*.default*/cert8.db
ls: cannot access '/home/sibylle/.mozilla/firefox/*.default*/cert8.db': No such file or directory

sibylle@E7470:~/.mozilla/firefox> LANG=EN ll *defau*
6mzyce9r.default:
total 4
-rwx------ 1 sibylle users 47 Jan  5 06:32 times.json

6snt1qq6.default-esr78:
total 300
-rw------- 1 sibylle users   166 Jan  5 07:33 compatibility.ini
-rw-r--r-- 1 sibylle users 98304 Jan  5 06:32 cookies.sqlite
-rw-r--r-- 1 sibylle users     0 Jan  6 00:14 cookies.sqlite-wal
drwx------ 1 sibylle users    12 Jan  5 06:32 crashes
drwx------ 1 sibylle users     0 Jan  5 06:32 extensions
-rw------- 1 sibylle users 90080 Jan  5 06:32 extensions.json
drwx------ 1 sibylle users  1312 Jan  6 00:14 minidumps
-rw-r--r-- 1 sibylle users 98304 Jan  5 06:32 permissions.sqlite
-rw------- 1 sibylle users  2520 Jan  6 00:14 prefs.js
-rw------- 1 sibylle users    53 Jan  5 06:36 sessionCheckpoints.json
drwxr-xr-x 1 sibylle users    18 Jan  5 06:32 storage
-rw-r--r-- 1 sibylle users  4096 Jan  5 07:33 storage.sqlite
-rw------- 1 sibylle users    50 Jan  5 06:32 times.json

Trying other user unfortunately didn’t help.


ff01@E7470:~> whoami
ff01
ff01@E7470:~> 

ff01@E7470:~> which firefox
/usr/bin/firefox
ff01@E7470:~> firefox --version
Mozilla Firefox 78.6.0esr
ff01@E7470:~> firefox
fips - softokn: crypto test failed - aborting
Redirecting call to abort() to mozalloc_abort

ExceptionHandler::GenerateDump cloned child 6027
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Exiting due to channel error.
Exiting due to channel error.
ff01@E7470:~> fips - softokn: crypto test failed - aborting

Cheers,
Gert

Create new user profile in Firefox and try to use it.

@gert4SFde:

To do this, you’ll have to move the directory ‘~/.mozilla/firefox/???.default/’ to somewhere else – such as ‘~/tmp/’ …

  • Do not delete the profile.

I’ve taken a look at my current profile – there’s a directory named ‘~/.mozilla/firefox/???.default/bookmarkbackups/’ which looks promising for helping to restore you current bookmarks to the new profile.

  • Taking a quick look into Firefox’s Bookmarks Management, it seems that, if you simply copy everything from the previous profile’s “bookmarkbackups
    ” directory to the new profile’s “bookmarkbackups” directory, the import of your current bookmarks into the new profile is quite easy …

There’s also these Firefox support documents on recovering bookmarks:
<https://support.mozilla.org/en-US/kb/recover-lost-or-missing-bookmarks&gt;
<https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile&gt;
<https://support.mozilla.org/en-US/questions/1097939&gt;

@Svyatko

This was part of proposal by dcurtisfra and we already tried it. User ‘ff01’.
Unfortunately no success.

Any further ideas to repair ?

Cheers,
Gert

RTFM:
Profile Manager - Create, remove or switch Firefox profiles | Firefox Help
Profiles - Where Firefox stores your bookmarks, passwords and other user data | Firefox Help
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Multiple_profiles

Deutch:

Update your knowledge: Profile Manager - Create, remove or switch Firefox profiles | Firefox Help
https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Multiple_profiles

@Svyatko

Thanks for the pointer. We have established that firefox gives the same crash when launched from another newly created user. Thus there is no dependence on profile. In the new user the firefox crash actually happens before it can even create the profile.

The crash seems to come from reliance on

fips - softokn: crypto test failed - aborting

Whatever is broken there needs to be repaired.

Any suggestions are welcome.

Cheers,
Gert

https://www.suse.com/support/kb/doc/?id=000019815

Cause
zypper fails to update all packages.

Reinstall Firefox and mozilla-nss* stuff.
Follow instructions those provided by me to preserve user’s data in profile. Load profile data into new profile after reinstall.

@gert4SFde:

Forcibly reinstall the Firefox and Mozilla packages …

 # zypper install --force …

It may also pay to check the RPM database –

  • rpm --rebuilddb
  • zypper verify
  • rpm --verify --all