[SOLVED] Proxmox Offline Mirror: Unable to create enterprise repository snapshot

May 10, 2023
6
2
3
Hi,

I'm currently setting up Proxmox Offline Mirror by following the documentation at https://pom.proxmox.com/index.html
We have a POM-Subscription key and all our PVEs have basic subscriptions. For testing I registered the POM-Key and one of our PVE keys:

Bash:
proxmox-offline-mirror key add-mirror-key pom-xxxxx
proxmox-offline-mirror key add pve1b-xxxxx XXXXXXXXXXXXXXX

I created a mirror for deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise.

When I try to make a snapshot I get the following error:
Bash:
proxmox-offline-mirror mirror snapshot create pve-enterprise-bullseye
Fetching Release/Release.gpg files
-> GET 'https://enterprise.proxmox.com/debian/pve/dists/bullseye/Release.gpg'..
Release.gpg fetch failure: https://enterprise.proxmox.com/debian/pve/dists/bullseye/Release.gpg: status code 401
Fetching InRelease file
-> GET 'https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease'..
InRelease fetch failure: https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease: status code 401
Error: Neither Release(.gpg) nor InRelease available!

Do I have to perform additional steps, before I can create snapshots for the enterprise repository?

Key details:
Bash:
proxmox-offline-mirror key list
┌──────────────────┬──────────────────────────────────┬─────────────┬────────┬─────────┬──────────────────────┬────────────┬────────┐
│ Subscription Key │ Server ID                        │ description │ Status │ Message │ Last Check           │ Next Due   │ Signed │
╞══════════════════╪══════════════════════════════════╪═════════════╪════════╪═════════╪══════════════════════╪════════════╪════════╡
│ pom-xxxxxxxxxx   │ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX │             │ active │         │ 2023-05-10T09:54:54Z │ 2023-05-05 │      0 │
├──────────────────┼──────────────────────────────────┼─────────────┼────────┼─────────┼──────────────────────┼────────────┼────────┤
│ pve1b-xxxxxxxxxx │ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX │             │ active │         │ 2023-05-10T09:54:41Z │ 2025-02-05 │      1 │
└──────────────────┴──────────────────────────────────┴─────────────┴────────┴─────────┴──────────────────────┴────────────┴────────┘
proxmox-offline-mirror key show pom-xxxxxxxxxx
┌─────────────┬──────────────────────────────────┐
│ Name        │ Value                            │
╞═════════════╪══════════════════════════════════╡
│ key         │ pom-xxxxxxxxxx                   │
├─────────────┼──────────────────────────────────┤
│ server-id   │ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX │
├─────────────┼──────────────────────────────────┤
│ signed      │ 0                                │
├─────────────┼──────────────────────────────────┤
│ checktime   │ 2023-05-10T09:54:54Z             │
├─────────────┼──────────────────────────────────┤
│ nextduedate │ 2023-05-05                       │
├─────────────┼──────────────────────────────────┤
│ productname │ Proxmox Offline Mirror - 1 year  │
├─────────────┼──────────────────────────────────┤
│ regdate     │ 2023-05-05 00:00:00              │
├─────────────┼──────────────────────────────────┤
│ status      │ active                           │
└─────────────┴──────────────────────────────────┘

I already asked our reseller regarding nextduedate=regdate, but they said the key should work fine.
 
Last edited:
if you manually added the mirror config entry (as opposed to using the setup wizard), did you specify that it requires a PVE subscription key?

edit: proxmox-offline-mirror config mirror update --id pve-enterprise-bullseye --use-subscription pve should do the trick ;)
 
Last edited:
  • Like
Reactions: sfleer_rockenstein
Thanks @fabian , that did the trick!

Yes, I created the mirror manually (we'd like to automate this in the future) and used the examples in the documentation as reference.

Since the examples in the docs are for a non-subscription repository, here is a full example for anyone else that should stumble upon this:

Bash:
proxmox-offline-mirror config mirror add \
 --id pve-enterprise-bullseye \
 --architectures amd64 \
 --architectures all \
 --repository 'deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise' \
 --use-subscription pve \
 --key-path /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg \
 --skip-sections debug \
 --sync true \
 --verify true \
 --base-dir /var/lib/proxmox-offline-mirror/mirrors/

Which creates the following entry in /etc/proxmox-offline-mirror.cfg:
Code:
mirror: pve-enterprise-bullseye
        architectures amd64
        architectures all
        base-dir /var/lib/proxmox-offline-mirror/mirrors/
        ignore-errors false
        key-path /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
        repository deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
        skip-sections debug
        sync true
        use-subscription pve
        verify true

Thanks again!
 
  • Like
Reactions: fabian

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!