[ot][spam][crazy][junk][wrong] getting information onto a blockchain
it helps me do things to have something preserving my notes around them i'm posting to this list a little about part of attempts to find something other than the list, to preserve things. my idea is to post to the list while I work on fixing a bug with a hodge-podge git-annex remote. the bug is that it doesn't store the final files it sends, only up to a few before the end.
I got this open. I've found the area related to the problem. I don't understand why it is happening, and part of me is likely worried it could be a system compromise preventing it from functioning. I have a fear around that. I'm guessing that I'm expecting debug output from a subprocess that does not actually produce output. But it could be anything that I am failing to perceive. 14:00 ET. when I tried to send this, gmail reported my account was unavailable.
The message ended up sending an earlier copy. The intended content included this block: if self.closed: key_urls = '\n'.join((' '.join(keyurl) for keyurl in key_urls)) result = subprocess.run( ('git', 'annex', 'registerurl', '--batch'), input=keyurls, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True, text=True ) for line in result.stdout: self._debug(line) for line in result.stderr: self._info(line) The code is behaving as if the block is not executed, even though self.closed is True. I guess I'll verify that it did indeed execute. I'd also like to see whether that command has output, and enable verbose mode if it has one.
I'm having trouble discerning if that is the issue. I am including the full block of code with the preceding portion that generates key_urls: for key, props in manifest['paths'].items(): txid = props['id'] file_txids[key] = txid self._debug(f'{key}: {self.gateway}/{txid}') if self.combining.get(key, False): for url in (*self.txid_urls(txid), *self.txid_uris(txid)): key_urls.append((key, url)) if self.closed: key_urls = '\n'.join((' '.join(keyurl) for keyurl in key_urls)) result = subprocess.run( ('git', 'annex', 'registerurl', '--batch'), input=keyurls, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True, text=True ) for line in result.stdout: self._debug(line) for line in result.stderr: self._info(line)
I'm having chest contractions while I try to consider the behavior of `if self.closed`. 14:06 . I'm thinking of adding debug output to show that the subprocess is indeed executed. [also want to um verify that git-annex-registerurl works as i expect, see if i can find the urls i expect to be registered, and verify that they are registered, or identify that they are not. the code block may work completely fine, and the real issue be elsewhere.] [the final issue is that things are confirming uploaded that do not appear to have been on a following git annex fsck -f .]
participants (1)
-
Undiscussed Horrific Abuse, One Victim of Many