Failed to integrating File Server
I'm implementing Psono.PW CE in my organization, but when trying to implement the File Server role i'm having trouble integrating.
- I have Server, Client, Admin Client, Reverse Proxy and File Server roles all on the same host server via Docker
- The File Server implementation was performed with a different domain address.
- SSL certificate was created via Let’sEncrypt/Certbot in Wildcard version
- Server is Ubuntu Server 22.04 with Nginx web service
When accessing https://pw.mydomain.com/server/info/ the JSON output is shown:
{"info":"{\"version\": \"3.0.0 (Build 732cd96e)\", \"api\": 1, ....
When accessing https://fspw.mydomain.com/fileserver/info/ the JSON output is shown:
{"info":"{\"version\": \"1.0.4 (Build 4ba430a9)\", \"fileserver_id\": ....
When I run the File Server configuration test:
sudo docker run --rm -v /opt/docker/psono-fileserver/settings.yaml:/root/.psono_fileserver/settings.yaml -v /opt/psono-shard:/opt/psono-shard -ti psono/psono-fileserver:latest python3 ./psono/manage.py testconfig
Output is shown:
Success: SECRET_KEY configuration found.
Success: PRIVATE_KEY configuration found.
Success: PUBLIC_KEY configuration found.
Success: SERVER_URL configuration found.
Success: SERVER_PUBLIC_KEY configuration found.
Success: CLUSTER_ID configuration found.
Success: CLUSTER_PRIVATE_KEY configuration found.
Success: HOST_URL configuration found.
Success: SHARDS configuration found.
- Success: SERVER_URL format seems to be correct
- Success: Your SERVER_URL port is an integer.
- Success: Your SERVER_URL port is in the correct range.
- Success: Host resolved
- Success: Host and port exist and firewall seems to allow connections.
Testing shard 1309....c585:
- Success: Required property read present
- Success: Required property write present
- Success: Required property delete present
- Success: Required property engine present
- Success: property engine has the right type
- Success: Required property class present
- Success: Required property kwargs present
- Success: Required property location in your engine's kwargs present.
- Success: Required property location in your engine's kwargs present.
- Success: Test file successfully created with user unknown.
- Success: Stored test file successfully deleted with user unknown.
- Success: Connection to server and authorization successful.
Successfully completed. (Don't forget to restart your fileserver if you have modified your settings.yaml.)
Checked if I was being affected by the Python library ssl certificate issue:
sudo docker run psono/psono-fileserver python -c "import requests; print((requests.get('https://pw.mydomain.com')).content)"
Output is shown:
b'<!DOCTYPE html>\n<html lang="en">\n<head>\n <title>Psono PW</title>\n <meta charset="utf-8">\n ....
Searching in previous issues to see if i could solve it, I found a command would be the "executed" by the system to validate the File Server:
sudo docker run psono/psono-fileserver python -c "import requests; print((requests.put('https://pw.mydomain.com/server/fileserver/alive/', json={}, verify=True, headers={})).content)"
Output is shown:
b'{"detail":"Login failed"}'
- I don't know what else to do to make this integration work.
- I've already created different certificates for each of the domains;
- I've already created new KEYs with for integration trying to fix the "Login failed" problem;
- I've gotten to the point of deleting everything and doing it all over again, but i can't locate the problem;
Of course with this failure, i can't see the File Server in the Admin Client or add files in the Web Client "No file server available"
I'll add here all the files that were created and edited from the settings so you can help me.
/opt/docker/psono/settings.yaml settings.yaml
/opt/docker/psono-client/config.json config.json
/etc/nginx/sites-available/pw.mydomain.com.conf pw.mydomain.com.conf
/opt/docker/psono-server/settings.yaml settings.yaml
/etc/nginx/sites-available/fspw.mydomain.com.conf fspw.mydomain.com.conf