Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


EduardW
2015-08-10T11:00:42Z
Hi team,

how you see in description, i don't know why i get after extraction .txt.tar files.
Aim is having .txt files.

Any ideas?

Best regards,
Eduard
Sponsor
Forum information
ErikC
2015-08-10T11:09:13Z
Hi,

I think there is a part missing from your post. Please rephrase your question.

Regrdas,
Erik
Uses Visualcron since 2006.
EduardW
2015-08-10T11:57:41Z
Yes, of course. Sorry!
Having a folder full of files with name abcd.txt.gz, i want to extract these to get the files unzipped, exactly as abcd.txt.
But extracting with the extract task and extracting type GZip results in abcd.txt.tar files.
Maybe there is a solution to solve this Problem with one task, but i haven't any ideas how to realize.

My attempt to solve this with two tasks failed, too. After the first extract task i place another extract task with "TAR" as type with following error:
Quote:

Exception in Task: System.InvalidOperationException: Cannot determine compressed stream type.
bei SharpCompress.Archive.ArchiveFactory.Open(FileInfo fileInfo, Options options)
bei OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.IJDAGFJMLJFNHKOCGKCOJOBFEPMLKABILLJK.CDJMFGBLNJDPDEJFDKHPAHBBBBMJAIAOLEGJ() in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\File\Archive\clsProcessTaskArchiveDecompress.vb:Zeile 173. - file: C:\...\abcd.txt.tar



Then i tried with three tasks.
1. extract from .txt.gz to .txt.tar
2. List (tar)-files
3. rename (tar)-files (with Loop)
2015-08-10_134143.png 2015-08-10_134120.png

With the function GetFileNameWithoutExtension i get the Filename without the extension, so abcd.txt.

But this way results in following error:
Quote:

Exception in Task: Error 32 moving file 'C:\...\abcd.txt.tar' to 'C:\...\abcd.txt': process haven't access to file because of using in other process.



Hope this description is more helpfully.
thomas
2015-08-10T14:03:20Z
Have you tried the one that is called Tar + GZip?

thomas

EduardW
2015-08-10T14:19:16Z
Yes Thomas, i tried.

The output isn't comprehensible for me:
Quote:

Exception in Task: the file "C:\Windows\TEMP\[no name]" was not found.



But i defined static paths for source and destination folders:
2015-08-10_161721.png 2015-08-10_161748.png

So no reason for this output..

Best regards,
Eduard
thomas
2015-08-10T15:42:20Z
If the data in the files are not sensitive, you could perhaps upload the gzip file so we could look at it. If not, I would try to download a program like 7-zip and try to extract the files. It's a way to find out if there is something wrong with the zipped files, a bug in VC, or something else.


thomas
EduardW
2015-08-11T06:46:24Z
The files are sadly sensitive..
But i've tested some things now:

1. downloaded 7-zip and try to extract the files with this programm -> successfully
2. create a test.txt.gz file with content "test" und try to extract the same way i extracted the other files in VC, so with task extract files -> successfully

If i'm right, the quintessence is that VC have problems especially with these files, but a program like 7-Zip haven't.

Is it possible, that the problem causes by size limit of the extract task?
The size of my txt file after extracting is 15 kB..what is not extraordinary.

Maybe i can change some details of an example file and post it.
Will looking for possibilities.

Best regards,
Eduard
ErikC
2015-08-11T06:46:41Z
Hi,

I downloaded a random test.tar.gz  file from the internet and I tested with the latest beta version 7.7.4
When I use the GZip unzip method, it extracts the tar file from it, so that works fine, but the output gives me the ouput folder with [no name] at the end, like this: F:\extractionpath\[no name]
I don't know why the [no name] is there, but the tar file in in the extraction path.

After that you can use the Tar archive type to extrat the Tar file. This also works and the output contains all the files.

You want to combine the two by using the Tar+GZip archive type, but than I receive an error:
Exception in Task: System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\TEMP\[no name]'.
File name: 'C:\WINDOWS\TEMP\[no name]'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at SevenZip.FileChecker.CheckSignature(String fileName, Int32& offset, Boolean& isExecutable)
   at SevenZip.SevenZipExtractor.Init(String archiveFullName)
   at SevenZip.SevenZipExtractor..ctor(String archiveFullName)
   at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.IJDAGFJMLJFNHKOCGKCOJOBFEPMLKABILLJK.CDJMFGBLNJDPDEJFDKHPAHBBBBMJAIAOLEGJ() in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\File\Archive\clsProcessTaskArchiveDecompress.vb:line 118

So I believe there is an issue here that needs to be solved by the Visualcron team to make this work.

To make it work for you now till this is fixed, use two tasks: 1) extract using GZip and 2) extract using the Tar method.

Regards,
Erik
Uses Visualcron since 2006.
Support
2015-08-11T08:07:16Z
Thanks for the report!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
EduardW
2015-08-11T08:27:33Z
Yes Erik,
i had the same error.

But still dont't understand, why the resulting file if i extract a *.txt.gz file with GZip method in VC is a *.txt.tar file...

And extracting this *.txt.tar file with VC and method tar results always in error:
Quote:

Exception in Task: System.InvalidOperationException: Cannot determine compressed stream type.
bei SharpCompress.Archive.ArchiveFactory.Open(FileInfo fileInfo, Options options)
bei OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.IJDAGFJMLJFNHKOCGKCOJOBFEPMLKABILLJK.CDJMFGBLNJDPDEJFDKHPAHBBBBMJAIAOLEGJ() in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\File\Archive\clsProcessTaskArchiveDecompress.vb:Zeile 173. - file: C:\..\abcd.txt.tar



Could anybody explain?
ErikC
2015-08-11T09:27:09Z
Hi Eduard,

I think the GZip file is renamed from ...tar.gz to ...txt.gz
The gZip file contains one Tar file and the Tar file contains all the txt files.

You could rename a file and make people believe they expect things...

Regards,
Erik
Uses Visualcron since 2006.
thomas
2015-08-11T09:29:04Z
a gzip file is a compressed tar file, so you will end up with tar files when you decompress. see http://info.eps.surrey.ac.uk/FAQ/unpack.html 

Until the VC team have had a chance to look at this, I would just use 7zip in a command line task to solve this problem.

thomas
Support
2015-09-21T20:23:46Z
This has now been fixed in this build: http://www.visualcron.co....aspx?g=posts&t=5159 

There are some output problems (listing extracted files) which will be fixed for the upcoming build but extraction should work now.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top