Skip to content
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

Vulnz Docker image - Cron job not running and Apache conf not picked up #147

Closed
PaulCormier opened this issue Mar 18, 2024 · 6 comments
Closed

Comments

@PaulCormier
Copy link

First of all, thank you @EugenMayer and @jeremylong for putting this together. I was trying to do this in my spare time, but I didn't get this far.

Unfortunately, the cron job isn't running for me when the crontab file is owned by mirror. If I change it to root:root it does run.

Also, the Apache config for the mirror location isn't being picked up automatically. I had to append "Include conf/mirror.conf" to the main httpd.conf. Specifically, I was trying to configure the fancy directory listing from within the mirror.conf file, and it wasn't being picked up.

If it's not just me, I hope I've helped pinpoint the issue.

@EugenMayer
Copy link
Contributor

Did you build your image yourself or did you use https://github.com/jeremylong/Open-Vulnerability-Project/pkgs/container/open-vulnerability-data-mirror ? if the latter, did you use 6.0.0?

  • cron seems not to be running for me too, since my files have been updated on the 28. Feb. so there is something to it
  • apache - this one is working for sure, since this would take it down for me in production

@PaulCormier
Copy link
Author

I built the image myself; I needed to add a CA cert.

For Apache, it was serving the files but changes to the mirror.conf weren't being picked up.

@EugenMayer
Copy link
Contributor

EugenMayer commented Mar 18, 2024

For Apache, it was serving the files but changes to the mirror.conf weren't being picked up.

This is not a topic for this Docker image and nothing to support or not support. Those are docker basics or docker topics

Unfortunately, the cron job isn't running for me when the crontab file is owned by mirror. If I change it to root:root it does run.

I could reproduce this and fix it with the incoming PR #148

@PaulCormier
Copy link
Author

For Apache, it was serving the files but changes to the mirror.conf weren't being picked up.

This is not a topic for this Docker image and nothing to support or not support. Those are docker basics or docker topics

But, does it work on your end? I changed the IndexOptions to: IndexOptions FancyIndexing SuppressDescription, but it was only showing the plain file list until I explicitly included mirror.conf in the httpd.conf.

Now I get:
image

@EugenMayer
Copy link
Contributor

Sorry @PaulCormier, this is beyond this project and has nothing to do with this docker image in particular.

IMHO this issue should be resolved or at least resolved and the question with the mirror.conf should be moved into a disucssion.

@jeremylong
Copy link
Owner

I will try and publish the updated version soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants