Skip to content
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

p7zip Error 2 on file (not over 4GB) #27

Closed
klou opened this issue Feb 17, 2017 · 32 comments
Closed

p7zip Error 2 on file (not over 4GB) #27

klou opened this issue Feb 17, 2017 · 32 comments
Assignees

Comments

@klou
Copy link

klou commented Feb 17, 2017

From #18

(github won't let me upload *.7z)

  1. Download file from Compile under OSX, Psi+.app is damaged or incomplete psi-plus/main#677 (comment) (direct link https://dl.stigger.psihaven.com/files/d9d50a1d-48f0-4380-be30-b7e8d1ef496b/psi-plus-0.16.571.637.zip)
  2. Unzip it to extract psi-plus.app
  3. Open Keka 1.0.8, choose 7z format with maximum compression/slowest speed
  4. Create archive of psi-plus.app (as psi-plus.7z) via drag and drop
  5. Attempt to extract from newly created psi-plus.7z

Error code 2 using "p7zip"

@klou
Copy link
Author

klou commented Feb 17, 2017

Also, the "original" *.7z archive is destroyed by this error.

@aonez
Copy link
Owner

aonez commented Feb 18, 2017

Can't reproduce it. Which Mac OS are you using? Can you enable the console output of Keka and share what you get with the extraction? Here how to enable it: http://trac.kekaosx.com/wiki/EnableDevLog

It just happens with this file or repeating the same procedure with another file causes the same issue?

@aonez aonez self-assigned this Feb 18, 2017
@klou
Copy link
Author

klou commented Feb 18, 2017

Hm. I can extract successfully on my home machine. Both are 10.12.3. I'll get you the log on Monday.

@aonez
Copy link
Owner

aonez commented Feb 19, 2017

There's any big hardware difference between the two Macs?

Maybe the Keka preferences file got corrupted. You can try this steps on the Terminal (you can also use Finder to do those).

First make a backup of the file, since if it is the crash cause I'll like to take a look at it:

cp /Users/<USERFOLDER>/Library/Preferences/com.aone.keka.plist /Users/<USERFOLDER>/Desktop/com.aone.keka.plist.bk

And then delete the preferences file:

rm /Users/<USERFOLDER>/Library/Preferences/com.aone.keka.plist

Reopen Keka and see if it still crashes. If not, just zip the backup file and upload it here :)

@klou
Copy link
Author

klou commented Feb 20, 2017

This error is on a C2D 2.4 White Unibody Macbook (my working machine at home is a 2011 MBA).

default	09:13:22.085185 -0800	Keka	Arguments: (
    x,
    "/Users/klou/Downloads/psi-plus.7z",
    "-o/Users/klou/Downloads/psi-plus.7z",
    "-aou",
    "-xr!__MACOSX"
)
default	09:13:22.085329 -0800	Keka	Binary used: keka7z
default	09:13:22.193506 -0800	Keka	Extraction output: 

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,2 CPUs x64)
Modified by aONe for Keka

Scanning the drive for archives:
  0M Scan /Users/klou/Downloads/
default	09:13:22.214978 -0800	Keka	Extraction output: 
��������������������������������                                ��������������������������������1 file, 17766623 bytes (17 MiB)

Extracting archive: /Users/klou/Downloads/psi-plus.7z
--
Path = /Users/klou/Downloads/psi-plus.7z
Type = 7z
Physical Size = 17766623
Headers Size = 16444
Method = Delta LZMA2:26 LZMA:20 BCJ2
Solid = +
Blocks = 5

  0%
default	09:13:22.248143 -0800	Keka	Extraction output: 
����    ����  0% 100 . psi-plus.app/Contents/Resources/empty.lproj
default	09:13:22.248443 -0800	Keka	Extraction output: 
ERROR: Can not open output file : Not a directory : /Users/klou/Downloads/psi-plus.7z/psi-plus.app/Contents/Resources/empty.lproj
default	09:13:22.588404 -0800	Keka	Extraction output: 
������������������������������������������������������                                                      ������������������������������������������������������  5% 101
default	09:13:22.691613 -0800	Keka	Extraction output: 
��������        ��������

etc.

Running the keka7z binary + arguments directly, I noticed the following:

  1. The arguments are reading the source archive and the destination path as the same -- and that's the source of the errors. If I change the destination (in this case, to psi-plus instead of psi-plus.7z), it'll extract
  2. Perhaps unrelated, but the final argument -xr!__MACOSX causes it to fail.

I also happen to have the Keka Preferences open right now, and I notice that the Extraction->Extract to Location field is blank. I wonder if this is messing up the output path?

I AM managing via a configuration profile, but only these fields:

PayloadContent =     {
        "com.aone.keka" =         {
            "Set-Once" =             (
                                {
                    "mcx_data_timestamp" = "2016-06-21 21:58:53 +0000";
                    "mcx_preference_settings" =                     {
                        GrowlBlocksExit = 0;
                        KekaFirstStart = 0;
                        SUEnableAutomaticChecks = 0;
                        SUHasLaunchedBefore = 1;
                        SUSendProfileInfo = 1;
                        SelectedTab = 7z;
                        SelectedTabDefaults = Compression;
                        SolidArchive = 1;
                        UseGrowl = 1;
                        Version = 740;
                    };
                }
            );

It's also a Set-Once (way back when, so I should remove that Version key and a few other items), but that should affect the strings.

@klou
Copy link
Author

klou commented Feb 20, 2017

Manually toggling that preference (Next to original File) does nothing, and it still fails. Also, this preference does not show under Managed Client, so it isn't being actively managed.

@klou
Copy link
Author

klou commented Feb 20, 2017

I trashed the profile as well as my ~/Library/Preferences/com.aone.keka.plist, restarted, and was able to extract the archive. It has to be something with the config profile, so feel free to close this (unless there's something else to chase down).

Thanks!

@aonez
Copy link
Owner

aonez commented Feb 20, 2017

@klou thanks for all that info and the time to check it all! So you've used the configuration profile only in the white unibody. This is now the same as #15 (where #18 also started hehe). I must rework the settings handling for those of you who like to preconfigure Keka 👍

Here you have a little explanation, but basically setting the version in that profile implies adding all the configuration or having a corrupt one. Not adding the version makes almost all of the pre-configuration ignored. So +1 for the rework.

@aonez aonez closed this as completed Feb 20, 2017
@t3db0t
Copy link

t3db0t commented Jun 10, 2018

Hi all, I'm getting this error but it's unclear what the resolution of this thread is. The file in question is 20.6MB; there's a chance it could be corrupted but I doubt it, and I don't have any way of knowing one way or the other. Is there any hope? Removing the plist did not help.

@aonez
Copy link
Owner

aonez commented Jun 10, 2018

@t3db0t can you share the file?

@t3db0t
Copy link

t3db0t commented Jun 10, 2018

@aonez Done—thank you!

@briatte
Copy link

briatte commented Aug 8, 2018

Keka recently started to fail systematically for me, at least with ZIP files.

I'm using Mac OS X 10.9.5, but will soon upgrade, since more and more software is getting erratic on 10.9.x.

DevLog

keka7z(26304) deny file-read-data /Users/fr/Downloads

Process:         keka7z [26304]
Path:            /Applications/Keka.app/Contents/Resources/keka7z
Load Address:    0x104d7a000
Identifier:      keka7z
Version:         ??? (???)
Code Type:       x86_64 (Native)
Parent Process:  Keka [26268]

Date/Time:       2018-08-09 01:27:21.358 +0200
OS Version:      Mac OS X 10.9.5 (13F1911)
Report Version:  8

Thread 0:
0   libsystem_kernel.dylib        	0x00007fff961a1622 __open_nocancel + 10
1   keka7z                        	0x0000000104dd3789 NWindows::NFile::NFind::CFindFile::FindFirst(wchar_t const*, NWindows::NFile::NFind::CFileInfo&, bool) + 393
2   keka7z                        	0x0000000104dd3d81 NWindows::NFile::NFind::CFileInfo::Find(wchar_t const*, bool) + 65
3   keka7z                        	0x0000000104d9aef9 EnumerateDirItems(NWildcard::CCensorNode const&, int, int, UString const&, CObjectVector<UString> const&, CDirItems&, bool) + 2169
4   keka7z                        	0x0000000104d9a582 EnumerateItems(NWildcard::CCensor const&, NWildcard::ECensorPathMode, UString const&, CDirItems&) + 178
5   keka7z                        	0x0000000104d86e5a EnumerateDirItemsAndSort(NWildcard::CCensor&, NWildcard::ECensorPathMode, UString const&, CObjectVector<UString>&, CObjectVector<UString>&, CDirItemsStat&, IDirItemsCallback*) + 90
6   keka7z                        	0x0000000104dc24a1 Main2(int, char**) + 5745
7   keka7z                        	0x0000000104dc5213 main + 67
8   libdyld.dylib                 	0x00007fff95e315fd start + 1

Binary Images:
       0x104d7a000 -        0x104debff3  keka7z (0) <6f79909e-4090-3f44-aed7-4d6a973f0031> /Applications/Keka.app/Contents/Resources/keka7z
    0x7fff95e2e000 -     0x7fff95e31ff7  libdyld.dylib (239.5) <cae7a50d-f156-3d47-81c0-dc41eb975d38> /usr/lib/system/libdyld.dylib
    0x7fff9618c000 -     0x7fff961a8ff7  libsystem_kernel.dylib (2422.115.15) <34abaf79-e147-3c34-b05d-46a566e689cc> /usr/lib/system/libsystem_kernel.dylib

Info on keka7z

~$ /Applications/Keka.app/Contents/Resources/keka7z

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)
Modified by aONe for Keka

Example ZIP file

https://cdn1.sph.harvard.edu/wp-content/uploads/sites/1268/2015/08/stata_part2.zip

@aonez
Copy link
Owner

aonez commented Aug 9, 2018

@briatte are you using the latest version of Keka? If you revert to an older version it still fails? I'm preparing a 10.9 environment to test.

@aonez
Copy link
Owner

aonez commented Aug 9, 2018

@briatte reproduced it with latest 1.1.2 version.

@aonez
Copy link
Owner

aonez commented Aug 9, 2018

@briatte will continue the issue you've reported on #257.

@briatte
Copy link

briatte commented Aug 9, 2018

Thanks for following up, and for the full report in #257.

If you revert to an older version it still fails?

I guess not -- everything was fine before.

I just need to update the OS. Keka is not the only piece of software that is not working properly anymore on 10.9 (starting with Chrome, which is a security liability).

@aonez
Copy link
Owner

aonez commented Aug 9, 2018

Thanks a lot @briatte. I'll try to fix it anyway, but for sure updating to the latest supported OS for your machine is always a good idea :)

@hbast
Copy link

hbast commented Aug 16, 2018

I got this bug now for month... can't remember the time, when keka was running without that error.
I'm on OS X 10.12.6 and keka v1.1.3

Is there a way to provide you some kind of log file?

@aonez
Copy link
Owner

aonez commented Aug 16, 2018

@hbast just a hunch, close Keka, open the Terminal.app and delete it's preferences with this command:

rm -r ~/Library/Containers/com.aone.keka

Open Keka again and see if it works. If not, here you can see how to enable logging:

https://github.com/aonez/Keka/wiki/Console-verbose

@hbast
Copy link

hbast commented Aug 16, 2018

Thanks! That worked for me!
First I deleted ~/Library/Preferences/com.aone.keka.plist but this didn't solve the problem!

@csydas
Copy link

csydas commented Oct 29, 2018

Would like to add that I was experiencing this, and non-latin characters in the filename were causing the issue for me.

I had a compressed file l11vilkenläkare2, and the umlaut was throwing the problem. By changing to a, it works for me on the file.

@aonez
Copy link
Owner

aonez commented Oct 29, 2018

@csydas can't reproduce it. Can you share that file? Was it a ZIP?

@csydas
Copy link

csydas commented Oct 30, 2018

Hi, sure. The file is here: https://mega.nz/#!bTgVmaiY!ZChfQHfjZ40Cc_HRSXqQKjhgo7XjQWVnY9sgB5nmxwI

it is .7z, ~ 330 MB.

@aonez
Copy link
Owner

aonez commented Oct 30, 2018

@csydas thanks! It is password protected though...

@csydas
Copy link

csydas commented Oct 31, 2018

If you're getting to a password prompt you are getting further than I am, as immediately opening the file resulted in the error for me.. I must be on an out of date version or something. Please disregard then and thank you for your time.

@aonez
Copy link
Owner

aonez commented Nov 1, 2018

@csydas if you replicate this again let me know! Maybe it was a problem with the file access rather than the filename.

@joelbudgor
Copy link

Encountered this problem for the first time today trying to compress a zip on a 2012 Macbook Pro Retina running Mojave 10.14.5. Tried it with a 42 character password it failed. Tried it with shorter passwords, (e.g. 32 characters) it succeeded.

@aonez
Copy link
Owner

aonez commented Sep 16, 2019

@joelbudgor can't reproduce this one. Can you try to replicate and open a new issue sharing the password that fails for you? It may be due to some characters in it rather than its size.

@joelbudgor
Copy link

joelbudgor commented Sep 16, 2019 via email

aonez pushed a commit that referenced this issue May 11, 2022
@andresmoraes
Copy link

Hi, i got this error:

OS: Versão 12.5 (Compilação 21G72) (x86_64)
Keka: v1.2.55-r5009 (WEB) (Sandboxed) (pt-BR)
Format detected: Unknown
Binary used: keka7zz
Arguments: (
x,
"/Users/xandre/Downloads/Mega Wordpress Elementor.Bundled Course 5 Courses Included.part1.rar",
"-o/Users/xandre/Downloads/Mega Wordpress Elementor.Bundled Course 5 Courses Included.part1.kextraction/Operation",
"-snld",
"-aou",
"-xr!__MACOSX",
"-bsp1"
)

7-Zip (z) 22.00 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-06-15 : Modified by aone for Keka
64-bit locale=en_US.UTF-8 Threads:8

Scanning the drive for archives:
0M Scan /Users/xandre/Downloads/

1 file, 5368709120 bytes (5120 MiB)

Extracting archive: /Users/xandre/Downloads/Mega Wordpress Elementor.Bundled Course 5 Courses Included.part1.rar
0% Open 0%����
ERROR: /Users/xandre/Downloads/Mega Wordpress Elementor.Bundled Course 5 Courses Included.part1.rar
Cannot open the file as archive

Can't open as archive: 1
Files: 0
Size: 0
Compressed: 0

Error code 2

How to solve?

@gingerbeardman
Copy link
Contributor

gingerbeardman commented Jul 25, 2022

*.part1.rar is part one of an archive, perhaps you have not downloaded all parts or one of the parts is corrupt.

Contact Udemy for support on your course purchase.

@aonez
Copy link
Owner

aonez commented Jul 25, 2022

@andresmoraes the file is not detected as RAR.

Format detected: Unknown

So most probably it's an empty file or a damaged file. Download it again.

Create a new ticket if the issue persists and you're sure it is a valid file.

Repository owner locked as resolved and limited conversation to collaborators Jul 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants