Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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.
Kristofer Lund
@kristoferlund
Cheers all! Is DemocracyOS in active development or has focused been moved to Democracy Earth?
frn
@franciclo
Yes as you can see in the repo we are still working on DemocracyOS, we have a lot of work actually, so we can't answer all the questions right now, apologies
r-christie
@r-christie
Hi, has anyone else here managed to setup the platform successfully with windows 10 and Docker? I'd like to ask afew questions about the setup
r-christie
@r-christie

Looking to resolve this issue, which occurs upon using docker-compose up app, :
failed to connect to server [mongo:27017] on first connect [MongoError: getaddrinfo ENOTFOUND mongo mongo:27017]
at Pool.<anonymous> (/usr/src/node_modules/mongoose/node_modules/mongodb-core/lib/topologies/server.js:328:35)
app_1 | at emitOne (events.js:96:13)
app_1 | at Pool.emit (events.js:188:7)
app_1 | at Connection.<anonymous> (/usr/src/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:280:12)
app_1 | at Connection.g (events.js:292:16)
app_1 | at emitTwo (events.js:106:13)
app_1 | at Connection.emit (events.js:191:7)
app_1 | at Socket.<anonymous> (/usr/src/node_modules/mongoose/node_modules/mongodb-core/lib/connection/connection.js:177:49)
app_1 | at Socket.g (events.js:292:16)
app_1 | at emitOne (events.js:96:13)
app_1 | at Socket.emit (events.js:188:7)
app_1 | at connectErrorNT (net.js:1034:8)
app_1 | at _combinedTickCallback (internal/process/next_tick.js:80:11)
app_1 | at process._tickCallback (internal/process/next_tick.js:104:9)

I've been following these guides so far:
http://docs.democracyos.org/install.html
http://docs.democracyos.org/develop/
http://docs.democracyos.org/develop/#running-the-app
and also:
DemocracyOS/democracyos#1478

Jared Rewerts
@j-rewerts
I'm a little late here, but do you have Mongo running on port 27017?
Can you confirm it's accessible by connecting to the Mongo db container using the mongo cli?
Nicolas Petitdemange
@Farocs
Hello. I can't find the documentation for transform democracoys as a service, somebody have information ? :)
Nicolas Petitdemange
@Farocs
Ok, I have another problem. I'm unable to change my system to production mode (or testing).
When a write echo $NODE_ENV the result is OK (testing or production) but when a "make" : If file doesn't exist, no creation. If a create manually the file, no effet.
r-christie
@r-christie
Hi Jared, not to worry it's been busy for me here too. I have it running on that port yes, I copied the defaults.json file within the config folder, to development.json so that I can change settings if need be. The only change I made from the defaults was to change localhost to mongo (which I did along side the suggestions from post DemocracyOS/democracyos#1478), are there other configurations in there which I might need to change?
r-christie
@r-christie
Has no one else managed to get this setup working on Windows?
svit89
@svit89
Hi anyone do with success auth2 with wordpress?
Zer00CooL
@ZerooCool
@r-christie I search ... I test with Linux, and Docker : https://www.visionduweb.eu/wiki/index.php?title=Installer_DemocracyOS
@everyone : How can i change the path url, in the mail ? The path in the mail is http://mongo:3000/signup/validate/5bb6a423..
Zer00CooL
@ZerooCool
Hi. Yes, i have installed DemocracyOS !!! -> http://unis-pour-la-planete.com:3000/
I need change the path url, in the mail. I have this in the mail : http://mongo:3000/signup/validate/5bb6a423.....
Can you give help for that ?
savoirdusage
@savoirdusage

Hi everyone and happy new year ! I'm trying to figure how to get the embebed notifier working. My DemocracyOS version is 2.11.16 and my server is running with CentOS 7 (using a Plesk interface). I set my configuration environment as explained here : https://docs.democracyos.org/configuration.html
The api is running on production on port 4443 with the right config set on my production.json file. I got a SendGrid account and tried different configurations mentioned in this chat, but the notifier is still not sending anything.
Here is my config :

"notifications": {
"url": "",
"token": "",
"mailer": {
"name": "My domain",
"email": "noreply@mydomain.com",
"service": "SendGrid",
"auth": {
"user": "mysendgridusername",
"pass": "mysendgridpassword"
}
},
"nodemailer": {"port":4443,"secure":true}
},

Could anyone help me with that issue ?
Thanks in advance !
Thomas

savoirdusage
@savoirdusage
@franciclo @bazzar1980 @ZerooCool @timo0 @gvilarino @moustachu Any ideas ? Thanks a lot and have a good day !
Zer00CooL
@ZerooCool
@savoirdusage I don't, with my - little - test with docker, i have the same, when i use "nodemailer": {........}
If i don't use any value in "nodemailer": { ...... } then, it's ok !
savoirdusage
@savoirdusage
Thanks @ZerooCool ! Unfortunately it's still not working...