OpenSCAP / scap-workbench

SCAP Scanner And Tailoring Graphical User Interface
https://www.open-scap.org/tools/scap-workbench
GNU General Public License v3.0
223 stars 65 forks source link

Opens but hangs on M1 Pro MacBook #299

Open cyclism6486 opened 2 years ago

cyclism6486 commented 2 years ago

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.

ghost commented 2 years ago

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

beckerj commented 2 years ago

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

ggbecker commented 2 years ago

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.

jxadams commented 1 year ago

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.

ggbecker commented 1 year ago

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
jxadams commented 1 year ago

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 commented 1 year ago

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/.

ggbecker commented 1 year ago

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

jxadams commented 1 year ago

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/.

tuxtof commented 1 year ago

@ggbecker can you rebuild an artefact thanks

ggbecker commented 1 year ago

@ggbecker can you rebuild an artefact thanks

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

tuxtof commented 1 year ago

maybe time to make a PR against upstream :-D

ggbecker commented 1 year ago

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.

peterlai-roboops commented 6 months ago

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.

ggbecker commented 6 months ago

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

peterlai-roboops commented 6 months ago

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: @.***>