CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Error in saving due to folder name?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2018, 11:01
Default Error in saving due to folder name?
  #1
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 10
daniel_pramudita is on a distinguished road
Hi all,

I am having problem everytime I tried to save my project in Fluent.
The problem appears to be similar to the one discussed in the following thread: Error writing compressed file during auto save. I tried all the suggested methods but none worked.

Later I noticed that in the console window (which show the log of all actions executed by the program), something seems off. Just before the following error line:

Error: Error writing compressed file "FFF-1.cas.gz"

there were these two lines:

C:\Users\Main: No such file or directory
Admin\AppData\Local\Temp\flntgz-16322: No such file or directory


"Main Admin" is the name of administrator user folder in the computer I'm using, so the full folder name should be C:\Users\Main Admin\AppData\Local\Temp\flntgz-16322. I suspect the space between words is the culprit, so that the full folder name is not recognised.

Did anyone ever experience this problem? Can someone give some suggestion to solve it?

I am using Fluent 17.2 on Windows 10.
daniel_pramudita is offline   Reply With Quote

Old   January 5, 2018, 12:50
Default
  #2
New Member
 
R. Kim Eadies's Avatar
 
Join Date: Jan 2018
Posts: 11
Rep Power: 10
R. Kim Eadies is on a distinguished road
Hello Daniel,

I have never used the autosave feature myself, but based on the thread you linked and the fact that your two error lines are split right where the space is, I think it's safe to say that you are correct about the cause of the error.

I assume it isn't an option to change the name of the user folder, so the only other obvious solution would be to change the save location in the Autosave dialog box to a valid path. I am not aware of a way to get around what the software views as an invalid path.

Best of luck,
Alan
__________________
"The more you do what you're already doing, the more you'll get what you've already got."
R. Kim Eadies is offline   Reply With Quote

Old   January 5, 2018, 14:13
Default
  #3
DEd
Member
 
Daniel Edebro
Join Date: Feb 2016
Location: Gothenburg
Posts: 41
Rep Power: 11
DEd is on a distinguished road
2018 and Ansys Fluent still doesn't handle spaces in file names? WTF?

(Sorry for the short rant)
DEd is offline   Reply With Quote

Old   January 5, 2018, 20:32
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,845
Rep Power: 68
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by R. Kim Eadies View Post
I assume it isn't an option to change the name of the user folder, so the only other obvious solution would be to change the save location in the Autosave dialog box to a valid path.
The path is to the tmp dir so changing the save location in the Fluent will not fix the issue. My understanding is that Fluent saves the uncompressed file as flntgz-16322 and then pipes it to the gunzip utility. When gunzip tries to find this file, it can't and then breaks. But if it did work, gunzip would then create the compressed file in the actual save directory and then delete the temporary file.

One thing you can do is change the user's env var for TEMP and write the temporary files to a location that gunzip will recognize, see this article:changing TEMP

The user TEMP is usually "%USERPROFILE%\AppData\Local\Temp"

But since you are changing an env var, it might break other programs. Use with care.

Quote:
Originally Posted by DEd View Post
2018 and Ansys Fluent still doesn't handle spaces in file names? WTF?
=( Yes. But gzip is GNU zip & GNU is not designed to handle spaces.
LuckyTran is offline   Reply With Quote

Old   January 6, 2018, 05:50
Default
  #5
DEd
Member
 
Daniel Edebro
Join Date: Feb 2016
Location: Gothenburg
Posts: 41
Rep Power: 11
DEd is on a distinguished road
Try using the short DOS path name

Main Admin = MAINAD~1
DEd is offline   Reply With Quote

Old   January 10, 2018, 12:00
Default Thank you
  #6
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 10
daniel_pramudita is on a distinguished road
Quote:
Originally Posted by R. Kim Eadies View Post
Hello Daniel,

I have never used the autosave feature myself, but based on the thread you linked and the fact that your two error lines are split right where the space is, I think it's safe to say that you are correct about the cause of the error.

I assume it isn't an option to change the name of the user folder, so the only other obvious solution would be to change the save location in the Autosave dialog box to a valid path. I am not aware of a way to get around what the software views as an invalid path.

Best of luck,
Alan
Hi Allan,

Thank you your suggestion. I started moving all the working folder to prevent such issue from occurring again.

Regards,
Daniel
daniel_pramudita is offline   Reply With Quote

Old   January 10, 2018, 12:03
Default
  #7
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 10
daniel_pramudita is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
The path is to the tmp dir so changing the save location in the Fluent will not fix the issue. My understanding is that Fluent saves the uncompressed file as flntgz-16322 and then pipes it to the gunzip utility. When gunzip tries to find this file, it can't and then breaks. But if it did work, gunzip would then create the compressed file in the actual save directory and then delete the temporary file.

One thing you can do is change the user's env var for TEMP and write the temporary files to a location that gunzip will recognize, see this article:changing TEMP

The user TEMP is usually "%USERPROFILE%\AppData\Local\Temp"

But since you are changing an env var, it might break other programs. Use with care.

=( Yes. But gzip is GNU zip & GNU is not designed to handle spaces.
Hi Tran,

Yes you're right, the gzip has some limitations and thats one of them. I recently found that it has serious compatibility issue with windows 10. It always fails to open. What I finally did is to compress the case and data file MANUALLY to .gzip using another compression software.

Regards,

Daniel
daniel_pramudita is offline   Reply With Quote

Old   January 12, 2018, 17:44
Default
  #8
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,845
Rep Power: 68
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by daniel_pramudita View Post
Yes you're right, the gzip has some limitations and thats one of them. I recently found that it has serious compatibility issue with windows 10. It always fails to open.
The fix for gunzip not working at all is to replace the one that comes with the Ansys installation with the gunzip from gzip.org. This fix was explained in the last post in the thread you linked to.

Well I suppose not using gunzip is a workaround...
LuckyTran is offline   Reply With Quote

Old   January 15, 2018, 12:09
Default Solved
  #9
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 10
daniel_pramudita is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
The fix for gunzip not working at all is to replace the one that comes with the Ansys installation with the gunzip from gzip.org. This fix was explained in the last post in the thread you linked to.

Well I suppose not using gunzip is a workaround...
Yes, I did as suggested, but still it did not work. Finally I did a start refresh of my windows and reinstall the software. Now it's okay (with the gunzip provided by ANSYS installer), though I still dont understand what the problem was.
daniel_pramudita is offline   Reply With Quote

Old   November 28, 2019, 02:48
Smile
  #10
Member
 
Join Date: Oct 2019
Posts: 35
Rep Power: 8
Morice is on a distinguished road
Quote:
Originally Posted by daniel_pramudita View Post
Yes, I did as suggested, but still it did not work. Finally I did a start refresh of my windows and reinstall the software. Now it's okay (with the gunzip provided by ANSYS installer), though I still dont understand what the problem was.
Daniel was right. The 'culprit' was the folder name. Gunzip saves the uncompressed file in the temp folder before compressing it to case.gz and data.gz. For some strange reason, gunzip is unable to read spaces and special characters even on the main folder that contains the temp folder. In my situation, my computer user name was Morice O. O. and as such, the directory path of the temp file was C:\Users\Morice O. O.\AppData\Local\Temp.

The Autosave in Fluent always gave the error

"O.: No such file or directory
O.\AppData\Local\Temp\flntgz-203242: No such file or directory. Warning: Error in writing compressed file "ICM-Setup-Output.cas.gz".

The problem was the space in between the O. O. and not my gzip.exe as it was working okay. Zipped a text file in cmd prompt and it successfully zipped the file. I tried to create another path for the temp files but ANSYS and Fluent were not able to run as some of their files were located in the Morice O. O. folder.

Finally, I created another user account that had administrator privileges on the same computer called Morice. Ran Fluent on this account and gzip was able to successfully zip the data and case files.

I apologize for the long post
Morice is offline   Reply With Quote

Old   March 29, 2023, 00:55
Default
  #11
New Member
 
Liam Flint
Join Date: Mar 2023
Posts: 1
Rep Power: 0
LiamFlint is on a distinguished road
Hello, are you fix this?
LongPathTool is the most user-friendly solution for resolving issues with long paths file on Windows and Mac.
LiamFlint is offline   Reply With Quote

Old   November 13, 2025, 14:01
Default
  #12
New Member
 
ahsan sardar
Join Date: Nov 2025
Posts: 1
Rep Power: 0
chester22 is on a distinguished road
You can try using a tool like LongPathTool. It helps manage and delete files or folders with long path issues easily.
chester22 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy/write a same volVectorField to every time step folder hy1112006 OpenFOAM Programming & Development 0 April 18, 2016 23:33
[OpenFOAM.org] one folder for external utilities student666 OpenFOAM Installation 1 May 24, 2015 10:40
icoFsiFoam folder structure OF 2.2.1 philipp1 OpenFOAM Running, Solving & CFD 1 January 25, 2014 18:08
I want to arrange all source file into Single Folder :Debate Urgent Help hhh OpenFOAM 3 July 27, 2013 06:15
[snappyHexMesh] Folder structure from snappyHexMesh elisenda OpenFOAM Meshing & Mesh Conversion 3 January 6, 2010 04:52


All times are GMT -4. The time now is 05:49.