Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15340149
D20002.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20002.diff
View Options
diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -2024,10 +2024,35 @@
}
if ($never_proxy) {
+ // See PHI1030. This error can arise from various device name/address
+ // mismatches which are hard to detect, so try to provide as much
+ // information as we can.
+
+ if ($writable) {
+ $request_type = pht('(This is a write request.)');
+ } else {
+ $request_type = pht('(This is a read request.)');
+ }
+
throw new Exception(
pht(
- 'Refusing to proxy a repository request from a cluster host. '.
- 'Cluster hosts must correctly route their intracluster requests.'));
+ 'This repository request (for repository "%s") has been '.
+ 'incorrectly routed to a cluster host (with device name "%s", '.
+ 'and hostname "%s") which can not serve the request.'.
+ "\n\n".
+ 'The Almanac device address for the correct device may improperly '.
+ 'point at this host, or the "device.id" configuration file on '.
+ 'this host may be incorrect.'.
+ "\n\n".
+ 'Requests routed within the cluster by Phabricator are always '.
+ 'expected to be sent to a node which can serve the request. To '.
+ 'prevent loops, this request will not be proxied again.'.
+ "\n\n".
+ "%s",
+ $this->getDisplayName(),
+ $local_device,
+ php_uname('n'),
+ $request_type));
}
if (count($results) > 1) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 2:57 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7450778
Default Alt Text
D20002.diff (1 KB)
Attached To
Mode
D20002: Provide a richer error when an intracluster request can not be satisfied by the target node
Attached
Detach File
Event Timeline
Log In to Comment