Discussion:
[fossil-users] Cannot clone sqlite docs repository
Brian Nguyen
2018-07-02 16:05:09 UTC
Permalink
$ fossil clone https://www2.sqlite.org/docsrc doc.sqlite
Round-trips: 2 Artifacts sent: 0 received: 0
Error: not authorized to clone
Round-trips: 2 Artifacts sent: 0 received: 0
Clone done, sent: 537 received: 582 ip: 2.0.1.187
server returned an error - clone aborted
$ fossil clone https://www.hwaci.com/cgi-bin/docsrc doc.sqlite
Round-trips: 3 Artifacts sent: 0 received: 7650
Clone done, sent: 821 received: 10881255 ip: 2.0.1.187
Rebuilding repository meta-data...
98.0% complete...
7 scan steps for 1 rows in [UPDATE time_fudge SET m1=m2-:incr WHERE m1>=m2
AND m1<m2+:window]
100.0% complete...
Extra delta compression...
2430 scan steps for 5 rows in [SELECT rid FROM event, blob WHERE
blob.rid=event.objid AND event.type='ci' AND NOT EXISTS(SELECT 1 FROM
delta WHERE rid=blob.rid) ORDER BY event.mtime DESC]
5615 scan steps for 843 rows in [SELECT DISTINCT blob.rid, mlink.fnid FROM
blob, mlink, plink WHERE NOT EXISTS(SELECT 1 FROM delta WHERE
rid=blob.rid) AND mlink.fid=blob.rid AND mlink.mid=plink.cid AND
plink.cid=mlink.mid ORDER BY mlink.fnid, plink.mtime DESC]
Vacuuming the database...
project-id: a49a74a282acfe2f07de91768b854dffd3d783df
server-id: c09ff2f6b492daa621659f4fea82347370fb3343
admin-user: root (password is "7653f4")
$ fossil sync --unversioned --verily https://www2.sqlite.org/docsrc -R
doc.sqlite
Round-trips: 2 Artifacts sent: 0 received: 0
Server says: pull only - not authorized to push
Round-trips: 4 Artifacts sent: 0 received: 1194
Sync done, sent: 237087 received: 2094710 ip: 2.0.1.187
8831 scan steps for 431 rows in [ SELECT pid FROM plink WHERE pid>0 AND
isprim AND cid IN (SELECT blob.rid FROM blob WHERE rcvid=:rcvid)]
I don't understand why it is possible to sync a repository but not to clone
it. Why is the permission system like that?
jungle Boogie
2018-07-02 19:05:29 UTC
Permalink
Post by Brian Nguyen
$ fossil clone https://www2.sqlite.org/docsrc doc.sqlite
Round-trips: 2 Artifacts sent: 0 received: 0
Error: not authorized to clone
Round-trips: 2 Artifacts sent: 0 received: 0
Clone done, sent: 537 received: 582 ip: 2.0.1.187
server returned an error - clone aborted
$ fossil clone https://www.hwaci.com/cgi-bin/docsrc doc.sqlite
Round-trips: 3 Artifacts sent: 0 received: 7650
Clone done, sent: 821 received: 10881255 ip: 2.0.1.187
Rebuilding repository meta-data...
98.0% complete...
7 scan steps for 1 rows in [UPDATE time_fudge SET m1=m2-:incr WHERE m1>=m2
AND m1<m2+:window]
100.0% complete...
Extra delta compression...
2430 scan steps for 5 rows in [SELECT rid FROM event, blob WHERE
blob.rid=event.objid AND event.type='ci' AND NOT EXISTS(SELECT 1 FROM
delta WHERE rid=blob.rid) ORDER BY event.mtime DESC]
5615 scan steps for 843 rows in [SELECT DISTINCT blob.rid, mlink.fnid FROM
blob, mlink, plink WHERE NOT EXISTS(SELECT 1 FROM delta WHERE rid=blob.rid)
AND mlink.fid=blob.rid AND mlink.mid=plink.cid AND plink.cid=mlink.mid
ORDER BY mlink.fnid, plink.mtime DESC]
Vacuuming the database...
project-id: a49a74a282acfe2f07de91768b854dffd3d783df
server-id: c09ff2f6b492daa621659f4fea82347370fb3343
admin-user: root (password is "7653f4")
$ fossil sync --unversioned --verily https://www2.sqlite.org/docsrc -R
doc.sqlite
Round-trips: 2 Artifacts sent: 0 received: 0
Server says: pull only - not authorized to push
Round-trips: 4 Artifacts sent: 0 received: 1194
Sync done, sent: 237087 received: 2094710 ip: 2.0.1.187
8831 scan steps for 431 rows in [ SELECT pid FROM plink WHERE pid>0 AND
isprim AND cid IN (SELECT blob.rid FROM blob WHERE rcvid=:rcvid)]
I don't understand why it is possible to sync a repository but not to clone
it. Why is the permission system like that?
I can:

$ fossil sync --unversioned --verily https://www.sqlite.org/docsrc -R
../docs.fossil
Round-trips: 1 Artifacts sent: 0 received: 0
Sync done, sent: 235039 received: 235667 ip: 45.33.6.223

I imagine DRH doesn't want www2 cloneable, because it's not the
canonical source of truth, only a copy of it.

Try your steps again with the original copy.
Brian Nguyen
2018-07-05 10:01:38 UTC
Permalink
$ fossil clone https://www.sqlite.org/cgi/src wwwsqlite.fossil
Round-trips: 10 Artifacts sent: 0 received: 78047
Clone done, sent: 2667 received: 50594812 ip: 2.0.1.187
Rebuilding repository meta-data...
100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: 2ab58778c2967968b94284e989e43dc11791f548
server-id: 0d986cdadefbdf6dc5817013b3d9be5a3c33b78e
admin-user: user (password is "2f88bf")
$ fossil clone https://www2.sqlite.org/cgi/src www2sqlite.fossil
Round-trips: 27 Artifacts sent: 0 received: 78047
Clone done, sent: 7207 received: 134928244 ip: 2.0.1.187
Rebuilding repository meta-data...
100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: 2ab58778c2967968b94284e989e43dc11791f548
server-id: 5ebe7cb6f24643f7a7f60c2794f97d0154cfbfed
admin-user: user (password is "2ab3fc")
$ fossil clone https://www3.sqlite.org/cgi/src www3sqlite.fossil
Round-trips: 19 Artifacts sent: 0 received: 78048
Clone done, sent: 5082 received: 94686053 ip: 2.0.1.187
Rebuilding repository meta-data...
100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: 2ab58778c2967968b94284e989e43dc11791f548
server-id: 57fcd57ec4bfc31240703e469ebe8e92068d61c8
admin-user: user (password is "7fc7a3")
$ fossil clone https://www.sqlite.org/cgi/docsrc wwwdocsrc.fossil
Round-trips: 3 Artifacts sent: 0 received: 8845
Clone done, sent: 815 received: 13188415 ip: 2.0.1.187
Rebuilding repository meta-data...
100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: a49a74a282acfe2f07de91768b854dffd3d783df
server-id: bee6212e61fabb9cfe6753e409b2732acd6ca1f4
admin-user: user (password is "0acf21")
$ fossil clone https://www3.sqlite.org/cgi/docsrc www3docsrc.fossil
Round-trips: 3 Artifacts sent: 0 received: 8203
Clone done, sent: 816 received: 14209026 ip: 2.0.1.187
Rebuilding repository meta-data...
100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: a49a74a282acfe2f07de91768b854dffd3d783df
server-id: 9dd7397cf53e97143a6817b46a6088ee1ce1a07d
admin-user: user (password is "245158")
$ fossil clone https://www2.sqlite.org/cgi/docsrc www2docsrc.fossil
Round-trips: 2 Artifacts sent: 0 received: 0
Error: not authorized to clone
Round-trips: 2 Artifacts sent: 0 received: 0
Clone done, sent: 546 received: 582 ip: 2.0.1.187
server returned an error - clone aborted
But when I clone somewhere else and then sync on www2 it works fine!
$ fossil clone --unversioned https://www.hwaci.com/cgi-bin/docsrc
www2docsrc.fossil
Round-trips: 3 Artifacts sent: 0 received: 7650
Clone done, sent: 861 received: 10881275 ip: 2.0.1.187
Rebuilding repository meta-data...
100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: a49a74a282acfe2f07de91768b854dffd3d783df
server-id: c1ef59b76a7e193ec96d899c3838110d0cd93777
admin-user: user (password is "edcf77")
$ fossil sync --verily --unversioned https://www2.sqlite.org/cgi/docsrc
-R www2docsrc.fossil
Round-trips: 2 Artifacts sent: 0 received: 0
Server says: pull only - not authorized to push
Round-trips: 4 Artifacts sent: 0 received: 1194
Sync done, sent: 237100 received: 2094711 ip: 2.0.1.187
Loading...