scap-workbench icon indicating copy to clipboard operation
scap-workbench copied to clipboard

Opens but hangs on M1 Pro MacBook

Open cyclism6486 opened this issue 3 years ago • 16 comments

Monterrey 12.1 - Get Info shows app as (Intel), but it doesn't ask to run under Rosetta. Installed Rosetta manually, but no checkbox shows up to run SCAP under Rosetta. When you open the app without Rosetta, the icon shows up in the dock and program name in menu bar, but it just beachballs. Have to finally force quit.

cyclism6486 avatar Feb 11 '22 12:02 cyclism6486

same here. haven't tried the steps outlined above but I get the same cannot load, using MBP M1 Pro

ghost avatar Jun 06 '22 12:06 ghost

This is actually not a M1 specific problem, it's the same on an Intel cpu: #289

beckerj avatar Aug 13 '22 06:08 beckerj

This is actually not a M1 specific problem, it's the same on an Intel cpu: #289

can you try this new build and see if it works: https://github.com/ggbecker/scap-workbench/actions/runs/2860217174

I have rebuilt the latest version with newer packages.

ggbecker avatar Aug 15 '22 11:08 ggbecker

Your mac build #302 opened for me.

ETA: However, on first trying to connect from an Apple M1 running Monterey 12.2.1, this error generated:

Can't connect to remote machine! Exception was: There was a problem with SshConnection! Failed to create SSH master socket! Diagnostic info: Starting process '/usr/bin/ssh -M -f -N -o ServerAliveInterval=60 -o ControlPath=/private/var/folders/3q/cqjdwnwn3ls0ttmrdlvlnw0m0000gn/T/scap-workbench-skjyfR/ssh_socket -p 22 user@server' Starting process '/usr/bin/ssh -M -f -N -o ServerAliveInterval=60 -o ControlPath=/private/var/folders/3q/cqjdwnwn3ls0ttmrdlvlnw0m0000gn/T/scap-workbench-skjyfR/ssh_socket -p 22 user@server' stdout: =============================== stderr: =============================== unix_listener: path "/private/var/folders/3q/cqjdwnwn3ls0ttmrdlvlnw0m0000gn/T/scap-workbench-skjyfR/ssh_socket.0bLdwEKBMPHyeQ4d" too long for Unix domain socket

I believe this is something hardcoded in the application's ssh connnection, because I've tried applying the known fix for this on OS X in every way I can, and the error is still generated. I can change ControlPath in ~/.ssh/config, /etc/ssh/ssh_config, and on the command line with -o, and the error is still generated.

This might be the problem. Maybe.

jxadams avatar Oct 13 '22 18:10 jxadams

The temporary dir in your case is: /private/var/folders/3q/cqjdwnwn3ls0ttmrdlvlnw0m0000gn/T which is long,

you could override it temporarily with something like:

TMPDIR=/tmp scap-workbench

considering you are able to run scap-workbench from the command line, or something like:

TMPDIR=/tmp
./scap-workbench

ggbecker avatar Oct 14 '22 13:10 ggbecker

Works like a charm--thanks!

On Fri, Oct 14, 2022 at 8:28 AM Gabriel Becker @.***> wrote:

The temporary dir in your case is: /private/var/folders/3q/cqjdwnwn3ls0ttmrdlvlnw0m0000gn/T which is long,

you could override it temporarily with something like:

TMPDIR=/tmp scap-workbench

considering you are able to run scap-workbench from the command line, or something like:

TMPDIR=/tmp ./scap-workbench

— Reply to this email directly, view it on GitHub https://github.com/OpenSCAP/scap-workbench/issues/299#issuecomment-1279010919, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADB2FCYLFQDTAGNKYQI3CL3WDFNXLANCNFSM5OECT5LA . You are receiving this because you commented.Message ID: @.***>

-- John Adams Senior Linux/Middleware Administrator | Information Technology Services +1-501-916-3010 | @.*** | http://ualr.edu/itservices UA Little Rock

Reminder: IT Services will never ask for your password over the phone or in an email. Always be suspicious of requests for personal information that come via email, even from known contacts. For more information or to report suspicious email, visit IT Security http://ualr.edu/itservices/security/.

jxadams avatar Oct 14 '22 13:10 jxadams

I am, however, getting this error when trying to Generate remediation of any sort: "Error generating remediation '/Users/file/path/remediation.yml': Couldn't load XCCDF"

On Fri, Oct 14, 2022 at 8:34 AM Johnnie W Adams @.***> wrote:

Works like a charm--thanks!

On Fri, Oct 14, 2022 at 8:28 AM Gabriel Becker @.***> wrote:

The temporary dir in your case is: /private/var/folders/3q/cqjdwnwn3ls0ttmrdlvlnw0m0000gn/T which is long,

you could override it temporarily with something like:

TMPDIR=/tmp scap-workbench

considering you are able to run scap-workbench from the command line, or something like:

TMPDIR=/tmp ./scap-workbench

— Reply to this email directly, view it on GitHub https://github.com/OpenSCAP/scap-workbench/issues/299#issuecomment-1279010919, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADB2FCYLFQDTAGNKYQI3CL3WDFNXLANCNFSM5OECT5LA . You are receiving this because you commented.Message ID: @.***>

-- John Adams Senior Linux/Middleware Administrator | Information Technology Services +1-501-916-3010 | @.*** | http://ualr.edu/itservices UA Little Rock

Reminder: IT Services will never ask for your password over the phone or in an email. Always be suspicious of requests for personal information that come via email, even from known contacts. For more information or to report suspicious email, visit IT Security http://ualr.edu/itservices/security/.

-- John Adams Senior Linux/Middleware Administrator | Information Technology Services +1-501-916-3010 | @.*** | http://ualr.edu/itservices UA Little Rock

Reminder: IT Services will never ask for your password over the phone or in an email. Always be suspicious of requests for personal information that come via email, even from known contacts. For more information or to report suspicious email, visit IT Security http://ualr.edu/itservices/security/.

jxadams avatar Oct 14 '22 14:10 jxadams

maybe @Mab879 could test this part and check for more information.

ggbecker avatar Oct 14 '22 14:10 ggbecker

And on a second runthrough, I find that, while I can't Generate remediation from the button after a scan, I can Generate remediation from the dropdown box before the scan.

On Fri, Oct 14, 2022 at 9:27 AM Gabriel Becker @.***> wrote:

maybe @Mab879 https://github.com/Mab879 could test this part and check for more information.

— Reply to this email directly, view it on GitHub https://github.com/OpenSCAP/scap-workbench/issues/299#issuecomment-1279085302, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADB2FC4YSGDFB7U7D7NTSV3WDFUULANCNFSM5OECT5LA . You are receiving this because you commented.Message ID: @.***>

-- John Adams Senior Linux/Middleware Administrator | Information Technology Services +1-501-916-3010 | @.*** | http://ualr.edu/itservices UA Little Rock

Reminder: IT Services will never ask for your password over the phone or in an email. Always be suspicious of requests for personal information that come via email, even from known contacts. For more information or to report suspicious email, visit IT Security http://ualr.edu/itservices/security/.

jxadams avatar Oct 14 '22 14:10 jxadams

@ggbecker can you rebuild an artefact thanks

tuxtof avatar Jun 22 '23 06:06 tuxtof

@ggbecker can you rebuild an artefact thanks

The new build should appear here: https://github.com/OpenSCAP/scap-workbench/actions/runs/5343838869?pr=302

ggbecker avatar Jun 22 '23 09:06 ggbecker

maybe time to make a PR against upstream :-D

tuxtof avatar Jun 22 '23 09:06 tuxtof

maybe time to make a PR against upstream :-D

we have the pull request: https://github.com/OpenSCAP/scap-workbench/pull/302 but I didn't have time to follow up in some of the remaining issues. Feel free to propose any changes... it looks like Fedora builds need to be fixed as well. And furthermore a release with this change is desired to create permanent artifacts.

ggbecker avatar Jun 22 '23 10:06 ggbecker

Is there any update on this please? As the the bulid artifact from the https://github.com/OpenSCAP/scap-workbench/actions/runs/5343838869?pr=302 is now expired and can't be downloaded anymore.

peterlai-roboops avatar Feb 13 '24 07:02 peterlai-roboops

Is there any update on this please? As the the bulid artifact from the https://github.com/OpenSCAP/scap-workbench/actions/runs/5343838869?pr=302 is now expired and can't be downloaded anymore.

I'm building the artifact again and should be downloadable again soon.

Here is the new build: https://github.com/OpenSCAP/scap-workbench/actions/runs/7884922384/artifacts/1241080720

ggbecker avatar Feb 13 '24 10:02 ggbecker

Thanks!

Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: Gabriel Becker @.> Sent: Tuesday, February 13, 2024 2:15:19 PM To: OpenSCAP/scap-workbench @.> Cc: Peter Lai @.>; Comment @.> Subject: Re: [OpenSCAP/scap-workbench] Opens but hangs on M1 Pro MacBook (Issue #299)

Is there any update on this please? As the the bulid artifact from the https://github.com/OpenSCAP/scap-workbench/actions/runs/5343838869?pr=302 is now expired and can't be downloaded anymore.

I'm building the artifact again and should be downloadable again soon.

— Reply to this email directly, view it on GitHubhttps://github.com/OpenSCAP/scap-workbench/issues/299#issuecomment-1941068028, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACYBYRAUBA4SOBPWNW3LGV3YTM4LPAVCNFSM5OECT5LKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJUGEYDMOBQGI4A. You are receiving this because you commented.Message ID: @.***>

peterlai-roboops avatar Feb 13 '24 10:02 peterlai-roboops