Cannot land a diff - LOGIN REQUIRED (I am logged in)
Event Timeline
Running with --trace gives me:
arc land --trace ARGV /home/kuba/bin/arc land --trace PCNTL Unable to install signal handler, pcntl_signal() unavailable. Continuing without signal handling. LOAD Loading library from "/home/kuba/Downloads/phorge/src"... >>> [1] (+0) <http> https://we.phorge.it/api/user.whoami <<< [1] (+363) <http> 363,576 us LOGIN REQUIRED You are trying to connect to a server ("we.phorge.it") that you do not have any stored credentials for, but the command you are running requires authentication. To log in and save credentials for this server, run this command: $ arc install-certificate https://we.phorge.it/
Also, commands like arc patch and arc diff --update work fine for me, it seems that only arc land is affected.
That's odd...
- do you have an entry for "https://we.phorge.it/api/" in your ~/.arcrc ?
- I'm also confused about the --trace not including any comment about loading any configuration source - that's probably a bug
- how about echo {} | arc --trace call-conduit -- user.whoami ? in the phorge dir and in other dirs?
- I'm assuming /home/kuba/bin/arc is a symlink to arc that's in ~/Downloads/arc?
also, arc get-config hosts --verbose - but note that it will actually print out the tokens, hide those.
do you have an entry for "https://we.phorge.it/api/" in your ~/.arcrc ?
yes
how about echo {} | arc --trace call-conduit -- user.whoami ? in the phorge dir and in other dirs?
In phorge directory:
echo {} | arc --trace call-conduit -- user.whoami ARGV /home/kuba/bin/arc --trace call-conduit -- user.whoami PCNTL Unable to install signal handler, pcntl_signal() unavailable. Continuing without signal handling. LOAD Loading library from "/home/kuba/Downloads/phorge/src"... >>> [1] (+0) <http> https://we.phorge.it/api/user.whoami <<< [1] (+370) <http> 370,085 us LOGIN REQUIRED You are trying to connect to a server ("we.phorge.it") that you do not have any stored credentials for, but the command you are running requires authentication. To log in and save credentials for this server, run this command: $ arc install-certificate https://we.phorge.it/
In a different repo that uses a different phorge instance:
echo {} | arc --trace call-conduit -- user.whoami ARGV /home/kuba/bin/arc --trace call-conduit -- user.whoami PCNTL Unable to install signal handler, pcntl_signal() unavailable. Continuing without signal handling. LOAD Loading library from "/home/kuba/bin/arcanist-linters"... LOAD Loading library from "/home/kuba/bin/arc-unit-mocha/src"... >>> [1] (+0) <http> https://hub.sealcode.org/api/user.whoami <<< [1] (+149) <http> 149,764 us { "error": null, "errorMessage": null, "response": { "phid": "PHID-USER-ukyz5wmn4566anlt4stm", "userName": "kuba-orlik", "realName": "Kuba Orlik", "image": "https://cdn.sealco.de/file/data/mpnci2m5ejgzbphiysl2/PHID-FILE-h2lo5nb6fibuyyna2rig/profile", "uri": "https://hub.sealcode.org/p/kuba-orlik/", "roles": [ "admin", "verified", "approved", "activated" ], "primaryEmail": "kuba.orlik@sealcode.org" } }
In a random, non-git dir:
echo {} | arc --trace call-conduit -- user.whoami ARGV /home/kuba/bin/arc --trace call-conduit -- user.whoami PCNTL Unable to install signal handler, pcntl_signal() unavailable. Continuing without signal handling. >>> [1] (+0) <http> https://hub.sealcode.org/api/user.whoami <<< [1] (+148) <http> 148,606 us { "error": null, "errorMessage": null, "response": { "phid": "PHID-USER-ukyz5wmn4566anlt4stm", "userName": "kuba-orlik", "realName": "Kuba Orlik", "image": "https://cdn.sealco.de/file/data/mpnci2m5ejgzbphiysl2/PHID-FILE-h2lo5nb6fibuyyna2rig/profile", "uri": "https://hub.sealcode.org/p/kuba-orlik/", "roles": [ "admin", "verified", "approved", "activated" ], "primaryEmail": "kuba.orlik@sealcode.org" } }
I'm assuming /home/kuba/bin/arc is a symlink to arc that's in ~/Downloads/arc?
I keep arcanist cloned in /home/kuba/bin/arcanist. /home/kuba/bin/arc is this executable file:
#!/usr/bin/env php80 <?php if (function_exists('pcntl_async_signals')) { pcntl_async_signals(true); } else { declare(ticks = 1); } require_once '/home/kuba/bin/arcanist/support/init/init-arcanist.php';
I keep arcanist cloned in /home/kuba/bin/arcanist. /home/kuba/bin/arc is this executable file:
It's possible there's a conflict here, because running arc on phorge might try to load the arc from ../arc - relative to the phorge code.
That would still not explain why it looks like it doesn't read your .arcrc - but there's going to require some deep digging. Maybe it's somehow configured not to? but then I'd expect it not to work for your normal server either.
I haven’t run this specific issue but I have seen other oddities when using my installed arc within the arc or phorge repos. I’m unable to get it to work unless I use the arc that exists along side that phorge repo. That might be similar here.
E.g I have to run ./bin/arc from within the arcanist folder, and can’t use the “arc” in my PATH which is located elsewhere.