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

404 error for getting file from filestorage on archive node #911

Open
oleksandrSydorenkoJ opened this issue Jan 19, 2023 · 4 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@oleksandrSydorenkoJ
Copy link

Describe the bug
Skale Nginx on Archive node couldn't find existing file in filsetorage. Missconfiguration in filepath

Versions
admin:2.11.0-beta-sync-node.4
nginx:1.20.2

To Reproduce

  1. Upload file on schain
  2. check file exists on the node
  3. download file via URL
    http://11.11.11.11/schain-name/<address in lowercase without 0x>/fileName.txt

Expected behavior
The file should be downloaded from the archive node if exists on blockchain

Additional context
There are different mount points to the filestorage on core nodes and on archive nodes.

@oleksandrSydorenkoJ oleksandrSydorenkoJ added the bug Something isn't working label Jan 19, 2023
@DmytroNazarenko
Copy link
Contributor

NGINX container struct on archive node:

root@----:/filestorage# ls -la
total 8
drwxr-xr-x 2 root root 4096 Jan 17 18:48 .
drwxr-xr-x 1 root root 4096 Jan 17 18:47 ..
lrwxrwxrwx 1 root root   56 Jan 17 18:48 troubled-tall-rotanev -> /var/lib/skale/schains/troubled-tall-rotanev/filestorage

root@----:/filestorage# cd /var/lib/skale/schains/troubled-tall-rotanev/filestorage
bash: cd: /var/lib/skale/schains/troubled-tall-rotanev/filestorage: No such file or directory

NGINX container struct on core node:

root@-----:/filestorage# ls -la
total 8
drwxr-xr-x 2 root root 4096 Jan 19 11:15 .
drwxr-xr-x 1 root root 4096 Nov 29 14:30 ..
lrwxrwxrwx 1 root root   46 Dec 20 21:27 troubled-tall-rotanev -> /mnt/schains-troubled-tall-rotanev/filestorage

root@-----:/mnt/schains-troubled-tall-rotanev# ls -la
total 32
drwxr-xr-x 1 root root  608 Jan 19 13:00 .
drwxr-xr-x 9 root root 4096 Jan 18 18:39 ..
drwxr-xr-x 1 root root   80 Jan 19 10:48 filestorage

@badrogger
Copy link
Contributor

badrogger commented Jan 19, 2023

Fixed in node-cli 2.2.1-beta-sync-node.2

@badrogger
Copy link
Contributor

  1. Download new node cli.
  2. Run skale sync-node update

@oleksandrSydorenkoJ
Copy link
Author

Verified on Legacy network
2.2.1-beta-sync-node.2
schain-name: troubled-tall-rotanev

 [20/Jan/2023:12:45:43 +0000] "GET /troubled-tall-rotanev/b04a7f2...89c0/Test.txt HTTP/1.1" 200 1048576 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" "-"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

4 participants