containers / podman-desktop-e2e

Podman desktop e2e tests
Apache License 2.0
3 stars 9 forks source link

Building Podman Desktop locally fails on libcrypto error #219

Closed odockal closed 1 month ago

odockal commented 2 months ago

POdman DEsktop e2e installation nightly build fails: https://github.com/containers/podman-desktop-e2e/actions/runs/10713153617/job/29704737307

• asar usage is disabled — this is strongly not recommended  solution=enable asar and use asarUnpack to unpack files that must be externally available
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=673ms
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\527083015.7z
    --
    Path = C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\527083015.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2

    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\527083015\darwin\10.12\lib\libcrypto.dylib
    ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\527083015\darwin\10.12\lib\libssl.dylib

                    command='C:\Users\rhqp\pd-e2e\podman-desktop\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\527083015.7z' '-oC:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\527083015'
                    workingDir=C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign
  • Above command failed, retrying 3 more times
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=628ms
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\436625331.7z
    --
    Path = C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\436625331.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2

    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\436625331\darwin\10.12\lib\libcrypto.dylib
    ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\436625331\darwin\10.12\lib\libssl.dylib

                    command='C:\Users\rhqp\pd-e2e\podman-desktop\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\436625331.7z' '-oC:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\436625331'
                    workingDir=C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign
  • Above command failed, retrying 2 more times
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=853ms
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\112950935.7z
    --
    Path = C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\112950935.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2

    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\112950935\darwin\10.12\lib\libcrypto.dylib
    ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\112950935\darwin\10.12\lib\libssl.dylib

                    command='C:\Users\rhqp\pd-e2e\podman-desktop\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\112950935.7z' '-oC:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\112950935'
                    workingDir=C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign
  • Above command failed, retrying 1 more times
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=831ms
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\155515111.7z
    --
    Path = C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\155515111.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2

    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\155515111\darwin\10.12\lib\libcrypto.dylib
    ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\155515111\darwin\10.12\lib\libssl.dylib

                    command='C:\Users\rhqp\pd-e2e\podman-desktop\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\155515111.7z' '-oC:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign\155515111'
                    workingDir=C:\Users\rhqp\AppData\Local\electron-builder\Cache\winCodeSign
  • Above command failed, retrying 0 more times
 ELIFECYCLE  Command failed with exit code 1.
The file has been renamed to pd.exe.
The file exists at C:\Users\rhqp\pd-e2e\podman-desktop\dist\win-unpacked\pd.exe.
Storing information about Podman Desktop executable to the resulting file: pde2e-binary-path.log
+ '[' true = true ']'
+ check_connection 30 10
Script finished...

REf: https://github.com/containers/podman-desktop-e2e/actions/runs/10713153617/job/29704737307#step:6:1114

axel7083 commented 1 month ago

@odockal is this resolved ? Since https://github.com/containers/podman-desktop/issues/8765 has been merged

cdrage commented 1 month ago

@odockal @axel7083 pre-releases are building now / I am able to access binaries: https://github.com/containers/podman-desktop-prereleases/tags

Closing, let me know if there is still an issue and re-open @odockal

odockal commented 1 month ago

@cdrage @axel7083 I do not think this is the same problem. Here we see a problem when buildinh ssh2 library with pnpm compile command: https://github.com/containers/podman-desktop-e2e/actions/runs/10785050149/job/29909641131#step:6:630.

cdrage commented 1 month ago

@odockal I'm at a loss trying to fix this, sorry! Could it be because of how it's being ran / permissions issue from within the quay.io/odockal/pde2e-builder:v0.0.1-windows container?

I do not know what the source code for that would be, possibly https://github.com/containers/podman-desktop-e2e/blob/main/oci/Containerfile ?

I've been trying to understand how to get it to replicate (didn't get issues my end doing compile locally), but it may be in better hands of @ScrewTSW or you to fix.

ScrewTSW commented 1 month ago

@odockal I'm at a loss trying to fix this, sorry! Could it be because of how it's being ran / permissions issue from within the quay.io/odockal/pde2e-builder:v0.0.1-windows container?

I do not know what the source code for that would be, possibly https://github.com/containers/podman-desktop-e2e/blob/main/oci/Containerfile ?

I've been trying to understand how to get it to replicate (didn't get issues my end doing compile locally), but it may be in better hands of @ScrewTSW or you to fix.

The sources for pde2e-builder can be found at https://github.com/odockal/pde2e-builder

cdrage commented 1 month ago

@odockal I'm at a loss trying to fix this, sorry! Could it be because of how it's being ran / permissions issue from within the quay.io/odockal/pde2e-builder:v0.0.1-windows container? I do not know what the source code for that would be, possibly https://github.com/containers/podman-desktop-e2e/blob/main/oci/Containerfile ? I've been trying to understand how to get it to replicate (didn't get issues my end doing compile locally), but it may be in better hands of @ScrewTSW or you to fix.

The sources for pde2e-builder can be found at https://github.com/odockal/pde2e-builder

Tried a bit of hacking to get it working (basically.. chmod -R 777 the entire folder) but to no avail. Could it be an issue with quay.io/rhqp/deliverest image not doing permissions / symlinking correctly, or something podman-desktop side?

ScrewTSW commented 1 month ago

@cdrage @odockal seems to be caused by updated electron-builder, they changed the 7zip dependency, which instead of hard links attempts to create symlinks, which are not allowed without administrator permissions or developer mode on windows

odockal commented 1 month ago

gonna be fixed (already is fixed since the image is actually built and published under the same version) in https://github.com/odockal/pde2e-builder/pull/3.

successful build is ie. here: https://github.com/containers/podman-desktop-e2e/actions/runs/11098720268/job/30831847492#step:6:333.