no release, no revision, and no full visit.
Most likely related to [1]
no release, no revision, and no full visit.
Most likely related to [1]
This origin (and others) also fails to be mirrored with errors like:
2020-07-01T08:08:31.034527330Z swh_storage.1.w34ostw2fj07@bespin | ERROR:root:unsupported Unicode escape sequence 2020-07-01T08:08:31.034547035Z swh_storage.1.w34ostw2fj07@bespin | DETAIL: \u0000 cannot be converted to text. 2020-07-01T08:08:31.034550252Z swh_storage.1.w34ostw2fj07@bespin | CONTEXT: JSON data, line 1: ...nfig-factory", "version": "0.3.0", "description":... 2020-07-01T08:08:31.034552607Z swh_storage.1.w34ostw2fj07@bespin | COPY tmp_revision, line 10, column metadata: "{"package_source": {"name": "config-factory", "version": "0.3.0", "filename": "config-factory-0.3.0...." 2020-07-01T08:08:31.034555308Z swh_storage.1.w34ostw2fj07@bespin | Traceback (most recent call last): 2020-07-01T08:08:31.034557333Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request 2020-07-01T08:08:31.034559316Z swh_storage.1.w34ostw2fj07@bespin | rv = self.dispatch_request() 2020-07-01T08:08:31.034561208Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request 2020-07-01T08:08:31.034563201Z swh_storage.1.w34ostw2fj07@bespin | return self.view_functions[rule.endpoint](**req.view_args) 2020-07-01T08:08:31.034565055Z swh_storage.1.w34ostw2fj07@bespin | File "<decorator-gen-42>", line 2, in revision_add 2020-07-01T08:08:31.034567410Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/core/api/negotiation.py", line 148, in _negotiate 2020-07-01T08:08:31.034569427Z swh_storage.1.w34ostw2fj07@bespin | return f.negotiator(*args, **kwargs) 2020-07-01T08:08:31.034571284Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/core/api/negotiation.py", line 82, in __call__ 2020-07-01T08:08:31.034573266Z swh_storage.1.w34ostw2fj07@bespin | result = self.func(*args, **kwargs) 2020-07-01T08:08:31.034575139Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/core/api/__init__.py", line 453, in _f 2020-07-01T08:08:31.034577163Z swh_storage.1.w34ostw2fj07@bespin | return obj_meth(**kw) 2020-07-01T08:08:31.034578968Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/storage/metrics.py", line 24, in d 2020-07-01T08:08:31.034580961Z swh_storage.1.w34ostw2fj07@bespin | return f(*a, **kw) 2020-07-01T08:08:31.034582971Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/storage/metrics.py", line 77, in d 2020-07-01T08:08:31.034585007Z swh_storage.1.w34ostw2fj07@bespin | r = f(*a, **kw) 2020-07-01T08:08:31.034586849Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/core/db/common.py", line 62, in _meth 2020-07-01T08:08:31.034588741Z swh_storage.1.w34ostw2fj07@bespin | return meth(self, *args, db=db, cur=cur, **kwargs) 2020-07-01T08:08:31.034597020Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/storage/storage.py", line 575, in revision_add 2020-07-01T08:08:31.034599212Z swh_storage.1.w34ostw2fj07@bespin | lambda rev: parents_filtered.extend(rev["parents"]), 2020-07-01T08:08:31.034601077Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/core/db/__init__.py", line 213, in copy_to 2020-07-01T08:08:31.034602968Z swh_storage.1.w34ostw2fj07@bespin | raise exc_info[1].with_traceback(exc_info[2]) 2020-07-01T08:08:31.034604780Z swh_storage.1.w34ostw2fj07@bespin | File "/usr/lib/python3/dist-packages/swh/core/db/__init__.py", line 175, in writer 2020-07-01T08:08:31.034606696Z swh_storage.1.w34ostw2fj07@bespin | "COPY %s (%s) FROM STDIN CSV" % (tblname, ", ".join(columns)), f 2020-07-01T08:08:31.034608754Z swh_storage.1.w34ostw2fj07@bespin | psycopg2.errors.UntranslatableCharacter: unsupported Unicode escape sequence 2020-07-01T08:08:31.034611057Z swh_storage.1.w34ostw2fj07@bespin | DETAIL: \u0000 cannot be converted to text. 2020-07-01T08:08:31.034612976Z swh_storage.1.w34ostw2fj07@bespin | CONTEXT: JSON data, line 1: ...nfig-factory", "version": "0.3.0", "description":... 2020-07-01T08:08:31.034615611Z swh_storage.1.w34ostw2fj07@bespin | COPY tmp_revision, line 10, column metadata: "{"package_source": {"name": "config-factory", "version": "0.3.0", "filename": "config-factory-0.3.0...." 2020-07-01T08:08:31.034618053Z swh_storage.1.w34ostw2fj07@bespin |
I'm afraid the only way to properly solve this is to wait until we stop writing metadata to the revision table
New swh.loader.core deployed in staging.
olasd@worker0:~$ sudo -u swhworker SWH_CONFIG_FILENAME=/etc/softwareheritage/loader_npm.yml swh loader run npm https://www.npmjs.com/package/angular-ts-manage {'status': 'eventful', 'snapshot_id': 'b34e3cfd3f1aa158241542c92cbd3f92bfd48460'}
Now on to deploying this in production...
Now deployed in prod:
olasd@worker01$ sudo -u swhworker SWH_CONFIG_FILENAME=/etc/softwareheritage/loader_npm.yml swh loader run npm https://www.npmjs.com/package/angular-ts-manage {'status': 'eventful', 'snapshot_id': 'b34e3cfd3f1aa158241542c92cbd3f92bfd48460'}