pyther / upstream_sync

script to help mirror upstream repositories
MIT License
47 stars 16 forks source link

Could not find valid repo at: #5

Closed nephilim1973 closed 8 years ago

nephilim1973 commented 8 years ago
$ upstream_sync.py -v
...
INFO:root:generating package metadata: rhel-7-x86_64-os
**Could not find valid repo at: /mirror/upstream/rhel/7/x86_64/os**
Spawning worker 0 with 4657 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete

$ ls -al /mirror/upstream/rhel/7/x86_64/os
total 1644
drwxrwxr-x. 5 xxx xxx 65 Apr 13 16:38 .
drwxrwxr-x. 3 xxx xxx 15 Apr 13 15:53 ..
drwxrwxr-x. 2 xxx xxx 638976 Apr 13 16:38 .cache
-rw-rw-r--. 1 xxx xxx 641345 Apr 13 16:37 comps.xml
drwxrwxr-x. 2 xxx xxx 245760 Apr 13 16:16 Packages
drwxrwxr-x. 2 xxx xxx 4096 Apr 13 16:38 repodata

SSL-cert check an repo sync runs fine, but error message makes me wondering...

Regards.

pyther commented 8 years ago

If you run the script again do you still get the error? I suspect this is happening because we are calling createrepo with the --update flag. However, since no repodata exists at this point, it throws this error.

nephilim1973 commented 8 years ago
$ upstream_sync.py -v
INFO:root:syncing rhel-7-x86_64-os
rhel-7-x86_64-os
INFO:root:generating package metadata: rhel-7-x86_64-os
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete

Error message is away. Many thanks !