-
Notifications
You must be signed in to change notification settings - Fork 319
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
syntax error: "rescue StandardError" #228
Comments
Seems like it is a syntax-error for the ruby-file |
Hi havardMoe, did you have any luck with this issue? I have tried building SecGen on both Ubuntu22/Ubuntu20 Server and Desktop but seem to result in this issue you have posted. |
nop. I sadly got stuck and had to go elsewhere for my vulnerable boxes |
Found your solution. In issue #562 for vcsrepo, the solution mentioned is to downgrade git to 2.25.1. That version isn't included in the current apt repositories, so you have to either add focal to your sources list, or compile that version of git from the apt sources. Apparently, they released a patch to a CVE for git that broke vcs a lot, and downgrading to that version fixes most issues. |
@sadkris awesome finding! That has seemed to have fixed the rescue StandardError. Onto the next problem with Modules failing to run. Such as when running the command: This results in error: |
Might be wrong, but try running |
That is indeed wrong. Gonna look into it more, but I just put up a pull request for my branch that fixes a lot of problems with the templates. Undocumented still is the git fix, but I'll try to automate it eventually. |
Are you running the Ubuntu Server straight on Hardware, or through Virtualization? I understand that SecGen can use Virtualbox on the VM, and was wondering if there could be issues if we were to run a VM. Essentially Windows > Virtual Box VM for Ubuntu (SecGen) > Generated VMs |
Using Ubuntu Focal on VMWare right now |
I have been running Ubuntu Focal Desktop on an Intel NUC, I am currently looking at running a Virtual Machine (Ubuntu Focal Desktop) with nested virtualization enabled. That way I can take advantage of using snapshots for trial and error. |
Update: All of the following was conducted on a new Ubuntu Focal Desktop VM hosted on a Windows Environment. The SecGen environment was configured in accordance with the instructions posted on https://github.com/cliffe/SecGen revision [3fd6b74bf54e49a7067b68afbbcb2d04cbb610f7] Completed SuccessfullyI have successfully run the following commands from SecGen directory:
Completed with ErrorsI also ran these commands from the SecGen directory, however resulted in errors:
It seems as if the ptsd scenario was stepping down all the puppetlab-stdlib versions starting at 8.5.0 and then backtracking down.
|
I'm also struggling to get SecGen to work right now. I've been trying to get it to work in a Ubuntu 22.04 and 20.04 environment running on a Win 10 host with Hyper-V, but had no success. I only had partly success in a Kali Linux environment, but it would only work sometimes. Now I've been trying to get it to work on normal Ubuntu 22.04 environment with no virtualization but I still have no luck. Will try to use the downgrade git fix mentioned above now @gtk2105 have you figured it out by now? |
@Pflegusch not quite, what I have noticed and believe I read somewhere is that the Virtual Box VMs aren't being kept up to date, this could be a strong reason as to why a lot of scenarios fail. |
Yeah, that's the issue, check my pull request for details. The current plan is to go into them and update them when I have the chance, then upload the images and replace the links with my own whenever I have free time. |
Hi folks, Thanks for your interest in the project. Sorry it can be a faf to get SecGen installed. I think the install instructions have been updated, and make sure you manually update the base boxes as described in the troubleshooting section of the README. Closing this issue as I'm cleaning up the SecGen issue tracker. You might be interested in our hosted solution: https://hacktivity.leedsbeckett.ac.uk/ |
I seem to get this error no matter which of the existing scenarios I try to initialize.
Is it a version error, does this look familiar to anyone?
Then afterwards:
The text was updated successfully, but these errors were encountered: