Repository Mirroring: 4.3 Mirroring packages

In reading “To update the mirrored packages manually, use the rmt-cli mirror command.” I get this error and need to know if this will cause a problem and if so how to correct it:


rmtserver:~ # rmt-cli mirror
I, [2022-11-02T03:03:44.529730 #18880]  INFO -- : Mirroring SUSE Manager product tree to /usr/share/rmt/public/suma/
Traceback (most recent call last):
        16: from /usr/share/rmt/lib/rmt/downloader.rb:59:in `block in create_fiber_request'
        15: from /usr/share/rmt/lib/rmt/downloader.rb:197:in `finalize_download'
        14: from /usr/lib64/ruby/2.5.0/fileutils.rb:460:in `mv'
        13: from /usr/lib64/ruby/2.5.0/fileutils.rb:1461:in `fu_each_src_dest'
        12: from /usr/lib64/ruby/2.5.0/fileutils.rb:1479:in `fu_each_src_dest0'
        11: from /usr/lib64/ruby/2.5.0/fileutils.rb:1463:in `block in fu_each_src_dest'
        10: from /usr/lib64/ruby/2.5.0/fileutils.rb:470:in `block in mv'
         9: from /usr/lib64/ruby/2.5.0/fileutils.rb:473:in `rescue in block in mv'
         8: from /usr/lib64/ruby/2.5.0/fileutils.rb:415:in `copy_entry'
         7: from /usr/lib64/ruby/2.5.0/fileutils.rb:1390:in `wrap_traverse'
         6: from /usr/lib64/ruby/2.5.0/fileutils.rb:418:in `block in copy_entry'
         5: from /usr/lib64/ruby/2.5.0/fileutils.rb:1259:in `copy'
         4: from /usr/lib64/ruby/2.5.0/fileutils.rb:1291:in `copy_file'
         3: from /usr/lib64/ruby/2.5.0/fileutils.rb:1291:in `open'
         2: from /usr/lib64/ruby/2.5.0/fileutils.rb:1292:in `block in copy_file'
         1: from /usr/lib64/ruby/2.5.0/fileutils.rb:1292:in `open'

/usr/lib64/ruby/2.5.0/fileutils.rb:1292:in `initialize': Permission denied @ rb_sysopen - /usr/share/rmt/public/suma/product_tree.json (Errno::EACCES)



Cancel that! I had the wrong permission on the folder… :slight_smile:

I’ve been waiting since 1AM for my repo to be mirrored and nothing is happening. Tried it again just now.


**rmtserver:~ #** rmt-cli sync 
I, [2022-11-02T13:10:45.955825 #27656]  INFO -- : Downloading data from SCC 
I, [2022-11-02T13:10:45.955898 #27656]  INFO -- : Updating products 
I, [2022-11-02T13:10:47.320407 #27656]  INFO -- : Updating repositories 
I, [2022-11-02T13:10:47.750999 #27656]  INFO -- : Updating subscriptions

If I understand the .timer’s right, the repos will not download until Thursday according to the status below. I don’t fully understand 6.1.2 sync “During synchronization, no data is uploaded to the SUSE Customer Center. This command for example updates local product definitions and repository data.”, so can someone explain? How do I force my repo to be populated, this is a new RMT server, the repo and suma folders are empty.


**rmtserver:~ #** systemctl status rmt-server-mirror.timer 
**●** rmt-server-mirror.timer - RMT Mirror timer 
     Loaded: loaded (/usr/lib/systemd/system/rmt-server-mirror.timer; enabled; vendor preset: disabled) 
     Active: **active (waiting)** since Wed 2022-11-02 01:57:38 MDT; 11h ago 
    Trigger: Thu 2022-11-03 05:08:28 MDT; 15h left 
   Triggers: ● rmt-server-mirror.service 

Nov 02 01:57:38 rmtserver systemd[1]: Started RMT Mirror timer.


**rmtserver:~ #** systemctl status rmt-server-sync.timer   
**●** rmt-server-sync.timer - RMT Sync timer 
     Loaded: loaded (/usr/lib/systemd/system/rmt-server-sync.timer; enabled; vendor preset: disabled) 
     Active: **active (waiting)** since Wed 2022-11-02 01:57:37 MDT; 11h ago 
    Trigger: Thu 2022-11-03 03:56:14 MDT; 14h left 
   Triggers: ● rmt-server-sync.service 

Nov 02 01:57:37 rmtserver systemd[1]: Started RMT Sync timer.