Open dwirandytlvk opened 1 year ago
cc: @polac24
I would check first why the server returns 413 in the upload (too large file)
2023-04-03 13:01:50.849 I xcpostbuild[87438:9e35b] (libwebp) Making upload request to https://mobxcrc.mob.com/file/0fad954556be0073646beab4e7f72328.zip with 1 retries.
2023-04-03 13:01:50.888 I xcpostbuild[87438:9e35b] (libwebp) Upload request failed with unsuccessfulResponse(status: 413). Left retries: 1.
or 404:
2023-04-03 13:01:49.139 I xcpostbuild[87709:9e779] (TVLMasonry) Making upload request to https://mobxcrc.mob.com/file/c7818ebba957a0551b354a0efc649a99.zip with 2 retries.
2023-04-03 13:01:49.184 I xcpostbuild[87709:9e779] (TVLMasonry) Upload request failed with unsuccessfulResponse(status: 404). Left retries: 2.
@polac24 i'm not sure why the server return 413, since the docker already running when i open server URL from browser i get 403, can you help me to find how to test it and find the root cause,
can i use curl or postman to replicate it upload process?
Yes, curl is enough. After a build, in DerivedData, find a file with the same filename (e.g. c7818ebba957a0551b354a0efc649a99.zip
) and make a put request to the address, something like:
curl -X PUT -d @/your/file/path/c7818ebba957a0551b354a0efc649a99.zip https://mobxcrc.mob.com/file/c7818ebba957a0551b354a0efc649a99.zip -v
Hi @polac24 sorry for late update, i try to find the .zip file but i can not find it inside build directory
2023-05-15 14:41:21.628 E xcpostbuild[23123:202c5] (TVLMasonry) Postbuild step failed with error: Error Domain=NSCocoaErrorDomain Code=260 "The file “x86_64” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Users/dwi.herdinanto/Library/Developer/Xcode/DerivedData/Traveloka-babfgfgiwckmrifqhpynvvesrxsr/Index.noindex/Build/Intermediates.noindex/TVLMasonry.build/Debug-iphonesimulator/TVLMasonry.build/Objects-normal/x86_64, NSFilePath=/Users/dwi.herdinanto/Library/Developer/Xcode/DerivedData/Traveloka-babfgfgiwckmrifqhpynvvesrxsr/Index.noindex/Build/Intermediates.noindex/TVLMasonry.build/Debug-iphonesimulator/TVLMasonry.build/Objects-normal/x86_64, NSUnderlyingError=0x600000714420 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
I don't think i have changed my xcode setting, i just wondering why it use deriveddata/xxx/Index.noindex/Build/Intermediates.noindex/
instead of deriveddata/xxx/Build/Intermediates.noindex/
do you have idea about this? @polac24
Yes:
ACTION=indexbuild
xcodebuild
- then the ACTION=indexbuild
flow is not triggered. Hi @polac24 i have tried it to build using xcodebuild and i got the output
xcodebuild command
xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO \
-workspace "tvlk.xcworkspace" \
-scheme "Tvlk Staging" -configuration "Debug" CODE_SIGNING_ALLOWED=NO \
-sdk "iphonesimulator" \
clean build | xcpretty
xcremotecache log
2023-05-16 15:19:33.812 I xcprepare[20759:253e2] Network request failed with unsuccessful code 404
2023-05-16 15:19:33.812 I xcprepare[20759:253d8] No artifacts available
2023-05-16 15:20:18.382 E xclibtool[21263:25a9f] Failed with: missingOutput. Args: ["/Users/dwi.herdinanto/ios/Traveloka/tools/xcremotecache/xclibtool", "-V"]
i am not sure what is happened, do you know why?
That is probably because of Xcode 14.3, should be fixed in #205
That PR seems work, but i still have problem since i can not send artifact to my server
2023-05-17 13:46:17.143 I xcpostbuild[36453:54185] (youtube-ios-player-helper) Making upload request to https://mobxcrc.mob.development-traveloka.com/file/a4b086c36bfa25ee9ed1f2b5888f6499.zip with 0 retries.
2023-05-17 13:46:17.210 E xcpostbuild[36453:5467a] (youtube-ios-player-helper) Upload request failed: unsuccessfulResponse(status: 404)
2023-05-17 13:46:17.211 E xcpostbuild[36453:54182] (youtube-ios-player-helper) Postbuild step failed with error: unsuccessfulResponse(status: 404)
2023-05-17 13:46:17.211 E xcpostbuild[36453:54182] (youtube-ios-player-helper) Postbuild step failed unsuccessfulResponse(status: 404)
i also trying to upload manually via curl
curl -X PUT -d ./a4b086c36bfa25ee9ed1f2b5888f6499.zip https://mobxcrc.mob.com/file/a4b086c36bfa25ee9ed1f2b5888f6499.zip
output:
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.21.1</center>
</body>
</html>
since curl
fails, that looks like a problem with your backend nginx.
My integration setup
[x] CocoaPods cocoapods-xcremotecache plugin [ ] Automatic integration using
xcprepare integrate ...
[ ] Manual integration [ ] CarthageExpected/desired behavior Can build producer mode
Minimal reproduction of the problem with instructions run with xcodebuild
Producer Logs
Consumer Logs
Pods/Carthage file
Environment
gem list cocoapods-xcremotecache
>Post build stats
Others