-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
[BUG] Container exits when starting #283
Comments
i have the same prob. Docker image was 1 week old. Pulling the latest doesn't fix it. It seems the rsync feed brakes it |
Can you run the sync manually after starting with skipsync and send the output? Also, if you could copy out the gvmd.log, that might help as well. Sorry for brevity, only have my phone. -Scott |
I have the same issue.
|
I have the same question.
|
OK ... It looks like it was an issue with the feeds updating properly. . . . . I think I've fixed it. Well ... it works for me now. :) Please let me know. No new image needed, the fix was on the feed sync server for the notus files. -Scott |
It's ok for me |
thanks @grandaor @gooseleggs, It all is OK for you, I'll go ahead and close this one. Thanks, |
Haven’t tested yet but close as complete. |
Thanks @gooseleggs ! |
Sorry @immauss ... IMO, you can reopen this issue |
Ugh ... sorry... -Scott |
Oh my gosh my port forwarding rules got me confused: looking back, I was experimenting with different dockerized releases, and I'm frankly not sure anymore where this message originated (possibly a
|
@cbrunnkvist @gooseleggs / @grandaor
When done, please attach the ''' all-logs.tar.xz ''' As it looks like gvmd is dying, I want to see if there is anything that is making it into the logs. Because the tail dies with the container, often things get written to the log file that will not make it to the 'docker logs' when something crashes. |
Hello @immauss |
@gooseleggs Can you do the same? Thanks, |
It will probably take me a day or two to get to it but will. Sent from my iPhoneOn 14 Jul 2024, at 8:12 PM, GE Scott Knauss ***@***.***> wrote:
@gooseleggs Can you do the same?
There is an unusual error in the postgresql log about one of the files being processed. I'd like to know if yours is exactly the same.
Thanks,
-Scott
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@gooseleggs |
Thanks for the bump. Hopefully this has captured what you want. I ran through it a couple of time. The first run with SkipSync=False succeeded once, but then also failed once as well, so seems now to be random more than a hard fail. |
Hello, I am experiencing the same error: after starting the container, it immediately exits. However, after attempting to start the container multiple times (10+), I noticed that the issue seems to occur randomly. I managed to start it successfully 3 times out of 10 attempts, but it fails again after a restart. Logs after trying to start the container:
|
Sorry for the long delays. . . . Thank you, |
I removed the openvas volume on Debian 12. Same docker compose file as per original issue (except of course for the container version). This is the log that I got on startup: It did exit out, but either restarted and continued, or just continued. Didn't retry as got this error (repeating) when it got to
|
This is absolutely baffling me...... Every now and then, I've been taking a look at this hoping some time and distance will give me some perspective ... but i've got nothing..... I just built a Debian 12 fully updated, used your compose file, and it booted up just fine. The errors you are getting look like there is already an existing database, which there should not be if you started with an empty volume. New check . . . Can you try with command line. docker run -d -p 127.0.0.1:80:9392 --name openvas immauss/openvas:22.4.49 This will also run without a volume ... If this fails out the same way, please send me the logs ... Thanks, |
Scott Sorry - still no dice Here is a console session output: Here are the files from the logs directory: gvm.tar.gz
I am running this test from a VirtualBox VM. I could ship it to you if you like for you to try in your environment if you like although that should not make a difference. |
Actually ... that would be awesome What I'm seeing makes no sense .... Thanks, |
So .... I have a new theory ...
In yours I see
There's more, but it just goes downhill from there. The "gvm" role creation is one of the first things in the base-db.sql. So.... I suspect it has something to do with how the DB is being restored. It's a standard method, pg_dumpall then redirect to psql. I'm actually wondering now if it is a something much lower in the stack .. the disk, or how virtual box handles the high rate of writes during the DB restore ... I'm going to try re-writing the db restore .... I would still love to have that VM if you could ship it over though ... It could provide more insight. Thanks, |
Scott - check out your linked in message from Kelvin Smith. |
I have the exact same issue. I can send you more logs if needed. |
Is anyone else here using Virtual Box for the VM with issues? @gooseleggs .... Got it! |
Quite vanilla actually. Debian basic install-no gui. Install docker from docker itself (not distribution). I may have made my user account have group membership to run commands. Copy docker-compose file and run. Did you get VM running? I could convert disk to VMDK if that would help? did not know those VM engines are now free. Surprised since Broadcom have hiked other products and removed free ESXi |
I did get the VM running in VBox. It happily fails just as you described. :/ Strange thing though ... I installed Debian 12.5 in VBox, ran `apt update && apt install docker' and ran the latest container and it worked like a charm. So ....... I'll try again with docker from docker... but should be the same. -Scott |
No virtualization here. Host is EndeavousOS, x86_64. Latest packages as of yesterday. |
some one please try: Thank you, |
nvm .... |
OK ... Then I realized ... between those times, I changed the script to generate the weekly image ..... Some how ... (I've not yet figured out why ... ) That is causing the problem. So ... please try adding:
to your start command
in your docker-compose. This will cause it to create a brand new db from scratch, which will take a bit of time. BUT .... it "should" work. ... It will also be a very valuable piece of troubleshooting info me. I'm working on rolling back that change and rebuilding some images .. but it might take a few days for me . . . . Thanks, |
OK ... But ... I rebuilt the latest image with a fresh DB, and it is now working in the VM provided by @gooseleggs !! Please let me know. Thanks, |
Great stuff.
What container tag is the fix in? Beta or normal latest container?
|
It should be in both now. -Scott |
Just re-downloaded 22.4.49 with docker compose and all started as expected with clean volume. However looking on docker hub it says it is a month old. |
22.4.49 did not get the update ... "latest" did as the update pushes to "latest" I'll push a new 22.4.50 later today with a note for clarity. Thanks, |
OK - ran up the latest. Looks ok, however, would you be expecting all the error lines?
|
Yes ... There is a 22.4.50 now. It is identical to 22.4.49, but includes the most recently (works better) database. I'm going to close this out in a day or so, but I would really like to hear from anyone else who has been expereincing this issue. While I seem to have found how to fix it, I still don't know the root cause of "WHY" it happens to some installs and not others. Thanks |
Hey there, I was having the same problem using docker desktop in a windows 11 host, pulling the latest image seems to fix the issue. Thank you so much!! Should you need any logs please let me know.
|
@SparKiiRQ Outstanding!! -Scott |
Sorry, as soon as restarting the container it seems to crash again, after the latest log entry a status Exited (1) is returned: Let me know if some more info is needed.
|
@SparKiiRQ
Welllllllll The VM I got from @gooseleggs does the same thing. Thank you. I'll keep working on it. -Scott |
Huzzaahhh !! OK ... I think I figured it out ... (Really this time.) Now that I know the Root Cause, I can fix this in one of a few different ways. I should have time to get this worked out before the end of the weekend. Thanks again to @gooseleggs. I would not have been able to find this without that VM!! And to @SparKiiRQ for being a buzzkill 😁 -Scott |
Describe the bug
I am trying to use the 22.4.47 container. I think it worked the first time. However on each subsequent start, it quits as soon as it tries to start the scanner and then it just loops. I can get it to start by enabling SKIPSYNC=true.
This is the output of the issue. Note that this has been previously run, so the NVTs are up to date.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
GVM to start after feeds finished updating
Environment (please complete the following information):
logs ( commands assume the container name is 'openvas' )
Please attach the output from one of the following commands:
docker-compose
docker-compose logs > logfile.log
docker-compose.txt
The text was updated successfully, but these errors were encountered: