Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Zer00CooL
@ZerooCool
Leo Giovanetti
@leog
Hi there! I was wondering if there is any guide to deploy an extender democracyos instance to heroku. Trying to figure out how to do it firstly with the extension-example. Thanks in advance
suman bahuguna
@suman_bahuguna_twitter
hi.. would like to know more on design of democracyos, than what docs and youtube video say.. is this the right place to ask.. cheers
Tulasi
@tulauppu
I am trying on Windows 7 Professional using Docker Toolbox and getting below error while starting the app
$ docker-compose up app
Creating democracyos_mongo_1 ... done
Creating democracyos_mongo_1 ...
Creating democracyos_app_1 ... done
Attaching to democracyos_app_1
app_1 | module.js:471
app_1 | throw err;
app_1 | ^
app_1 |
app_1 | Error: Cannot find module './lib/build'
app_1 | at Function.Module._resolveFilename (module.js:469:15)
app_1 | at Function.Module._load (module.js:417:25)
app_1 | at Module.require (module.js:497:17)
app_1 | at require (internal/module.js:20:19)
app_1 | at Object.<anonymous> (/usr/src/gulpfile.js:1:63)
app_1 | at Module._compile (module.js:570:32)
app_1 | at Object.Module._extensions..js (module.js:579:10)
app_1 | at Module.load (module.js:487:32)
app_1 | at tryModuleLoad (module.js:446:12)
app_1 | at Function.Module._load (module.js:438:3)
democracyos_app_1 exited with code 1
Anyone come across this kind of error and how to fix. Any help would be highly appreciated, Thanks.
Zer00CooL
@ZerooCool

Hello, thank you for your return for the advice to use Heroku.
I would prefer to use OnPremises, but I would also look for Heroku.

If you can read my tutorial in French, step by step, for the moment, I am trying to improve it to deploy DemocracyOS with OnPremises.
Your tests and your help would be appreciated.

For now, I'm stuck with the configuration files, I do not know how to create it yet and what to put it. It's not so easy.
https://www.visionduweb.eu/wiki/index.php?title=Installer_DemocracyOS#Reprendre_sur_la_Machine_Virtuelle

Timo Brandstätter
@timo0

Hey there, i'm trying to setup the notification system with sendgrid my current settings are:

 "notifications": {
    "url": "",
    "token": "",
    "mailer": {
      "name": "DemocracyOS",
      "email": "democracyos@domain.com”,
      "service": "smtp.sendgrid.net",
      "auth": {
        "user": "apikey",
        "pass": “somepwd”
      }
    },
    "nodemailer": {}
  },

but unfortunately i've never received any mail and I'm not able to login

frn
@franciclo
@ZerooCool onpremises repo is an internal tool and its not fully tested, i can't answer many questions about it because i don't use it as often. You should use the main repo instead.
@JamesJWalsh_twitter there is no way of bulk insert users yet.
@leog there is no guide for extensions instances of democracyos, its not the same as the main repo because extension depends on docker, you could now deploy docker containers to heroku. Read this https://devcenter.heroku.com/articles/container-registry-and-runtime
@tulauppu docker toolbox has problems with symbolic links, and linked can volumes fail without proper virtualization (with hyper-v) so we dont support windows 7
@timo0 can you check the logs and see if there was some error with notifications?
Timo Brandstätter
@timo0
@franciclo thanks, sadly there was no log but now I found the solution: for service I have to use SendGrid
But now I've a other problem.. I can't edit the permissions
Timo Brandstätter
@timo0
In the browser console I've following error
Failed to load resource: the server responded with a status of 500 (HTTP/2.0 500)
Error: HTTP/2.0 500
(anonymous function) — admin.js:59634
emit — admin.js:14495
onreadystatechange — admin.js:59768
Unhandled Promise Rejection: Error: HTTP/2.0 500
Timo Brandstätter
@timo0
I've created a issue for that
Joshua Hogendorn
@jhogendorn
Hi all, does democracyos have support for semipermanent proxy allocation? (ie liquid democracy)
frn
@franciclo
hi @jhogendorn it does not
Zer00CooL
@ZerooCool
Hello all !
I want use Docker : DemocracyOS and MongoDB.
Can you see this picture ? https://www.visionduweb.eu/wiki/index.php?title=Installer_DemocracyOS#Acc.C3.A9der_.C3.A0_DemocracyOS
And, this related post for help : DemocracyOS/democracyos#1478
KajMagnus
@kajmagnus
Hi! I'm curious about how the DemocracyOS developers / team think about DemocracyOS vs DemocracyEarth, https://www.democracy.earth/? To me the projects seem to have similar goals? (create communities, submit proposals, vote.) Except that they have different user interfaces ... and DemocracyOS supports many-options-polls, whilst D.E. uses the blockchain?
What's the important differences, from your point of view? (I've been reading about them for a while now but still fairly unclear to me)

On the homepage, there's this info: "Debate in a platform that rewards the best arguments" (http://democracyos.org/). Has that been implemented yet? How does it work? Or how is it going to work? ...

... How does the software know if an argument is good or not? Is it based on up and downvotes? And in which way does one/something get rewarded?

frn
@franciclo
Hi everyone, @ZerooCool i respond it in the issues.
@kajmagnus DemocracyEarth started from two of the founders of DemocracyOS, they are focusing in the technological part of the decision making process and the possible use cases for blockchain in those processes, we focus on how are the participatory processes are represented in a web app, so we base on the need to implement the current legislation of this processes (for example participatory budgeting), in a digital form, our objective is to improve the local government's civic participation processes, and i believe DemocracyEarth focus on the groundbreaking application of the blockchain in the governance, that could lead to newer participatory processes.
Zer00CooL
@ZerooCool
Thank you, i read and test that.
Mert Gör
@hwpplayer1
hi people
davidosky1
@davidosky1
Hello!, I just installed in heroku this app: democracybds.herokuapp.com but the app crashes... here`s the log
2018-05-18T14:10:21.406714+00:00 app[web.1]: at Module.require (module.js:504:17)
2018-05-18T14:10:21.406716+00:00 app[web.1]: at require (internal/module.js:20:19)
2018-05-18T14:10:21.406718+00:00 app[web.1]: at Object.<anonymous> (/app/lib/api-v2/validate/index.js:1:118)
2018-05-18T14:10:21.406720+00:00 app[web.1]: at Module._compile (module.js:577:32)
2018-05-18T14:10:21.406721+00:00 app[web.1]: at Object.Module._extensions..js (module.js:586:10)
2018-05-18T14:10:21.406723+00:00 app[web.1]: at Module.load (module.js:494:32)
2018-05-18T14:10:21.486735+00:00 heroku[web.1]: Process exited with status 1
2018-05-18T14:10:21.500588+00:00 heroku[web.1]: State changed from starting to crashed
2018-05-18T14:10:21.712510+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=democracybds.herokuapp.com request_id=b1ee5b6b-ba1c-468f-934b-930ed844c49e fwd="190.16.84.204" dyno= connect= service= status=503 bytes= protocol=https
2018-05-18T14:10:22.524073+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=democracybds.herokuapp.com request_id=5fd71a5c-9a52-48c4-8380-75182e38aea6 fwd="190.16.84.204" dyno= connect= service= status=503 bytes= protocol=https
do you know what`s the problem? THANKS!
carlosjimz87
@carlosjimz87
Hello. I want to ask some questions but excuse me if this is not the correct channel to do it.
  1. Is DemocracyOS based on blockchain ?
2.How is guaranteed the unique and genuine identification of the people who use the platform to vote. Is it using biometry?
Thanks a lot. Regards
frn
@franciclo
hi @davidosky1 your log is missing the message, is only part of the stack what you pasted here
@carlosjimz87 DemocracyOS is not based on blockchain take a look at vote.democracy.earth if you are into that.
for proper identification we usually delegate to other sistems that use some SSO protocol as OAuth 2 or OpenId and hook it with passport.js, you would have to make that on your own though
abdulrahimq
@abdulrahimq
I would like to know if there is any guide to put the website into production? I can see this when I go to http://localhost:3000/api {"app":"democracyos","version":"2.11.6","apiUrl":"/api"}
bazzar1980
@bazzar1980

Hi i have an issue with a notification service after signing, i didn't receive any email:
my configuration is the following:

"mailer": {
"name": "The DemocracyOS Team",
"email": "*@**.com",
"service": "gmail",
"auth": {
"user": "**@*.com",
"pass": "*"

can you help me?

bazzar1980
@bazzar1980

after configuring the https i had this error:
018-06-21T11:49:27.063383+00:00 app[web.1]: events.js:160
2018-06-21T11:49:27.063426+00:00 app[web.1]: throw er; // Unhandled 'error' event
2018-06-21T11:49:27.063428+00:00 app[web.1]: ^
2018-06-21T11:49:27.063429+00:00 app[web.1]:
2018-06-21T11:49:27.063430+00:00 app[web.1]: Error: listen EACCES 0.0.0.0:443
2018-06-21T11:49:27.063431+00:00 app[web.1]: at Object.exports._errnoException (util.js:1020:11)
2018-06-21T11:49:27.063433+00:00 app[web.1]: at exports._exceptionWithHostPort (util.js:1043:20)
2018-06-21T11:49:27.063434+00:00 app[web.1]: at Server._listen2 (net.js:1258:19)
2018-06-21T11:49:27.063435+00:00 app[web.1]: at listen (net.js:1307:10)
2018-06-21T11:49:27.063436+00:00 app[web.1]: at Server.listen (net.js:1403:5)
2018-06-21T11:49:27.063438+00:00 app[web.1]: at Object.server.listen (/app/lib/server-factory/index.js:20:21)
2018-06-21T11:49:27.063439+00:00 app[web.1]: at Promise (/app/lib/server/index.js:15:16)
2018-06-21T11:49:27.063441+00:00 app[web.1]: at Array.map (native)
2018-06-21T11:49:27.063440+00:00 app[web.1]: at Promise.all.servers.map (/app/lib/server/index.js:14:14)
2018-06-21T11:49:27.063442+00:00 app[web.1]: at startWebServer (/app/lib/server/index.js:13:32)
2018-06-21T11:49:27.063443+00:00 app[web.1]: at listen (/app/lib/server/index.js:39:5)
2018-06-21T11:49:27.063444+00:00 app[web.1]: at checkNodeVersion.then.then.then (/app/index.js:22:7)
2018-06-21T11:49:27.128020+00:00 heroku[web.1]: Process exited with status 1
2018-06-21T11:49:27.142317+00:00 heroku[web.1]: State changed from starting to crashed
2018-06-21T12:01:44.291105+00:00 heroku[router]: at=error code=H10

i need to change something in the configurations?

frju365
@frju365
@bazzar1980 hello ! I think that this error is due to an application which already listen to the port 443 like a server software (nginx, apache...). So you will need to pass through a proxy and change the port.
btw: your error is quite strange. Normally, you have this line in you default.json : "publicPort": 3000,and this : "port": 443, : change it.
bazzar1980
@bazzar1980
@frju365 Ok, thanks i will try and let you know
bazzar1980
@bazzar1980

Sorry, but i have a problem with the notifier service. I deployed my app on Heroku but as locally as on Heroku i don't receive the notification email, can someone help me on this?
this is my configuration:

"notifications": {
"url": "",
"token": "",
"mailer": {
"name": "The DemocracyOS Team",
"email": "@yahoo.com",
"service": "Yahoo",
"auth": {
"user": "*
@yahoo.com",
"pass": "*"
}
},
"nodemailer": {}
},

i tried also with gmail and i have the same behaviour. if my conf is ok but for some reason doesn't work, can you tell me how is it the nodemailer configuration?

thanks for your time.

frn
@franciclo
Hi @bazzar1980 try including the port in the NOTIFICATIONS_NODEMAILER variable like this NOTIFICATIONS_NODEMAILER={"port":443,"secure":true}
bazzar1980
@bazzar1980
@franciclo thanks, i will try and let you know...
Zer00CooL
@ZerooCool

I can not really get DemocracyOS running from Docker.
1- The mails still do not arrive.
2- I did not advance on https.

I took the opportunity to retest following the previous question. Still without success.

"notifications": {
"url": "",
"token": "",
"mailer": {
"name": "The DemocracyOS Team",
"email": "mon_mail@yahoo.com",
"service": "Yahoo",
"auth": {
"user": "mon_mail@yahoo.com",
"pass": "le_mot_de_passe"
}
},
"nodemailer": {"port":443,"secure":true}
Should you restart a service at this time to apply the new configuration?
The message is sent. Nothing happens. How to view messages sent by DemocracyOS? Where are the logs?
  • I would like to find the first message in the memory that probably concerns the admin account. I have no admin access yet. Sad.
  • I would also like to find this second message sent, still without success, to test a user account.
Step by step, my way for install DemocracyOS with Docker : 7 to 7.8 it is okay it's my mean. You can look and confirm, please.
https://www.visionduweb.eu/wiki/index.php?title=Installer_DemocracyOS#Installer_DemocracyOS_avec_Docker
bazzar1980
@bazzar1980

@franciclo i tested with the parameters that you suggested me ad it works... but now i have another issue, when the mail arrives there is no clickable link, following the email:
Hi, pluto,

Please click here to validate your email address.

The DemocracyOS team.

PS: if you didn't sign up, please ignore this email.

can you tell me why it happens? i don't see anythings in the log, but in the mongo db i saw this link:

"validateUrl": "htpps:my_app.herokuapp.com:80/signup/validate/5b4113d86021b600048c6767",
"to": "my_mail@gmail.com"
},
i tried to copy and paste but as you can see the validation url it's wrong
Zer00CooL
@ZerooCool
@bazzar1980 can you give me your config / mail config, with pastebin, i can't send mail and i want test with your config.