gerbera icon indicating copy to clipboard operation
gerbera copied to clipboard

jfrog outage?

Open Martii opened this issue 2 years ago • 1 comments

Good day to all. Went to go update my servers and got this:

...
Err:6 https://gerbera.jfrog.io/artifactory/debian jammy InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done       
E: Failed to fetch https://gerbera.jfrog.io/artifactory/debian/dists/jammy/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://gerbera.jfrog.io/artifactory/debian jammy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Seems the jfrog account is disabled? (checking to see if signing key is expired/renewed)

out.png

Thanks so much for the look.

Ref(s):

  • https://docs.gerbera.io/en/stable/install.html#ubuntu-mint
curl -fsSL https://gerbera.jfrog.io/artifactory/api/gpg/key/public | sudo apt-key add -
sudo apt-add-repository https://gerbera.jfrog.io/artifactory/debian
$ curl -fsSL https://gerbera.jfrog.io/artifactory/api/gpg/key/public | sudo apt-key add -
[sudo] password for user: 
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: no valid OpenPGP data found.

Work-around found for WARNING that will eventually become more (rename source and target .gpg files of course):

$ wget -O- https://example.com/EXAMPLE.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/EXAMPLE.gpg > /dev/null

$ cat /etc/apt/sources.list.d/gerbera-jfrog-io-debian-releases.list 
deb [signed-by=/usr/share/keyrings/artifactory-keyring.gpg arch=amd64]  https://gerbera.jfrog.io/artifactory/debian jammy main
# deb-src https://gerbera.jfrog.io/artifactory/debian jammy main```

Was working until most recently this weekend (Last run was 2022-07-29)

Martii avatar Aug 01 '22 17:08 Martii

Yeah I think its been disabled as we are over our quota.

I dont have time to look at it.

whyman avatar Aug 01 '22 21:08 whyman

Will jfrog be coming back or should i disable the repos?

Hyper200 avatar Aug 13 '22 10:08 Hyper200

So Ive tried to sign into the jfrog and it looks like our account has been deactivated? for some reason.

Currently getting a message "please hang on while we resume your environment.

whyman avatar Aug 15 '22 19:08 whyman

Okay, seems like its back.

No idea why it went away, which is rather concerning.

Could @Hyper200 or @Martii confirm its ok now?

whyman avatar Aug 15 '22 19:08 whyman

@whyman

which is rather concerning

Security is a never ending battle. :smile_cat: or perhaps they migrated the server hardware and don't have a way to "restart it". *shrugs*

Looks good re-enabling the apt source and using apt:

$ sudo apt update && sudo apt dist-upgrade -yy
...
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease                                                                                                          
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                                      
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease                                                               
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]                                                   
Hit:6 https://gerbera.jfrog.io/artifactory/debian jammy InRelease                                                                         
Hit:7 https://ppa.launchpadcontent.net/team-xbmc/ppa/ubuntu jammy InRelease
...

Thanks so much.

I've also updated the above work-around to be a little more exact based on the output of the signing key. Jammy doesn't require it currently but eventually most distro's might be using the isolated form and eventually/probably Ubuntu with whatever Windows Manager is in a particular distro. A mental note for future Gerbera docs perhaps. :smile: .

Martii avatar Aug 15 '22 20:08 Martii

Awesome news, a PR for the docs would be welcome if you are feeling generous

whyman avatar Aug 15 '22 20:08 whyman

@whyman

a PR for the docs would be welcome if you are feeling generous

Always willing to lend some time to a project that needs assistance especially when it's a favorite of mine... however there's a lot of ways to do this from my experience:

  1. Naming conventions are a concern with the key... I melded current Gerbera with Ubuntu's base keys... but doesn't mean that other naming conventions aren't accepted/wanted. I'm also not sure why "artifactory" is in there and doesn't seem to match "gerbera" naming.
  2. How abstract does Gerbera want it?
  3. Replace existing doc snippet or append to existing header (since it's a deprecation atm instead of an eol)
  4. I don't use Mint so I'm not sure how this would work over there. Not sure I have time to install Mint in a VM right away and backwards compatibility.
  5. Assumptions on binary switches as well.
  6. Assumptions on /dev/null output to prevent unnecessary output.
  7. Also don't want to scare new users away with the complexity but it seems to be a complete methodology. Don't see any switch with apt-add-repository that allows a parameter of signed-by atm.
  8. Also don't know if this repo only does 64 bit AMD builds or if it has 32 bit builds. I usually specify arch but that doesn't help if it's ARM/PPC/RISC/other based. So probably leave that to autodetection is a guess.

For tagged releases this could be an option (and also compatible with focal):

curl -fsSL https://gerbera.jfrog.io/artifactory/api/gpg/key/public | sudo gpg --batch --yes --dearmor -o /usr/share/keyrings/artifactory-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/artifactory-keyring.gpg] https://gerbera.jfrog.io/artifactory/debian $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gerbera-jfrog-io-debian-releases.list > /dev/null
echo "# deb-src [signed-by=/usr/share/keyrings/artifactory-keyring.gpg] https://gerbera.jfrog.io/artifactory/debian $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/gerbera-jfrog-io-debian-releases.list > /dev/null

... or perhaps this with variables in bash:

KEY=https://gerbera.jfrog.io/artifactory/api/gpg/key/public
KEYRING=/usr/share/keyrings/artifactory-keyring.gpg
REPO=https://gerbera.jfrog.io/artifactory/debian
LIST=/etc/apt/sources.list.d/gerbera-jfrog-io-debian-releases.list

curl -fsSL $KEY | sudo gpg --batch --yes --dearmor -o $KEYRING
echo "deb [signed-by=$KEYRING] $REPO $(lsb_release -cs) main" | sudo tee $LIST > /dev/null
echo "# deb-src [signed-by=$KEYRING] $REPO $(lsb_release -cs) main" | sudo tee -a $LIST > /dev/null

... instead of the current:

curl -fsSL https://gerbera.jfrog.io/artifactory/api/gpg/key/public | sudo apt-key add -
sudo apt-add-repository https://gerbera.jfrog.io/artifactory/debian

Martii avatar Aug 15 '22 21:08 Martii