gocsaf / csaf

Tools to download or provide CSAF (Common Security Advisory Framework) documents.
https://csaf.io
42 stars 25 forks source link

Aggregator in interim mode: Download fails in interim mode #273

Closed mfd2007 closed 2 years ago

mfd2007 commented 2 years ago

I do a first run of the aggregator in normal mode. If I start the aggregator afterwards in interim mode, the process stops with

2022/08/02 12:22:03 Starting 1 workers.
2022/08/02 12:22:03 worker #1: csaf-provider-1 (csaf-provider-1.test)
2022/08/02 12:22:03 [GET]: https://csaf-provider-1.test/.well-known/csaf/white/2022/acme_2022-1_white.json
2022/08/02 12:22:03 error: open /home/abc/csaf_distribution/test/folder/csaf-provider-1-2022-08-02-122203/white/2022/acme_2022-1_white.json: no such file or directory

There are all files of the aggregator in the local path where the aggregator is executed, but the path (/home/abc/csaf_distribution/test/) from the error message is not created.

Excerpt from the aggregator.toml:

folder = "/home/abct/csaf_distribution/test/folder"
lock_file = "/home/abc/csaf_distribution/test/run.lock"
web = "/home/abc/csaf_distribution/test/web"
s-l-teichmann commented 2 years ago

I can reproduce this. There is something strange with the transaction. I'll have a look at this.

s-l-teichmann commented 2 years ago

Strangely the re-sym-linking does not work as expected. I still have to find out the reason for this.

s-l-teichmann commented 2 years ago

Okay, that was heavily broken. With PR #275 it should finally work.