cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A server with the specified hostname could not be found

Aish
Newcomer

After running preprocess dSYM command in the mac terminal. I was trying upload command for uploading dSYM file but i was getting error "ERROR: Execution failed, rc=-1003 reason=A server with the specified hostname could not be found." I run this command for uploading :-

DTXDssClient -delete appid=aa-bb-cc-dd-ee apitoken=Z-123aefc os=ios bundleId=org.comp.app versionStr=1.0 version=1 server=https://server.com 

Here i replaced values according to my project details.

1 REPLY 1

Patrick_H
Dynatrace Champion
Dynatrace Champion

Hi!

it seems that the server URL you entered was not correct or not reachable from your device - as https://server.com is only an example I can't judge what the real problem is. You could try and ping the server if it is reachable from your device and if the URL can be resolved.
Additionally -delete is not the correct command for upload - just run ./DTXDssClient to get a list of all available commands:

% ./DTXDssClient 
DTXDssClient version 8.267.1.1006 built on 2023-05-22
FLAGS: (only one flag per operation)
-delete Delete one or more mapping files, depending on criteria.
-upload Specify an xcarchive or dsym mapping file to upload.
-decode Create local mapping files.
-help (-h) Display this help screen.

SYNOPSIS (Upload):
DTXDssClient -upload server=<serverURL> apitoken=<dynatraceAPIToken> appid=<dynatraceAppId>
symbolsfile=<iOS filename or folder>|file=<android filename or folder> [os=ios|tvos|android]
bundleId=<CFBundleIdentifier/package> version=<CFBundleVersion/versionCode> versionStr=<CFBundleShortVersionString/versionName>
EXPERT LEVEL:
[logLevel=ALL|SEVERE|WARNING|INFO|FINE|FINER|FINEST] [allowAnyCert=1] [extraInfo=1] [mangledNames=1]

SYNOPSIS (Delete):
DTXDssClient -delete server=<serverURL> apitoken=<dynatraceAPIToken> appid=<dynatraceAppId>
os=ios|tvos|android
bundleId=<CFBundleIdentifier/package> version=<CFBundleVersion/versionCode> versionStr=<CFBundleShortVersionString/versionName>
EXPERT LEVEL:
[logLevel=ALL|SEVERE|WARNING|INFO|FINE|FINER|FINEST] [allowAnyCert=1]

SYNOPSIS (Decode):
DTXDssClient -decode symbolsfile=<iOS filename or folder>|file=<android filename or folder> [outdir=<folder>]
EXPERT LEVEL:
[logLevel=ALL|SEVERE|WARNING|INFO|FINE|FINER|FINEST] [extraInfo=1] [mangledNames=1]

DESCRIPTION:
The dss-client utility provides the ability to upload and delete mapping files
from the DSS Symbolication Service.

OPTIONS:
os Either iOS, tvOS or Android (defaults to iOS on upload).
version The CFBundleVersion (iOS) / versionCode (Android).
versionStr The CFBundleShortVersionString (iOS) / versionName (Android).
bundleId The CFBundleIdentifier (iOS) / package (Android) of the Application.
appid The Dynatrace application id.
apitoken The Dynatrace API token.
symbolsfile For uploading, the filename of the XCode iOS archive or iOS dSYM containing the symbol mappings.
file For uploading, the filename of the Android symbol mappings.
allowAnyCert 1 for allowing communication to secure server that uses self-signed certificates. (WARNING: should not be used in production environments, because of security implications!)
extraInfo 1 for extra information to be added to the symbol mapping (use with caution, can double the size).
mangledNames 1 for the swift mangled names to be added to the symbol mapping (use with caution, can double the size).
tempdir The folder where the temporary files will be placed.
outdir The folder where the results files will be placed (only for decode).
logLevel Set how fine tuned the log level will be. Defaults to INFO.
maxSymbolSize Limits the maximum length (characters) of the demangled symbols. Can be disabled by setting it to 0. (Default 5000)

EXAMPLES:

display info
DTXDssClient -info appid=aa-bb-cc-dd-ee apitoken=Z-123aefc server=https://server.com

display status
DTXDssClient -status appid=aa-bb-cc-dd-ee apitoken=Z-123aefc server=https://server.com

delete iOS symbols for version
DTXDssClient -delete appid=aa-bb-cc-dd-ee apitoken=Z-123aefc os=ios bundleId=org.comp.app versionStr=1.0 version=1 server=https://server.com

upload iOS symbols from folder (all dSYMs in the folder will be processed)
DTXDssClient -upload appid=aa-bb-cc-dd-ee apitoken=Z-123aefc os=ios bundleId=org.comp.app versionStr=1.0 version=1 symbolsfile=/usr/local/symbols server=https://server.com

upload ANDROID mapping file
DTXDssClient -upload appid=aa-bb-cc-dd-ee apitoken=Z-123aefc os=android bundleId=org.comp.app versionStr=1.0 version=1 file=/usr/local/mapping.txt server=https://server.com

 

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Featured Posts