- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Feb 18 2021
This is the mapping of the origin index with the metadata : P953
Thanks @anlambert, the monitoring comes back to green
Feb 17 2021
lgtm
(forgot to mention: Thanks, it's really a nice improvement)
Please note a recent version of docker-compose is needed to allow the environment to start with the healthcheck keywork,
It was not working with the version 1.26.2 but is ok with 1.28.2
❯ docker-compose version docker-compose version 1.26.2, build eefe0d31 docker-py version: 4.2.2 CPython version: 3.7.7 OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
With tcpdump, it seems swh-web don't add the headers to don't cache the response in case of a 404:
GET /api/1/vault/directory/a317baff051f68e83557d51e59539dac2ff55b34/ HTTP/1.1 Host: archive.softwareheritage.org User-Agent: python-requests/2.21.0 Accept: */* X-Forwarded-For: 128.93.166.14 X-Forwarded-Proto: https Accept-Encoding: gzip X-Varnish: 230399
after digging, it seems the request with a 404 return code are cached by varnish.
When the test is launched, a first request is done which returns a 404 and the post is issued. When the check try to get the status of the cooking, the initial 404 is returned by varnish
It seems the scheduler has missed some updates. After an upgrade of the python3-swh-.* packages, the error is again the initial one.
After an upgrade of the packages on pergamon and vangogh, the error is now :
Feb 17 10:49:38 vangogh python3[1990225]: 2021-02-17 10:49:38 [1990225] root:ERROR <RemoteException 500 InvalidDatetimeFormat: ['invalid input syntax for type timestamp with time zone: "Timestamp(seconds=1613558977, nanoseconds=999614000)"\nCONTEXT: COPY tmp_task, line 1, column next_run: "Timestamp(seconds=1613558977, nanoseconds=999614000)"\n']> Traceback (most recent call last): File "/usr/lib/python3/dist-packages/swh/core/api/asynchronous.py", line 71, in middleware_handler return await handler(request) File "/usr/lib/python3/dist-packages/swh/core/api/asynchronous.py", line 178, in decorated_meth result = obj_meth(**kw) File "/usr/lib/python3/dist-packages/swh/core/db/common.py", line 62, in _meth return meth(self, *args, db=db, cur=cur, **kwargs) File "/usr/lib/python3/dist-packages/swh/vault/backend.py", line 220, in cook self.create_task(obj_type, obj_id, sticky) File "/usr/lib/python3/dist-packages/swh/core/db/common.py", line 62, in _meth return meth(self, *args, db=db, cur=cur, **kwargs) File "/usr/lib/python3/dist-packages/swh/vault/backend.py", line 163, in create_task task_id = self._send_task(obj_type, hex_id) File "/usr/lib/python3/dist-packages/swh/vault/backend.py", line 139, in _send_task added_tasks = self.scheduler.create_tasks([task]) File "/usr/lib/python3/dist-packages/swh/core/api/__init__.py", line 181, in meth_ return self.post(meth._endpoint_path, post_data) File "/usr/lib/python3/dist-packages/swh/core/api/__init__.py", line 278, in post return self._decode_response(response) File "/usr/lib/python3/dist-packages/swh/core/api/__init__.py", line 354, in _decode_response self.raise_for_status(response) File "/usr/lib/python3/dist-packages/swh/core/api/__init__.py", line 344, in raise_for_status raise exception from None swh.core.api.RemoteException: <RemoteException 500 InvalidDatetimeFormat: ['invalid input syntax for type timestamp with time zone: "Timestamp(seconds=1613558977, nanoseconds=999614000)"\nCONTEXT: COPY tmp_task, line 1, column next_run: "Timestamp(seconds=1613558977, nanoseconds=999614000)"\n']>
Feb 16 2021
I wrote a proposal for the next steps [1] so we could start the work on these counters. All comments/contributions are welcome.
root@0a15636c2914:/# aptitude install cassandra openjdk-11-jre The following NEW packages will be installed: alsa-topology-conf{a} alsa-ucm-conf{a} at-spi2-core{a} ca-certificates-java{a} cassandra dbus{a} file{a} fontconfig-config{a} fonts-dejavu-core{a} fonts-dejavu-extra{a} java-common{a} libapparmor1{a} libasound2{a} libasound2-data{a} libatk-bridge2.0-0{a} libatk-wrapper-java{a} libatk-wrapper-java-jni{a} libatk1.0-0{a} libatk1.0-data{a} libatspi2.0-0{a} libavahi-client3{a} libavahi-common-data{a} libavahi-common3{a} libbsd0{a} libcap2{a} libcups2{a} libdbus-1-3{a} libdrm-amdgpu1{a} libdrm-common{a} libdrm-intel1{a} libdrm-nouveau2{a} libdrm-radeon1{a} libdrm2{a} libedit2{a} libelf1{a} libevent-core-2.1-7{a} libevent-pthreads-2.1-7{a} libexpat1{a} libfontconfig1{a} libfontenc1{a} libfreetype6{a} libgif7{a} libgl1{a} libgl1-mesa-dri{a} libglapi-mesa{a} libglib2.0-0{a} libglib2.0-data{a} libglvnd0{a} libglx-mesa0{a} libglx0{a} libgraphite2-3{a} libharfbuzz0b{a} libice6{a} libicu67{a} libjpeg62-turbo{a} liblcms2-2{a} libllvm11{a} libmagic-mgc{a} libmagic1{a} libmd0{a} libnspr4{a} libnss3{a} libopts25{a} libpciaccess0{a} libpcsclite1{a} libpng16-16{a} libpython2-stdlib{a} libpython2.7-minimal{a} libpython2.7-stdlib{a} libsensors-config{a} libsensors5{a} libsm6{a} libvulkan1{a} libwayland-client0{a} libx11-6{a} libx11-data{a} libx11-xcb1{a} libxau6{a} libxaw7{a} libxcb-dri2-0{a} libxcb-dri3-0{a} libxcb-glx0{a} libxcb-present0{a} libxcb-randr0{a} libxcb-shape0{a} libxcb-shm0{a} libxcb-sync1{a} libxcb-xfixes0{a} libxcb1{a} libxcomposite1{a} libxdamage1{a} libxdmcp6{a} libxext6{a} libxfixes3{a} libxft2{a} libxi6{a} libxinerama1{a} libxkbfile1{a} libxml2{a} libxmu6{a} libxmuu1{a} libxpm4{a} libxrandr2{a} libxrender1{a} libxshmfence1{a} libxt6{a} libxtst6{a} libxv1{a} libxxf86dga1{a} libxxf86vm1{a} libz3-4{a} mailcap{a} media-types{a} mesa-vulkan-drivers{a} mime-support{a} ntp{a} openjdk-11-jre openjdk-11-jre-headless{a} python-is-python2{a} python2{a} python2-minimal{a} python2.7{a} python2.7-minimal{a} shared-mime-info{a} sntp{a} ucf{a} x11-common{a} x11-utils{a} xdg-user-dirs{a}
root@0a15636c2914:/# aptitude install cassandra The following NEW packages will be installed: adwaita-icon-theme{a} alsa-topology-conf{a} alsa-ucm-conf{a} at-spi2-core{a} ca-certificates-java{a} cassandra dbus{a} file{a} fontconfig{a} fontconfig-config{a} fonts-dejavu-core{a} fonts-dejavu-extra{a} gtk-update-icon-cache{a} hicolor-icon-theme{a} java-common{a} libapparmor1{a} libasound2{a} libasound2-data{a} libatk-bridge2.0-0{a} libatk-wrapper-java{a} libatk-wrapper-java-jni{a} libatk1.0-0{a} libatk1.0-data{a} libatspi2.0-0{a} libavahi-client3{a} libavahi-common-data{a} libavahi-common3{a} libbsd0{a} libcairo-gobject2{a} libcairo2{a} libcap2{a} libcups2{a} libdatrie1{a} libdbus-1-3{a} libdeflate0{a} libdrm-amdgpu1{a} libdrm-common{a} libdrm-intel1{a} libdrm-nouveau2{a} libdrm-radeon1{a} libdrm2{a} libedit2{a} libelf1{a} libevent-core-2.1-7{a} libevent-pthreads-2.1-7{a} libexpat1{a} libfontconfig1{a} libfontenc1{a} libfreetype6{a} libfribidi0{a} libgail-common{a} libgail18{a} libgdk-pixbuf-2.0-0{a} libgdk-pixbuf2.0-bin{a} libgdk-pixbuf2.0-common{a} libgif7{a} libgl1{a} libgl1-mesa-dri{a} libglapi-mesa{a} libglib2.0-0{a} libglib2.0-data{a} libglvnd0{a} libglx-mesa0{a} libglx0{a} libgraphite2-3{a} libgtk2.0-0{a} libgtk2.0-bin{a} libgtk2.0-common{a} libharfbuzz0b{a} libice6{a} libicu67{a} libjbig0{a} libjpeg62-turbo{a} liblcms2-2{a} libllvm11{a} libmagic-mgc{a} libmagic1{a} libmd0{a} libnspr4{a} libnss3{a} libopts25{a} libpango-1.0-0{a} libpangocairo-1.0-0{a} libpangoft2-1.0-0{a} libpciaccess0{a} libpcsclite1{a} libpixman-1-0{a} libpng16-16{a} libpython2-stdlib{a} libpython2.7-minimal{a} libpython2.7-stdlib{a} librsvg2-2{a} librsvg2-common{a} libsensors-config{a} libsensors5{a} libsm6{a} libthai-data{a} libthai0{a} libtiff5{a} libvulkan1{a} libwayland-client0{a} libwebp6{a} libx11-6{a} libx11-data{a} libx11-xcb1{a} libxau6{a} libxaw7{a} libxcb-dri2-0{a} libxcb-dri3-0{a} libxcb-glx0{a} libxcb-present0{a} libxcb-randr0{a} libxcb-render0{a} libxcb-shape0{a} libxcb-shm0{a} libxcb-sync1{a} libxcb-xfixes0{a} libxcb1{a} libxcomposite1{a} libxcursor1{a} libxdamage1{a} libxdmcp6{a} libxext6{a} libxfixes3{a} libxft2{a} libxi6{a} libxinerama1{a} libxkbfile1{a} libxml2{a} libxmu6{a} libxmuu1{a} libxpm4{a} libxrandr2{a} libxrender1{a} libxshmfence1{a} libxt6{a} libxtst6{a} libxv1{a} libxxf86dga1{a} libxxf86vm1{a} libz3-4{a} mailcap{a} media-types{a} mesa-vulkan-drivers{a} mime-support{a} ntp{a} openjdk-17-jre{a} openjdk-17-jre-headless{a} python-is-python2{a} python2{a} python2-minimal{a} python2.7{a} python2.7-minimal{a} shared-mime-info{a} sntp{a} ucf{a} x11-common{a} x11-utils{a} xdg-user-dirs{a} 0 packages upgraded, 159 newly installed, 0 to remove and 12 not upgraded.
Feb 15 2021
Adapt according the review
Feb 12 2021
A basic dashboard [1] is created on garfana based on the number of log line.
It's too limited as it's not possible to isolate the logs per environment as the information is not available.
It will be added in T3043
Fix tests to increase code coverage
The not_found status is now only set when the repository is really not found.
In D5064#127855, @vlorentz wrote:It also misses a test where an origin is initially inserted with visit_types, then visit_types is added
The disk has been sent to the manufacturer this morning, we now have to wait to hear from him.
Feb 11 2021
After puppet has added the group to the user nagios[1], the icinga services needed to be restarted.
# clush -b -w @staging 'systemctl restart icinga2' # clush -b -w @all 'systemctl restart icinga2'
I'm not sure to understand the real problem here.
As the indexer and indexer-storage are in same source repository, the versions should match or increase in //. Sentry should be able to deal with it as any other version upgrade.
T3041 needs to be done before this one (for the production environment)
D5063 is applied, the main webapp is now using swh-search by default.
This is (or should be ;) ) the state after the diff is applied :
The main webapp search can be switch from the sql search to the swh-search as all the tests performed on staging and https://webapp1.internal.softwareheritage.org are ok
Feb 10 2021
LGTM but it's biased as we worked onit together ;)
Feb 9 2021
LGTM