Setting Up Cryptpad - How I Got It Installed

Quite a few issues manifested themselves whilst attempting to install Cryptpad. It is working now however, so I thought I’d document exactly what I did to get it to work.

  1. Assuming a successful install, a note appears telling you a sandboxed domain has been created which you need to install a Lets Encrypt certificate for. My first issue was that the domain was not listed with the rest of the domains.

Fix: Restart the whole server. When you log back in, the new domain will be listed and you can install the certificate and then restart the cryptpad service.

  1. Once you have created the user you want to be an Admin in Cryptpad, you need to add their public key to the config.js file in /var/www/cryptpad/config but root access is prohibited via SSH.

Fix: copy the public key from your new cryptpad user and paste it in a text file for now then logout of cryptpad. Now, ssh as your yunohost admin user, then when logged in su - root and when prompted for a password use your yunohost admin users password then you can cd /var/www/cryptpad/config and then nano config.js add the cryptpad users public key to the adminKeys array as per the instructions (remember to uncomment that section) then save and exit out of nano. Exit SSH, go back to your web based yunohost admin interface and restart the cryptpad service again. When you log back in to Cryptpad, your user should now be an Adminstrator.

3 Likes

Thanks for your feedback!

That is not normal, could it have been at the end of the list instead of being alphabetically listed? It sometimes happens on my server.

If that was in any way unclear from the help text displayed after installation and the documentation, feel free to propose an update to https://github.com/YunoHost-Apps/cryptpad_ynh/blob/master/doc/POST_INSTALL.md :slight_smile:

So I have had Cryptpad installed for a while and have restarted YH and even the entire server multiple times since then, but I still don’t have the sandbox domain in my YH Domain lost.

I’m having the same problem. Adding it manually (through the admin portal of yunohost) as a SUBDOMAIN of the domain you are using for cryptpad seems to work, but it doesn’t work all the way and I’m still having more problems.

Now we don’t need add a subdomain sandbox.cryptpad.mydomain.tld, you just need add in your registar a CNAME as suggested with

yunohost domain dns suggest cryptpad.mydomain.tld 

must be something like sandbox.cryptpad 3600 CNAME cryptpad.mydomain.tld or sandbox.cryptpad.mydomain.tld 3600 CNAME cryptpad.mydomain.tld depends how the registar accept this…

Then you must renew the certificate for cryptpad.mydomain.tld

yunohost domain cert renew cryptpad.mydomain.tld --force

But please remove if exist any domain sandbox.cryptpad.mydomain.tld or sandbox-cryptpad.mydomain.tld

Also if your domain is a .ynh.fr or .nohost.me or .noho.st it should works, I have tested on a yunohost CLIC with a domain .nohost.me… The most important is renew the cryptpad.mydomain.tld certificate with --force in the logs you should see the CNAME.

If you are talking about the domain sandbox.cryptpad.mydomain.tld, this is not true or not needed… Only the domain for cryptpad is needed, no need to restart the server…