Closed yarikoptic closed 7 months ago
I think this may be caused by one or more bugs in httpx (possibly this one) for which fixes have been released, but the version of httpx in the dandisets-2 env is not the latest. I suggest killing the backup process and updating all of the packages before starting a new process; I believe the latter step can be accomplished by adding the option --upgrade-strategy eager
to this line.
ok, I will try to do that now
--upgrade-strategy eager
--upgrade-strategy eager
added to installation of backups2datalad had no effect on httpx
(dandisets-2) dandi@drogon:/mnt/backup/dandi/dandisets$ pip show httpx | grep Version; chronic pip uninstall --yes backups2datalad; pip install --upgrade-strategy eager git+https://github.com/dandi/backups2datalad | grep httpx; pip show httpx | grep Version
Version: 0.25.1
Running command git clone --filter=blob:none --quiet https://github.com/dandi/backups2datalad /tmp/pip-req-build-usy7krrb
Requirement already satisfied: httpx~=0.22 in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from backups2datalad==0.0.0) (0.25.1)
Requirement already satisfied: certifi in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpx~=0.22->backups2datalad==0.0.0) (2022.12.7)
Requirement already satisfied: httpcore in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpx~=0.22->backups2datalad==0.0.0) (1.0.2)
Requirement already satisfied: h11<0.15,>=0.13 in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpcore->httpx~=0.22->backups2datalad==0.0.0) (0.14.0)
Version: 0.25.1
so I just manually upgraded it:
(dandisets-2) dandi@drogon:/mnt/backup/dandi/dandisets$ pip install --upgrade httpx
Requirement already satisfied: httpx in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (0.25.1)
Collecting httpx
Downloading httpx-0.27.0-py3-none-any.whl.metadata (7.2 kB)
Requirement already satisfied: anyio in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpx) (4.0.0)
Requirement already satisfied: certifi in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpx) (2022.12.7)
Requirement already satisfied: httpcore==1.* in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpx) (1.0.2)
Requirement already satisfied: idna in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpx) (3.4)
Requirement already satisfied: sniffio in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpx) (1.3.0)
Requirement already satisfied: h11<0.15,>=0.13 in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from httpcore==1.*->httpx) (0.14.0)
Requirement already satisfied: exceptiongroup>=1.0.2 in /home/dandi/miniconda3/envs/dandisets-2/lib/python3.10/site-packages (from anyio->httpx) (1.1.3)
Downloading httpx-0.27.0-py3-none-any.whl (75 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.6/75.6 kB 1.8 MB/s eta 0:00:00
Installing collected packages: httpx
Attempting uninstall: httpx
Found existing installation: httpx 0.25.1
Uninstalling httpx-0.25.1:
Successfully uninstalled httpx-0.25.1
Successfully installed httpx-0.27.0
I think stuckness is resolved with the upgrade, thanks!
I noticed that https://github.com/dandi/dandisets says that last commit was 3 weeks ago. But we have lots of recently updated dandisets:
Individual dandiset github repos seems also have recent updates
![image](https://github.com/dandi/backups2datalad/assets/39889/b1366ccd-9ed7-46fe-a790-815f923d9cee)on drogon I see only some not pushed (why?) updates to 000026 in dandisets superdataset
```shell dandi@drogon:/mnt/backup/dandi/dandisets$ git log github/draft..draft commit a60c7bf88d82a350f538bd83594c163a3b29e51e (HEAD -> draft) Author: DANDI Teamand git status shows that MANY dandisets have uncommitted changes (new commits OR modified content!!) on drogon
```shell dandi@drogon:/mnt/backup/dandi/dandisets$ git status Refresh index: 100% (612/612), done. On branch draft Your branch is ahead of 'github/draft' by 2 commits. (use "git push" to publish your local commits) Changes not staged for commit: (use "git addso most likely recent changes on handling embargoed/public dandisets broke this... Then I looked at
ps
on drogon -- and apparently there is still a process which runs in--verify
mode since Mar 07!As such it seems to be stuck:
py-spy'ing that process gives no useful detail
then I recalled that we have logs! and this is what I see
some seems to be open (000726) and some embargoed (000729) but even for embargoed endpoint seems to work just fine:
so seems like a bug somewhere.