New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Segment ERROR - finish(file:):320] Unable to rename to temp warning/error #162
Comments
Updated to 1.3.2, still happening. |
looking ... |
I'm unable to reproduce this. I'm using the example app located in analytics-swift/examples/apps/BasicExample.xcworkspace. From the looks of it, it seems to be failing to create the directory for the given writekey. Line 196 in Storage.swift. Can you see what the results of that are on your end? |
You might try the branch above and see if that helps any. |
Can you verify if those files or folders exist and those error messages are legit? |
Yes the directory with writeKey name does infact exist, thus the file name "14-segment-events" or is missing. |
I didn't quite understand that last part. You should have a 14-segment-events or a 14-segment-events.temp. |
I meant there is a directory created with the writeKey name but neither 14-segment-events nor 14-segment-events.temp is created. |
Are you able to create and write to files manually in that directory? |
Good point. Let me check this. |
hey! As you feared, no I cannot create manually too. Got this:
|
Ok, gotcha. So it's all explained now. I'm not sure why you have a read-only file system. Do you know? |
Idk. Apple ships it like this maybe? Anyway, so I got around making the root volume writable. Now i can make a directory/file manually in the writeKey named folder but I still get the message. |
Apple doesn't ship a readonly file system (not intentionally anyway). Closing this as I've merged the PR and it should be good. Please let me know if you see issues. I need lots of details about what you're seeing etc to further assist. |
Describe the bug
A clear and concise description of what the bug is.
Coming across a very weird debug message lately since the last update. The message appears around 20 secs post starting the app. The message says:
[Segment ERROR - finish(file:):320] Unable to rename to temp: file:///Users/chetanmalhotra/Library/Developer/CoreSimulator/Devices/094C9BEE-0AB5-4345-AB1D-2CA907B66033/data/Containers/Data/Application/1688B1EE-1CCC-44B7-AA72-FB7A9A272B3E/Documents/segment/XVFH4DGT0ufXKfxlMQzNMQDosdD9eKLW/7-segment-events, Error: Error Domain=NSCocoaErrorDomain Code=4 "“7-segment-events” couldn’t be moved to “XVFH4DGT0ufXKfxlMQzNMQDosdD9eKLW” because either the former doesn’t exist, or the folder containing the latter doesn’t exist." UserInfo={NSSourceFilePathErrorKey=/Users/chetanmalhotra/Library/Developer/CoreSimulator/Devices/094C9BEE-0AB5-4345-AB1D-2CA907B66033/data/Containers/Data/Application/1688B1EE-1CCC-44B7-AA72-FB7A9A272B3E/Documents/segment/XVFH4DGT0ufXKfxlMQzNMQDosdD9eKLW/7-segment-events, NSUserStringVariant=( Move ), NSDestinationFilePath=/Users/chetanmalhotra/Library/Developer/CoreSimulator/Devices/094C9BEE-0AB5-4345-AB1D-2CA907B66033/data/Containers/Data/Application/1688B1EE-1CCC-44B7-AA72-FB7A9A272B3E/Documents/segment/XVFH4DGT0ufXKfxlMQzNMQDosdD9eKLW/7-segment-events.temp, NSFilePath=/Users/chetanmalhotra/Library/Developer/CoreSimulator/Devices/094C9BEE-0AB5-4345-AB1D-2CA907B66033/data/Containers/Data/Application/1688B1EE-1CCC-44B7-AA72-FB7A9A272B3E/Documents/segment/XVFH4DGT0ufXKfxlMQzNMQDosdD9eKLW/7-segment-events, NSUnderlyingError=0x600001e34e40 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be no warnings/werrors
Screenshots
If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
Additional context
Kinda urgent. Pls help saviours
The text was updated successfully, but these errors were encountered: