Can not import private key (Not enough space)
Moses
moses.mason at gmail.com
Wed Apr 10 07:35:04 CEST 2024
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
Thank you for your continued follow-up. I executed commands. Here are
the results:
C:\>gpgconf -V
* GnuPG 2.4.5 (cbff323b3)
MingW32
Windows 10.0 build 19045
* Libgcrypt 1.10.3 (aa161086)
version:1.10.3:10a03:1.48:13000:
cc:100000:gcc:10-win32 20210110:
ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:idea:salsa20:gost28147:chacha20:sm4:
pubkeys:dsa:elgamal:rsa:ecc:
digests:crc:gostr3411-94::md4:md5:rmd160:sha1:sha256:sha512:sha3:tiger:whirlpool:stribog:blake2:sm3:
rnd-mod:w32:
cpu-arch:x86:
mpi-asm:i386/mpih-add1.S:i386/mpih-sub1.S:i386/mpih-mul1.S:i386/mpih-mul2.S:i386/mpih-mul3.S:i386/mpih-lshift.S:i386/mpih-rshift.S:
hwflist:intel-cpu:intel-bmi2:intel-ssse3:intel-sse4.1:intel-pclmul:intel-aesni:intel-rdrand:intel-avx:intel-avx2:intel-fast-vpgather:intel-rdtsc:
fips-mode:n:::
rng-type:standard:1:3030000:1:
compliance:::
* GpgRT 1.48 (77b7c5f)
* Libassuan 2.5.7 (cc2f776)
* KSBA 1.6.6 (3a43822)
* NTBTLS 0.3.2 (2c38007)
C:\>gpgconf -X
### Dump of all standard config files
### GnuPG 2.4.5 (cbff323b3)
### MingW32
### [VERSION file not found]
### Windows 10.0 build 19045
### Libgcrypt 1.10.3
### GpgRT 1.48
### Codepages: 65001 936 936
###
sysconfdir:C%3a\ProgramData\GNU\etc\gnupg
bindir:D%3a\software\GNU\Gpg4win\..\GnuPG\bin
libexecdir:D%3a\software\GNU\Gpg4win\..\GnuPG\bin
libdir:D%3a\software\GNU\Gpg4win\..\GnuPG\lib\gnupg
datadir:D%3a\software\GNU\Gpg4win\..\GnuPG\share\gnupg
localedir:D%3a\software\GNU\Gpg4win\..\GnuPG\share\locale
socketdir:C%3a\Users\███\AppData\Local\gnupg
dirmngr-socket:C%3a\Users\███\AppData\Local\gnupg\S.dirmngr
keyboxd-socket:C%3a\Users\███\AppData\Local\gnupg\S.keyboxd
agent-ssh-socket:C%3a\Users\███\AppData\Local\gnupg\S.gpg-agent.ssh
agent-extra-socket:C%3a\Users\███\AppData\Local\gnupg\S.gpg-agent.extra
agent-browser-socket:C%3a\Users\███\AppData\Local\gnupg\S.gpg-agent.browser
agent-socket:C%3a\Users\███\AppData\Local\gnupg\S.gpg-agent
homedir:C%3a\Users\███\AppData\Roaming\gnupg
PATH=D:\software\VMware\bin\;C:\Program Files\Common
Files\Oracle\Java\javapath;C:\Program
Files\Microsoft\jdk-11.0.12.7-hotspot\bin;C:\Program Files
(x86)\Common Files\Intel\Shared
Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
Files\dotnet\;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client
SDK\ODBC\170\Tools\Binn\;D:\software\GNU\GnuWin32\bin;D:\software\Git\cmd;D:\software\Python\Python39\Scripts;D:\software\Python\Python39\;D:\software\emacs\bin;C:\Program
Files\Azure Data Studio\bin;C:\Program Files\Microsoft SQL
Server\150\Tools\Binn\;C:\Users\███\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\███\App;D:\software\Calibre\;C:\Program
Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files
(x86)\cloudflared\.;D:\software\GNU\Gpg4win\..\GnuPG\bin;C:\Program
Files\WireGuard\;C:\Users\███\AppData\Local\Programs\Python\Python310\;C:\Users\███\AppData\Local\Microsoft\WindowsApps;C:\Users\███\.dotnet\tools;C:\Program
Files\Azure Data
Studio\bin;D:\software\Google\CloudSDK\google-cloud-sdk\bin
###
### global config "C:\ProgramData\GNU\etc\gnupg\common.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\common.conf": not installed
###
###
### global config "C:\ProgramData\GNU\etc\gnupg\gpg-agent.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\gpg-agent.conf"
###
- --8<---------------cut here---------------start------------->8---
###+++--- GPGConf ---+++###
verbose
verbose
debug-level guru
###log-file C:\Users\███\AppData\Roaming\gnupg\gpg-agent.log
###+++--- GPGConf ---+++### 03/08/24 12:14:59 Coordinated Universal Time
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
- --8<---------------cut here---------------end--------------->8---
###
### global config "C:\ProgramData\GNU\etc\gnupg\scdaemon.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\scdaemon.conf"
###
- --8<---------------cut here---------------start------------->8---
###+++--- GPGConf ---+++###
verbose
verbose
verbose
verbose
verbose
###+++--- GPGConf ---+++### 03/08/24 10:46:59 Coordinated Universal Time
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
- --8<---------------cut here---------------end--------------->8---
###
### global config "C:\ProgramData\GNU\etc\gnupg\dirmngr.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\dirmngr.conf"
###
- --8<---------------cut here---------------start------------->8---
###+++--- GPGConf ---+++###
#allow-version-check
allow-version-check
honor-http-proxy
keyserver hkps://keys.openpgp.org
verbose
verbose
debug-level advanced
###+++--- GPGConf ---+++### 03/08/24 12:15:00 Coordinated Universal Time
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
- --8<---------------cut here---------------end--------------->8---
###
### global config "C:\ProgramData\GNU\etc\gnupg\gpg.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\gpg.conf"
###
- --8<---------------cut here---------------start------------->8---
###+++--- GPGConf ---+++###
utf8-strings
auto-key-locate local
max-cert-depth 6
keyserver hkps://keys.openpgp.org
verbose
verbose
###+++--- GPGConf ---+++### 03/08/24 12:11:57 Coordinated Universal Time
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
- --8<---------------cut here---------------end--------------->8---
###
### global config "C:\ProgramData\GNU\etc\gnupg\gpgsm.conf": not installed
###
###
### local config "C:\Users\███\AppData\Roaming\gnupg\gpgsm.conf"
###
- --8<---------------cut here---------------start------------->8---
###+++--- GPGConf ---+++###
verbose
verbose
verbose
verbose
verbose
auto-issuer-key-retrieve
###+++--- GPGConf ---+++### 03/08/24 12:14:59 Coordinated Universal Time
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
- --8<---------------cut here---------------end--------------->8---
###
### Registry entries:
###
###
### GnuPG Desktop related:
### HKLM\Software\Gpg4win:Install Directory
### ->D:\software\GNU\Gpg4win<-
###
C:\>gpgconf -K all
C:\>cd %APPDATA%
C:\Users\███\AppData\Roaming>ren gnupg gnupg.save
C:\Users\███\AppData\Roaming>cd %LOCALAPPDATA%
C:\Users\███\AppData\Local>ren gnupg gnupg.save
C:\Users\███\AppData\Local>cd \
C:\>gpg --import private-keys.asc
gpg: C:\\Users\\███\\AppData\\Roaming\\gnupg\\trustdb.gpg: trustdb created
gpg: key ███████████████████████████ imported
gpg: key █████████: error sending to agent: Not enough space
gpg: error building skey array: Not enough space
gpg: error reading 'private-keys.asc': Not enough space
gpg: import from 'private-keys.asc' failed: Not enough space
gpg: Total number processed: 0
gpg: imported: 1
gpg: secret keys read: 1
C:\>
I'm executing on a workstation with 64GB of RAM. The Kleopatra can
start, self-test is all passed except "VS-NfD compliant", here is the
snapshot: https://i.postimg.cc/CLc1ny05/image.png
Also, maybe related, someone in the IRC channel guided me to enable
and check the log of gpg-agent, and here is the result,
2024-04-08 08:03:37 gpg-agent[27040] command 'KEYINFO' failed: System
error w/o errno
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc -> ERR
67125245 System error w/o errno <GPG Agent>
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
KEYWRAP_KEY --import
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc ->
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc -> OK
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
SETKEYDESC █████████████████
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc -> OK
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
IMPORT_KEY --timestamp=20190920T043443
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc ->
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] command 'IMPORT_KEY' failed: File exists
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc -> ERR
67141667 File exists <GPG Agent>
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
SETKEYDESC █████████████████
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc -> OK
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
IMPORT_KEY --timestamp=20190920T043443
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc ->
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <-
[[Confidential data not shown]]
2024-04-08 08:03:37 gpg-agent[27040] starting a new PIN Entry
2024-04-08 08:03:37 gpg-agent[27040] DBG: connection to PIN entry established
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc -> INQUIRE
PINENTRY_LAUNCHED 35184 qt 1.2.1 - - - - 0/0 -
2024-04-08 08:03:37 gpg-agent[27040] DBG: chan_0x000002cc <- END
2024-04-08 08:03:41 gpg-agent[27040] DBG: agent_cache_housekeeping
2024-04-08 08:03:45 gpg-agent[27040] DBG: agent_cache_housekeeping
2024-04-08 08:03:49 gpg-agent[27040] DBG: agent_cache_housekeeping
2024-04-08 08:03:51 gpg-agent[27040] DBG: rsa_testkey => Success
2024-04-08 08:03:51 gpg-agent[27040] command 'IMPORT_KEY' failed: Not
enough space
2024-04-08 08:03:51 gpg-agent[27040] DBG: chan_0x000002cc -> ERR
67141718 Not enough space <GPG Agent>
2024-04-08 08:03:51 gpg-agent[27040] DBG: chan_0x000002cc <- [eof]
2024-04-08 08:03:51 gpg-agent[27040] DBG: chan_0x0000014c -> RESTART
2024-04-08 08:03:51 gpg-agent[27040] DBG: chan_0x0000014c <- OK
2024-04-08 08:03:53 gpg-agent[27040] DBG: agent_cache_housekeeping
2024-04-08 08:03:57 gpg-agent[27040] DBG: agent_cache_housekeeping
2024-04-08 08:03:57 gpg-agent[27040] DBG: chan_0x00000324 -> OK
Pleased to meet you
2024-04-08 08:03:57 gpg-agent[27040] DBG: chan_0x00000324 <- GETINFO pid
2024-04-08 08:03:57 gpg-agent[27040] DBG: chan_0x00000324 -> D 27040
2024-04-08 08:03:57 gpg-agent[27040] DBG: chan_0x00000324 -> OK
2024-04-08 08:03:57 gpg-agent[27040] socket is still served by this server
- --
M.
On Tue, Apr 9, 2024 at 2:59 PM Werner Koch <wk at gnupg.org> wrote:
>
> Hi!
>
> On Tue, 9 Apr 2024 12:21, Moses said:
> > C:\>gpgconf -L
>
> which merely shows that you installed the software on d:\software and
> kep the user data at the usual C: directories. I see nothing strange.
>
> To recap your problem was:
>
> c:\> gpg --import private-keys.asc
> gpg: enabled compatibility flags:
> [snipped]
> gpg: key xxxxxxxxxxxxxxxxxxxxxxx: error sending to agent: Not enough space
>
> I don't known why you get that error which might hint at a out of memory
> (not out of disk space) problem. We could look at the output of
>
> gpgconf -V
>
> and
>
> gpgconf -X
>
> but I doubt that this will show anything useful for your case. Can you
> start kleopatra? If so, what does its selftest tell?
>
> What you can do is:
>
> gpgconf -K all
>
> to stop all background processes (or use the taskmgr or logout and in
> again).
>
> cd %APPDATA%
> ren gnupg gnupg.save
> cd %LOCALAPPDATA%
> ren gnupg gnupg.save
>
> and then try agin. If this does work you might have insufficent
> permissions somewhere below %APPDATA%\gnupg . If kleopatra starts you
> can also teh DbgViewer tool from Sysinternals to see the diagnostics
> from Kleopatra.
>
>
> Shalom-Salam,
>
> Werner
>
> --
> The pioneers of a warless world are the youth that
> refuse military service. - A. Einstein
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEtS81xZ6ggCm51urXjBWeIrrYv8gFAmYWJNwACgkQjBWeIrrY
v8gHFQ//bGLZ3F37lRZHrNYyuSZSOT6Epx3qBXa528QkxpaLTDp8PHFtIFTpsm9h
sHJNlXem45grhM/I4+LbVcniMp+plz+geW2MvFsrn6SO2QlJpsh3hTjS/hzVmU4Z
MUgkiRroQS+zWAK+msQewImg5LWmj5L2vk1VQ6HqlPPa04AOm2oXAF0+Qrb7skoV
qWcfAInyJihCSobE0HUFk60XNhXLr5RQ+udLDoA4wJA9yCZWZADN4pwxWXXDx9+e
VLybWmo6Is/doKTcmv9yLzr2XIRUnSwNikTqNAyBgIlnQFD03TbqEXazT1nOnKOi
nWZoRgY+Le6A2QJKMJTQ2mrvj1bf0HbSYuT6ZzS4aYUAQd6yLu8sYSLdoJQFA3F8
cTjV+AMPfJcwy9b1wutDxxLikv7vU3WLEQkqDP5pNT5UCz3Wb86M+pkCn0yIMDoH
dYOGTre0/61lUqIlp/2FLBJTskVoC/1AvRm0VjfJGb/foDuSITqigrcJiAtZt6uz
Ouy5N7N1cby3J2J6Eqf8F/g/zAU9r48E+wFTJXMpi1uVVxHqqJ5patUGrWzxje8X
MTGfly/C35DpcRyH4d2ORRiNBz2lYXFNjtbA3TLXNNfZ5RN5YWoWJfcflI/R7jMH
7g/ZEgo8NG0SWz5+uqMxC2wiY9ZM4Cid2r5vL6H288Pm88oC9nI=
=+qb0
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list