-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
I2-bugThe node fails to follow expected behavior.The node fails to follow expected behavior.T0-nodeThis PR/Issue is related to the topic “node”.This PR/Issue is related to the topic “node”.
Description
Getting the following error after #1918:
Nov 24 15:44:09.323 ERROR parachain::pvf: failed to read dir "/tmp/.tmpxxQbgX" err=Os { code: 2, kind: NotFound, message: "No such file or directory" }
The PR has not been released yet, so we should find out whether this affects production (and also have a test to reproduce this).
The weird thing is, we do successfully create the dir beforehand with create_dir_all
. But I've reproduced the error from read_dir
on two machines already. 🤔
// Make sure that the cache path directory and all its parents are created.
if let Err(err) = tokio::fs::create_dir_all(cache_path).await {
// NOTE: This log is not in `master`, I added it to verify that the dir exists.
if err.kind() != io::ErrorKind::AlreadyExists {
gum::error!(
target: LOG_TARGET,
?err,
"failed to create dir {:?}",
cache_path,
);
return
}
}
let mut dir = match tokio::fs::read_dir(cache_path).await {
Ok(dir) => dir,
Err(err) => {
gum::error!(
target: LOG_TARGET,
?err,
"failed to read dir {:?}",
cache_path,
);
return
},
};
cc @eagr if you have any ideas. I'll try to get to it later today.
Metadata
Metadata
Assignees
Labels
I2-bugThe node fails to follow expected behavior.The node fails to follow expected behavior.T0-nodeThis PR/Issue is related to the topic “node”.This PR/Issue is related to the topic “node”.
Type
Projects
Status
Completed