This is not the best place, but maybe someone of you have installed Pydio in your DietPi and have faced this issue. If this is the case, please help me!
I’ve installed Pydio on my Odroid C2, DietPi v119, installed using dietpi-software.
I have an NoIP domain, let’ say xxx.ddns.net
I have a OpenWRT router/DNS server (local IP 192.168.1.1) that knows that xxx.ddns.net is my local IP 192.168.1.12, where I have my DietPi, configured using dnsmasq. All the computers connecting at home get their IPs from this router and they know DNS server is the router, with the IP 192.168.1.1
I can go to http://xxx.ddns.net/pydio/ using Firefox or Chrome and I go into my Pydio web interface, so my computers are getting the DNS resolution from my router, OK.
THE PROBLEM:
But when I try to get into my Rasp Pydio using te Sync Client (I’m on OS X El Capitan), I get this message:
Error while trying to connect to http://xxx.ddns.net/pydio/ :
Server not found (404), is it up and has it Pydio installed ?
What’s the problem? Maybe the sync client is using another DNS server by default, not my router’s DNS dnsmasq server, maybe Google’s 8.8.8.8 or whatever?
This morning I have checked what happened “from the outside” of my LAN. In web browser on my Android smartphone I can get into the Pydio webpage but when I try to get into it using the Android Sync Client I get the same error message.
Do you know if No-IP Dynamic DNS service is not compatible with Pydio? Has anybody tried to do the same as me before? Which results?
I’ve done this because LetsEncrypt doesn’t give SSL certificates for NO-IPs domains (mine is xxx.ddns.net).
After that, I’ve installed everything as Fourdee describes in its guide, using the same MySQL database, and so on.
Finally, my OS X Pydio Client Sync has worked, and I don’t have any of the warnings I had the first time I installed Pydio
Conclusion: The problem was not a DNS related theme, but the way Pydio was installed on my Odroid C2. After many tests, I realised the problem was API was not working properly. Reinstalling Pydio, problem got solved.
Bizzare, I was able to get a LetEncrypt SSL cert for fuzon.co.uk a while back, although, this was for a NoIp managed dns. Was your NoIp url one of the free ones?
Yes, I have to say I’m using a free No-IP domain, not a managed one. If I had a managed one, it could be xxx.com and I could have a LetsEncrypt certificate, but because my domain is a xxx.ddns.net, and somebody before me has asked to LetsEncrypt an SSL cert for his whatever.ddns.net domain, I cannot get one.
This is the handicap of free No-IP dynamic domains.
Ah, yes, LetEncrypt has a limit on how many certs you can do a month. I believe it was 5 certs when I was testing it. So Letencrypt must only be checking the base domain (*.ddns.net).
It may be worth creating a git ticket for LetsEncrypt (now certbot): https://github.com/certbot/certbot/issues
Maybe other users have the same issue with NoIp free domains, should give it some traction.
I’ve tried to install Pydio twice - on RPi3 and on VirtualBox image of the latest DietPi. Both times it installed just fine, but I can’t use Pydio Sync on Windows - Error while trying to connect to http://192.168.1.23/pydio :
Server not found (404), is it up and has it Pydio installed ?
I don’t have HTTPS, just plain HTTP and everything else is default DietPi configs.
By “use Pydio Sync on Windows” you mean accessing the webUI via browser form remote Windows system?
Which webserver did you choose/install?
I just tried install on Stretch VM with default Lighttpd and it works well and webUI shows up. It shows a warning an an error about output buffering and direct accessible data directory. This is because we currently only actively configure Apache: https://github.com/Fourdee/DietPi/issues/1913
But this does not break access.
No, web access is fine. I’m trying to use sync client apphttps://pydio.com/en/get-pydio/downloads/pydiosync-desktop-app.
I haven’t changed default web server, so I guess it is Lighttpd.
No rewrite statement shown, however on Fedora. Only for WebDAV access, which is a different thing, out of usual base URL rewrite.
I’m currently installing Nextcloud to verify that it is the same there, as I always thought nothing is required (besides rewrite module enabled).
… jep on Nextcloud even on output, no rewrite is done. We need to add pretty URLs for Lighttpd.
Ah jep sorry, forgot that we just added this with v6.18.
Okay then do the following:
echo '$HTTP["url"] =~ "^/pydio($|/)" {
# Deny access to pydio/data dir
$HTTP["url"] =~ "^/pydio/data" {
url.access-deny = ("")
}
# Rewrite to pretty URLs, which is required for sync clients
url.rewrite-if-not-file = ( "^/pydio/([^.]+)/?$" => "/pydio/index.php/$1" )
# Disable PHP output buffering, recommended by Pydio
setenv.add-environment += (
"PHP_ADMIN_VALUE" => "output_buffering=Off",
)
}' > /etc/lighttpd/conf-available/99-dietpi-pydio.conf
lighttpd-enable-mod dietpi-pydio
systemctl restart lighttpd
This also resolves the warnings on pydio setup about output buffering and data dir access permissions. If you resolved this already somewhere else, you should remove one of the directives.