Codema.in: Difference between revisions

No edit summary
m Akshay moved page Loomio to Codema.in without leaving a redirect: loomio is the software, codema.in is the item being documented
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[https://freesoftwareindia.org/ Loomio] instance at https://codema.in. Loomio is a '''co'''llaborative '''de'''cision-'''ma'''king platform (hence we're using the name '''codema''') where users can initiate discussions and put up proposals.
[https://freesoftwareindia.org/ Loomio] instance at https://codema.in. Loomio is a '''co'''llaborative '''de'''cision-'''ma'''king platform (hence we're using the name '''codema''') where users can initiate discussions and put up proposals.


== Hosting ==
== Setup ==
We are now on a [https://www.scaleway.com/virtual-cloud-servers DEV1-S instance] virtual cloud server with the following specs:
Caddy -> docker compose from https://github.com/loomio/loomio-deploy/ (with minor modifications to avoid ports 25, 80, 443 from colliding with ports on the host)
Moved to this server, by Dec 2019, to consolidate all groups related to FSCI and Indian Pirates from loomio.org and codema.fsci.org.in to a single loomio instance.


* 2 x86-64 bit Cores
SMTP using Akshay's mail server.
* 2 GB Memory
 
* 20GB SSD Disk
=== Related Services ===
* 100 Mbit/s Bandwidth
 
* 1 Reserved IP (v4)
* [[Wiki.fsci.in]] runs on the same server.
* €5.58/Month


== Coordination ==
== Coordination ==
Line 19: Line 17:


Maintained in a private git repo at -> https://git.fosscommunity.in/community/access
Maintained in a private git repo at -> https://git.fosscommunity.in/community/access
== Deployment ==
We use [https://github.com/loomio/loomio-deploy/ loomio-deploy] for deployment with only the following diff (because we have other services running on the server we proxy via nginx):<syntaxhighlight lang="diff">
git diff
diff --git a/docker-compose.yml b/docker-compose.yml
index 0be5300..62a7f26 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,8 +8,8 @@ services:
    networks:
      - main
    ports:
-      - 80:80
-      - 443:443
+      - 127.0.0.1:8088:80
+      - 127.0.0.1:4443:443
    volumes:
      - ./nginx.conf:/etc/nginx/conf.d/custom.conf:ro
      - certs:/etc/nginx/certs
</syntaxhighlight>
We use Akshay's mail server for sending outbound mails. We have the following in .env
ALLOW_ROBOTS=1
FEATURES_EXPLORE_PUBLIC_GROUPS=1


== History ==
== History ==
Initially some groups were setup on upstream's service: loomio.org


Before moving the service to current server, we were on a [https://www.scaleway.com/virtual-cloud-servers DEV1-S instance] virtual cloud server with the following specs:
A loomio instance was also set up later on codema.fsci.org.in
 
* 2 x86-64 bit Cores
* 2 GB Memory
* 50GB SSD Disk
* 200 Mbit/s Bandwidth
* 1 Reserved IP (v4)
* €3.99/Month
 
We were initially on a [https://www.scaleway.com/virtual-cloud-servers VC1-S instance] virtual cloud server with the following specs until 31/01/2019.


* 2 x86-64 bit Cores
Later, in December 2019, groups from both these instances were consolidated into a new instance at codema.in. The group data was exported using data export options provided by loomio. Changed the url links in the json data to point towards <nowiki>https://codema.in</nowiki>. The resulting json files was imported into the new codema instance as described [https://help.loomio.org/en/user_manual/groups/data_export/#import here].
* 2GB Memory
* 50GB SSD Disk
* 1 Reserved Public IPv4
* 200Mbit/s Unmetered bandwidth
* €3.99/Month


On 01/02/2019 our server was taken down by [https://scaleway.com Scaleway] quoting payment issues. Payment was failing even after updating the credit card details and following that our server got deleted without proper notifications from Scaleway's side. Screenshot of the email from Scaleway attached below. Fortunately we were provided with a snapshot of the server from which we were able to recover codema to a new server. The service was moved to
=== Takedown and restoration ===
 
On 01/02/2019 our server was taken down by [https://scaleway.com Scaleway] quoting payment issues. Payment was failing even after updating the credit card details and following that our server got deleted without proper notifications from Scaleway's side. Fortunately we were provided with a snapshot of the server from which we were able to recover codema to a new server.
=== Loomio Deployment History ===
 
Initially loomio was deployed and updated on codema.fsci.org.in using this official guide - https://github.com/loomio/loomio-deploy.
 
Then, for a while loomio was deployed and updated on codema.in using the same official guide but with difference on the fact that compose file used [https://hub.docker.com/r/dannycarrera/nginx-proxy nginx-proxy] and additional parameter of VIRTUAL_HOST_ALIAS in the env file. The VIRTUAL_HOST_ALIAS is for redirecting www.codema.in queries to codema.in. We used the smtp server from nemo.libreinfra.org for sending outbound mails.
 
The deployment from 2023 is documented above
 
=== Codema data migration process ===
 
For migration of loomio groups from both loomio.org and codema.fsci.org.in, the group data was exported using data export options provided by loomio. Changed the url links in the json data to point towards https://codema.in. The resulting json files was imported into the new codema instance after setting up the docker service as described [https://help.loomio.org/en/user_manual/groups/data_export/#import here].
 
=== Codema recovery process ===


''Here's a brief description of how codema was recovered after the server take down on 01/01/2019:''
''Here's a brief description of how codema was recovered after the server take down on 01/01/2019:''


Under 'Snapshots' tab in the Scaleway dashboard we were provided with the snapshot (backup) of our codema server. A system image was created from this snapshot and it was used to create a new server with similar specifications. We lost our public IP along with the old server, so a new IP was assigned to the server and then updated the DNS A record of codema.fsci.org.in to point to this new IP. Once the server was up loomio was restarted using the following commands from the loomio installation directory:
Under 'Snapshots' tab in the Scaleway dashboard we were provided with the snapshot (backup) of our codema server. A system image was created from this snapshot and it was used to create a new server with similar specifications. We lost our public IP along with the old server, so a new IP was assigned to the server and then updated the DNS A record of codema.fsci.org.in to point to this new IP. Once the server was up loomio was restarted using standard procedure.
 
  docker-compose down
  docker-compose up -d
 
The logs were checked for errors using the following command:
 
  docker-compose logs -f
 
Loomio wasn't getting started saying the port 25 was already in use. So the application using that port (which was exim4 in this case) was killed and loomio was restarted again.
 
 


An archive of the old loomio page is available at [[Loomio/Archive_1|Loomio Archive]].
An archive of the old loomio page is available at [[Loomio/Archive_1|Loomio Archive]].


[[Category: Services]]
[[Category: Services]]