Disconnected Setup with SMT results in "java.io.FileNotFoundException: /path/to/product_tree.json"
Hello List, I'm trying to use the contents of my existing SMT12 setup in Uyuni and I've followed the steps documented at: https://www.uyuni-project.org/uyuni-docs/en/uyuni/administration/disconnecte... But I'm getting the following error when I run "mgr-sync refresh": uyuni:~ # mgr-sync refresh Refreshing Channel families Please enter the credentials of SUSE Manager Administrator. Login: admin Password: [DONE] Refreshing SUSE products [FAIL] Error: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: com.suse.scc.client.SCCClientException: java.io.FileNotFoundException: /media/SMT/repo/disconnected-setup/product_tree.json (No such file or directory)'> Detailed steps: =============== We use a NFS mount for our SMT servers. On the same NFS mount, I created a new sub-directory called "disconnected-setup" and ran the following two commands: # smt-sync --createdbreplacementfile /tmp/dbrepl.xml # smt-mirror --dbreplfile /tmp/dbrepl.xml --directory /srv/www/htdocs/repo/disconnected-setup/ --fromlocalsmt -L /var/log/smt/smt-mirror-export.log # ls -l /srv/www/htdocs/repo/disconnected-setup/ total 11848 -rw-r--r-- 1 smt www 2 Oct 3 00:07 organizations_orders.json -rw-r--r-- 1 smt www 10006809 Oct 3 00:07 organizations_products_unscoped.json -rw-r--r-- 1 smt www 1744853 Oct 3 00:07 organizations_repositories.json -rw-r--r-- 1 smt www 341708 Oct 3 00:07 organizations_subscriptions.json drwxr-xr-x 4 smt www 4096 Oct 3 04:28 repo lrwxrwxrwx 1 smt www 9 Oct 3 04:28 SUSE -> repo/SUSE Back on the Uyuni server, I ran: # mount -t nfs storage:/srv/ftp/SMT /media/SMT # echo 'server.susemanager.fromdir = /media/SMT/repo/disconnected-setup/' >> /etc/rhn/rhn.conf # systemctl restart tomcat Could someone please tell me what am I missing? How do I get the "product_tree.json" file generated from the SMT server? Regards, Srinidhi.
Hi SMT is in maintenance mode and fetching the product tree file was not implemented. RMT fetch this file together with the regular sync. In a former release notes we explained, that you can easily fetch the file $> curl -O https://scc.suse.com/suma/product_tree.json Put it at the place where Uyuni expects it. I will add it to the docs. Thanks for the reminder. Am Mittwoch, 5. Oktober 2022, 10:46:43 CEST schrieb Srinidhi B via Uyuni Users:
Hello List,
I'm trying to use the contents of my existing SMT12 setup in Uyuni and I've followed the steps documented at:
https://www.uyuni-project.org/uyuni-docs/en/uyuni/administration/disconnecte...
But I'm getting the following error when I run "mgr-sync refresh":
uyuni:~ # mgr-sync refresh Refreshing Channel families Please enter the credentials of SUSE Manager Administrator. Login: admin Password: [DONE] Refreshing SUSE products [FAIL] Error: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: com.suse.scc.client.SCCClientException: java.io.FileNotFoundException: /media/SMT/repo/disconnected-setup/product_tree.json (No such file or directory)'>
Detailed steps: =============== We use a NFS mount for our SMT servers. On the same NFS mount, I created a new sub-directory called "disconnected-setup" and ran the following two commands:
# smt-sync --createdbreplacementfile /tmp/dbrepl.xml # smt-mirror --dbreplfile /tmp/dbrepl.xml --directory /srv/www/htdocs/repo/disconnected-setup/ --fromlocalsmt -L /var/log/smt/smt-mirror-export.log # ls -l /srv/www/htdocs/repo/disconnected-setup/ total 11848 -rw-r--r-- 1 smt www 2 Oct 3 00:07 organizations_orders.json -rw-r--r-- 1 smt www 10006809 Oct 3 00:07 organizations_products_unscoped.json -rw-r--r-- 1 smt www 1744853 Oct 3 00:07 organizations_repositories.json -rw-r--r-- 1 smt www 341708 Oct 3 00:07 organizations_subscriptions.json drwxr-xr-x 4 smt www 4096 Oct 3 04:28 repo lrwxrwxrwx 1 smt www 9 Oct 3 04:28 SUSE -> repo/SUSE
Back on the Uyuni server, I ran:
# mount -t nfs storage:/srv/ftp/SMT /media/SMT # echo 'server.susemanager.fromdir = /media/SMT/repo/disconnected-setup/' >> /etc/rhn/rhn.conf # systemctl restart tomcat
Could someone please tell me what am I missing? How do I get the "product_tree.json" file generated from the SMT server?
Regards, Srinidhi.
-- Regards Michael Calmer -------------------------------------------------------------------------- Michael Calmer SUSE Software Solutions Germany GmbH, Frankenstraße 146, D-90461 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: Michael.Calmer@suse.com -------------------------------------------------------------------------- SUSE Software Solutions Germany GmbH, GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman (HRB 36809, AG Nürnberg)
Hello Michael, On Wed, 2022-10-19 at 13:18 +0200, Michael Calmer wrote:
Hi
SMT is in maintenance mode and fetching the product tree file was not implemented. RMT fetch this file together with the regular sync.
Yes. I found this info from the RMT repo.
In a former release notes we explained, that you can easily fetch the file
$> curl -O https://scc.suse.com/suma/product_tree.json
Put it at the place where Uyuni expects it.
I've already done this and moved past the error.
I will add it to the docs. Thanks for the reminder.
Thank you so much for confirming that I did the right thing! :-) Regards, Srinidhi.
Am Mittwoch, 5. Oktober 2022, 10:46:43 CEST schrieb Srinidhi B via Uyuni Users:
Hello List,
I'm trying to use the contents of my existing SMT12 setup in Uyuni and I've followed the steps documented at:
https://www.uyuni-project.org/uyuni-docs/en/uyuni/administration/disconnecte...
But I'm getting the following error when I run "mgr-sync refresh":
uyuni:~ # mgr-sync refresh Refreshing Channel families Please enter the credentials of SUSE Manager Administrator. Login: admin Password: [DONE] Refreshing SUSE products [FAIL] Error: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: com.suse.scc.client.SCCClientException: java.io.FileNotFoundException: /media/SMT/repo/disconnected- setup/product_tree.json (No such file or directory)'>
Detailed steps: =============== We use a NFS mount for our SMT servers. On the same NFS mount, I created a new sub-directory called "disconnected-setup" and ran the following two commands:
# smt-sync --createdbreplacementfile /tmp/dbrepl.xml # smt-mirror --dbreplfile /tmp/dbrepl.xml --directory /srv/www/htdocs/repo/disconnected-setup/ --fromlocalsmt -L /var/log/smt/smt-mirror-export.log # ls -l /srv/www/htdocs/repo/disconnected-setup/ total 11848 -rw-r--r-- 1 smt www 2 Oct 3 00:07 organizations_orders.json -rw-r--r-- 1 smt www 10006809 Oct 3 00:07 organizations_products_unscoped.json -rw-r--r-- 1 smt www 1744853 Oct 3 00:07 organizations_repositories.json -rw-r--r-- 1 smt www 341708 Oct 3 00:07 organizations_subscriptions.json drwxr-xr-x 4 smt www 4096 Oct 3 04:28 repo lrwxrwxrwx 1 smt www 9 Oct 3 04:28 SUSE -> repo/SUSE
Back on the Uyuni server, I ran:
# mount -t nfs storage:/srv/ftp/SMT /media/SMT # echo 'server.susemanager.fromdir = /media/SMT/repo/disconnected- setup/' >> /etc/rhn/rhn.conf # systemctl restart tomcat
Could someone please tell me what am I missing? How do I get the "product_tree.json" file generated from the SMT server?
Regards, Srinidhi.
participants (2)
-
Michael Calmer
-
Srinidhi B