Selecting logs to download and trying to download them fails

If you select a single log from the list and click download log archive. Followed by clicking the download link, it fails with.

“Failed - no file”

I tried it a couple of times but could not get it to work and went over to pulling the logs command line.

Hi @clink,

Thanks for the report; I just tried to do the same on Rockstor-4.0.5 and it worked on my end. Could you specify the Rockstor version on which you are seeing this error?

Note that we have an opened issue with the dmesg logs that cannot be fetched in Rockstor-4.0.5, but that is likely related to changes in path as it does not manifest like the issue you describe. If curious, the issue is:


… and has been put on the first Rockstor 4 Stable milestone:

Sorry for going a little off topic… The issue you are describing is likely unrelated, and maybe we should look into the Nginx side… again we would need a way to reproduce it first, so thanks for letting us know.

1 Like

I tried in on Rockstor 4.0.4 and 4.0.5 (opensuse install)

I did the System pull down and selected log Manager, Select a single file to download.

screenshot

2 Likes

I’m getting similar, but without the error message about being empty or not existing.
(on both 3.9.2 upgraded to 4.0.7 NAS, and 4.0.4 upgraded to 4.0.7 (VM)
Browser is latest Firefox on Linux in both cases)

Both the download full Log file link ( https://rocky.lan/home# ) in the tail -n 200 dialog and the click to download
( https://rocky.lan/logs/requested_logs.tgz )
just silently do nothing

here is the html I’m seeing for the former:

<h4>
<b>Content Size:</b>&nbsp;<span id="logsize">20.57kB</span><br>
<a href="#" id="reader-logs" name="reader-logs">Download full Log file <i class="glyphicon glyphicon-download-alt"></i></a>
<a style="visibility: hidden;" href="/logs/rockstor.tgz" id="reader-log-download" name="reader-log-download" download="">.</a>
</h4>

It looks like the Download full Log file text and icon just links to # while the actual link is a single .

The Click to download link looks correct (but still silently does nothing)

Aha! in /var/log/nginx/error.log

the No such file or directory errors are there

> 2021/08/08 14:44:24 [warn] 1251#1251: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /opt/rockstor/etc/nginx/nginx.conf:47
> 2021/08/08 14:51:16 [error] 1257#1257: *72 open() "/opt/rockstor/src/rockstor/logs/requested_logs.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/requested_logs.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 14:51:23 [error] 1257#1257: *72 open() "/opt/rockstor/src/rockstor/logs/requested_logs.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/requested_logs.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 15:21:46 [error] 1257#1257: *73 open() "/opt/rockstor/src/rockstor/logs/rockstor.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/rockstor.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 15:22:06 [error] 1257#1257: *73 open() "/opt/rockstor/src/rockstor/logs/rockstor.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/rockstor.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 15:30:16 [error] 1257#1257: *74 open() "/opt/rockstor/static/js/lib/jquery.min.map" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /static/js/lib/jquery.min.map HTTP/1.1", host: "rocky.lan"
> 2021/08/08 15:32:40 [error] 1257#1257: *76 open() "/opt/rockstor/src/rockstor/logs/rockstor.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/rockstor.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 15:32:41 [error] 1257#1257: *76 open() "/opt/rockstor/src/rockstor/logs/rockstor.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/rockstor.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 15:32:53 [error] 1257#1257: *76 open() "/opt/rockstor/src/rockstor/logs/rockstor.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/rockstor.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 15:33:15 [error] 1257#1257: *77 open() "/opt/rockstor/src/rockstor/logs/rockstor.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/rockstor.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 15:33:19 [error] 1257#1257: *77 open() "/opt/rockstor/src/rockstor/logs/rockstor.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/rockstor.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
> 2021/08/08 15:34:08 [error] 1257#1257: *78 open() "/opt/rockstor/src/rockstor/logs/rockstor.tgz" failed (2: No such file or directory), client: 192.168.1.192, server: ~^(?<myhost>.+)$, request: "GET /logs/rockstor.tgz HTTP/1.1", host: "rocky.lan", referrer: "https://rocky.lan/home"
1 Like