These are chat archives for ushahidi/Community

12th
Sep 2017
CR0CKER
@CR0CKER
Sep 12 2017 02:07 UTC
@ushbot I've added an issue on Github about the search field: ushahidi/platform#2054
@ushbot Regarding the submission issue, I've had cases on iOS where certain apps had problems accessing the VPN connection -- the Protonmail mobile app, a few months ago, for example. Maybe the Ushahidi app is suffering from the same issues. All other apps are working fine, so I don't think it's a connection issue
CR0CKER
@CR0CKER
Sep 12 2017 02:31 UTC
@ushbot I've submitted an issue about the submission failure here: ushahidi/platform#2055
Igor Golov
@TechnoDexx
Sep 12 2017 03:45 UTC
@ushbot WOW! We have another error: Sorry, something went wrong. Try reloading the page. )))))) It's success for me ))))))
Ushbot
@ushbot
Sep 12 2017 05:58 UTC
[David Losada, Ushahidi] thank you @CR0CKER , that’s super useful information
Ushbot
@ushbot
Sep 12 2017 06:03 UTC
[David Losada, Ushahidi] @TechnoDexx , that’s good progress :) It looks like what you need to do is to configure the MySQL database properly . Please see this document about creating a database inside your mysql server, and a user with access to it: https://opensourcehacker.com/2010/12/21/creating-mysql-database-and-user-from-command-line/
[David Losada, Ushahidi] then you should take that database name , user name and password and write them in a file , as per step 4 of our instructions
[David Losada, Ushahidi] then run the command in step 5
Igor Golov
@TechnoDexx
Sep 12 2017 06:06 UTC
@ushbot re-migrate database. I think so! :smile:
@ushbot Hi, David! Nice to meet you again! :smile:
Ushbot
@ushbot
Sep 12 2017 06:15 UTC
[David Losada, Ushahidi] hi :)
Igor Golov
@TechnoDexx
Sep 12 2017 06:27 UTC
@ushbot Create the database again? I created the database, and then copied the folder to another location.
Ushbot
@ushbot
Sep 12 2017 06:28 UTC
[David Losada, Ushahidi] ok, if you created the database then that’s fine
[David Losada, Ushahidi] you don’t need to do it again
[David Losada, Ushahidi] do you have that .env file in the new location? it should be under the html/platform folder
Igor Golov
@TechnoDexx
Sep 12 2017 06:30 UTC
@ushbot I am migrate and move folder to another location. And I am not write DirectoryIndex instruction in my apache.conf.
@ushbot Yes, I have
@ushbot WOW! WE DOING IT! )))))))
Igor Golov
@TechnoDexx
Sep 12 2017 06:38 UTC
@ushbot Now saving settings is disabled. How to unlock?
Igor Golov
@TechnoDexx
Sep 12 2017 06:48 UTC
@ushbot How to add current user to www-data? Ubuntu 16.04 LTS
@ushbot sudo adduser $USER www-data?
Igor Golov
@TechnoDexx
Sep 12 2017 07:13 UTC
General data settings do not want to be saved. With what it can be connected?
Ushbot
@ushbot
Sep 12 2017 08:42 UTC
[David Losada, Ushahidi] sorry, what do you mean that it is disabled? the button is not clickable?
Igor Golov
@TechnoDexx
Sep 12 2017 09:19 UTC
@ushbot Yes. And problem solved now. I don't feel field with site name. Sorry. And now I want try to install ushahidi from sources for simply update. :smile: Wish me good luck.
Ushbot
@ushbot
Sep 12 2017 09:27 UTC
[David Losada, Ushahidi] glad to hear :) well, good luck!
Igor Golov
@TechnoDexx
Sep 12 2017 09:35 UTC
@ushbot Thanks. And let's go! :smile: Some necesssary features prepared on the first iteration, he-he. 8-)
Igor Golov
@TechnoDexx
Sep 12 2017 09:49 UTC
@ushbot I have some errors: Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Package league/url is abandoned, you should avoid using it. Use league/uri instead.
Problems, which I can correct.
Ushbot
@ushbot
Sep 12 2017 09:50 UTC
[David Losada, Ushahidi] you can continue despite those messages, they are just warnings
Igor Golov
@TechnoDexx
Sep 12 2017 09:56 UTC
@ushbot How to install Ushahidi to sub-domain, e.g map.autism-support.ru?
Ushbot
@ushbot
Sep 12 2017 09:57 UTC
[David Losada, Ushahidi] you would install the result of building platform-client repo under that subdomain .. the instructions also imply that you would need an additional subdomain for the API (coming from the platform repo), i.e. api.autism-support.ru
Igor Golov
@TechnoDexx
Sep 12 2017 09:59 UTC
@ushbot api.autism-support.ru - is BACKED_URL?
Ushbot
@ushbot
Sep 12 2017 09:59 UTC
[David Losada, Ushahidi] yes, the client needs to be configured with that api subdomain
[David Losada, Ushahidi] so when building the client you would specify BACKEND_URL=http://api.autism-support.ru
Igor Golov
@TechnoDexx
Sep 12 2017 10:14 UTC
@ushbot Create a .env file in the root of platform-client?
Ushbot
@ushbot
Sep 12 2017 10:17 UTC
[David Losada, Ushahidi] yes correct
Igor Golov
@TechnoDexx
Sep 12 2017 10:20 UTC
@ushbot Some error in npm install (PDF manual from support page):
root@autism-support-LAMP:/var/www/platform-client# npm install
npm WARN deprecated URIjs@1.16.1: package renamed to "urijs" (lower-case), please update accordingly
npm WARN deprecated connect@2.12.0: connect 2.x series is deprecated
Killed ............] \ fetchMetadata: sill mapToRegistry uri https://registry.n
root@autism-support-LAMP:/var/www/platform-client#
@ushbot Maybe run npm init?
@ushbot Result after previous error: root@autism-support-LAMP:/var/www/platform-client# sudo gulp build
[13:17:11] Failed to load external module babel-register
[13:17:11] Failed to load external module babel-core/register
[13:17:11] Failed to load external module babel/register
[13:17:11] Local gulp not found in /var/www/platform-client
[13:17:11] Try running: npm install gulp
Igor Golov
@TechnoDexx
Sep 12 2017 10:25 UTC
@ushbot After npm install gulp I have net error: [13:24:27] Failed to load external module babel-register
[13:24:27] Failed to load external module babel-core/register
[13:24:27] Failed to load external module babel/register
Igor Golov
@TechnoDexx
Sep 12 2017 10:32 UTC
@ushbot SyntaxError: Unexpected token import
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Liftoff.handleArguments (/usr/lib/node_modules/gulp/bin/gulp.js:116:3)
Ushbot
@ushbot
Sep 12 2017 10:38 UTC
[David Losada, Ushahidi] what version of node.js are you running?
Igor Golov
@TechnoDexx
Sep 12 2017 10:42 UTC
@ushbot 6.11.3
@ushbot newest of possible
@ushbot npm v. 3.10.10
Ushbot
@ushbot
Sep 12 2017 10:47 UTC
[David Losada, Ushahidi] ok, yes we support it. how much memory do you have in that server?
Igor Golov
@TechnoDexx
Sep 12 2017 10:47 UTC
@ushbot 512 Mb
Ushbot
@ushbot
Sep 12 2017 10:47 UTC
[David Losada, Ushahidi] oh yes that’s not going to be enough for doing the platform-client build
[David Losada, Ushahidi] at least 1 gb is necessary , recommended 2 gb
Igor Golov
@TechnoDexx
Sep 12 2017 10:51 UTC
@ushbot Ok. I'm changing configuration after payment processing.
Ushbot
@ushbot
Sep 12 2017 10:52 UTC
[David Losada, Ushahidi] another solution is to run the build in your own linux virtual machine and then copying over the result to the server
[David Losada, Ushahidi] all that memory is really just needed once , when building
Igor Golov
@TechnoDexx
Sep 12 2017 10:53 UTC
@ushbot Maybe platform-client release building?
@ushbot It's been very cool and very professional :clap:
Igor Golov
@TechnoDexx
Sep 12 2017 11:05 UTC
@ushbot Virtual Machine, you said? Ok.
Igor Golov
@TechnoDexx
Sep 12 2017 11:15 UTC
@ushbot What if I made client on Windows machine?
Ushbot
@ushbot
Sep 12 2017 11:51 UTC
[David Losada, Ushahidi] we know that people have had problems with building on Windows . I’ve heard a couple persons had success, but I don’t know exactly what they did for it
Igor Golov
@TechnoDexx
Sep 12 2017 11:53 UTC
@ushbot I am waiting platform-client-release, if it possible. And now I find free hosting with necessary parameters.
Ushbot
@ushbot
Sep 12 2017 11:58 UTC
[David Losada, Ushahidi] yes, we have a built release for the client only: https://github.com/ushahidi/platform-client/releases/download/v3.7.1-rc.8/ushahidi-platform-client-bundle-v3.7.1-rc.8.tar.gz . It should be compatible with the platform repo if you are running the master branch (the default when you check out from git is develop)
[David Losada, Ushahidi] in that case, the backend url is configured by modifying the config.js file that comes in the platform-client-release bundle
Igor Golov
@TechnoDexx
Sep 12 2017 11:59 UTC
@ushbot Ooook. :smile:
@ushbot How configure server/www in the bundle?
Ushbot
@ushbot
Sep 12 2017 12:27 UTC
[David Losada, Ushahidi] you pretty much put those files contained in the bundle somewhere in your server, then configure apache to serve them for your subdomain
[David Losada, Ushahidi] then as mentioned, you would edit ck fjg
[David Losada, Ushahidi] config.js to edit the backendUrl variable
Igor Golov
@TechnoDexx
Sep 12 2017 12:28 UTC
@ushbot /var/www/platform-client?
Ushbot
@ushbot
Sep 12 2017 12:29 UTC
[David Losada, Ushahidi] yes, that’s a very good choice
Igor Golov
@TechnoDexx
Sep 12 2017 12:31 UTC
@ushbot Apache reload and have fun.
@ushbot Hm/ Show empty dir...
Igor Golov
@TechnoDexx
Sep 12 2017 12:41 UTC
@ushbot Not effect...
Ushbot
@ushbot
Sep 12 2017 12:42 UTC
[David Losada, Ushahidi] in what folder is the index.html located ? and where does document root of apache point to? they should match
Igor Golov
@TechnoDexx
Sep 12 2017 12:46 UTC
@ushbot Yes. Global config (apache2.conf)?
Ushbot
@ushbot
Sep 12 2017 12:48 UTC
[David Losada, Ushahidi] it depends in what file you are configuring the virtual server .. since you are setting up two subdomains in the same machine, you would have two virtual server definitions
[David Losada, Ushahidi] *virtual host , sorry
Igor Golov
@TechnoDexx
Sep 12 2017 12:49 UTC
@ushbot Yes, I know.
Ushbot
@ushbot
Sep 12 2017 12:50 UTC
[David Losada, Ushahidi] the command apachectl -S usually gives a good summary of where is what
Igor Golov
@TechnoDexx
Sep 12 2017 12:53 UTC
@ushbot I'm tired today and I can break everything. When I get tired I think with great difficulty ..
@ushbot Thank you for your help and patience. Till tomorrow. Good luck!
@ushbot map.autism-support.ru.conf content:

@ushbot <VirtualHost *:80>

#ServerName map.support-autism.ru
DocumentRoot /var/www/platform-client/
<Directory /var/www/platform-client/>
    AllowOverride All
</Directory>

</VirtualHost>

Ushbot
@ushbot
Sep 12 2017 12:55 UTC
[David Losada, Ushahidi] thank you for your interest and effort on using our software
[David Losada, Ushahidi] it doesn’t seem right that ServerName is commented out
Igor Golov
@TechnoDexx
Sep 12 2017 12:56 UTC
@ushbot Ok. ServerName correct?
Ushbot
@ushbot
Sep 12 2017 12:58 UTC
[David Losada, Ushahidi] yes, that’s the correct name. I’d try just removing the ‘#’ char at the beginning
Igor Golov
@TechnoDexx
Sep 12 2017 12:58 UTC
@ushbot I'm did it.
@ushbot Show "Apache Ubuntu Default Page".
Ushbot
@ushbot
Sep 12 2017 13:03 UTC
[David Losada, Ushahidi] what is the output of the command
[David Losada, Ushahidi] apachectl -S
[David Losada, Ushahidi] ?
Igor Golov
@TechnoDexx
Sep 12 2017 13:04 UTC
@ushbot AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 is a NameVirtualHost
default server 127.0.0.1 (/etc/apache2/sites-enabled/autism-support.ru.conf:1)
port 80 namevhost 127.0.0.1 (/etc/apache2/sites-enabled/autism-support.ru.conf:1)
port 80 namevhost 127.0.0.1 (/etc/apache2/sites-enabled/blog.autism-support.ru.conf:1)
port 80 namevhost 127.0.0.1 (/etc/apache2/sites-enabled/map.autism-support.ru.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
@ushbot Oh,shit! apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
@ushbot VirtualHost configuration:
*:80 is a NameVirtualHost
default server autism-support.ru (/etc/apache2/sites-enabled/autism-support.ru.conf:1)
port 80 namevhost autism-support.ru (/etc/apache2/sites-enabled/autism-support.ru.conf:1)
port 80 namevhost autism-support.ru (/etc/apache2/sites-enabled/blog.autism-support.ru.conf:1)
port 80 namevhost map.support-autism.ru (/etc/apache2/sites-enabled/map.autism-support.ru.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex mpm-accept: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
Ushbot
@ushbot
Sep 12 2017 13:08 UTC
[David Losada, Ushahidi] ah ok that looks better
[David Losada, Ushahidi] you probably need to review the autism-support.ru.conf and blog.autism-support.ru.conf files too
[David Losada, Ushahidi] or at least the last one
Igor Golov
@TechnoDexx
Sep 12 2017 13:32 UTC
@ushbot Running, but not show map.
Ushbot
@ushbot
Sep 12 2017 13:34 UTC
[David Losada, Ushahidi] the client looks properly configured
[David Losada, Ushahidi] I think it’s just missing the platform repo deployed and answering requests at api.autism-support.ru
Igor Golov
@TechnoDexx
Sep 12 2017 13:36 UTC
@ushbot Bad Internet? This link not have DocumentRoot. It need it?
Ushbot
@ushbot
Sep 12 2017 13:37 UTC
[David Losada, Ushahidi] you should have a virtual host for api.autism-support.ru , the DocumentRoot for it should point at the place where you installed the contents of our github.com/ushahidi/platform repo
Igor Golov
@TechnoDexx
Sep 12 2017 13:54 UTC

@ushbot

<VirtualHost *:80>
    ServerName api.autism-support.ru
    DocumentRoot /var/www/map/
    <Directory /var/www/map>
        AllowOverride All
    </Directory>
</VirtualHost>

Is it correct?

Repo cloned to /var/www/map
Ushbot
@ushbot
Sep 12 2017 13:56 UTC
[David Losada, Ushahidi] yes I think that it looks good
Igor Golov
@TechnoDexx
Sep 12 2017 14:00 UTC
@ushbot Sorry, something went wrong. Try reloading the page. :smile:
@ushbot STOP! All tomorrow! Thank you very mach, David!
Igor Golov
@TechnoDexx
Sep 12 2017 14:56 UTC
@ushbot Try this (http://map.autism-support.ru) if you have free time for it.
Ushbot
@ushbot
Sep 12 2017 14:59 UTC
[David Losada, Ushahidi] oh sorry big oversight from my side
[David Losada, Ushahidi] DocumentRoot from api.autism-support.ru should be /var/www/map/httpdocs
Igor Golov
@TechnoDexx
Sep 12 2017 15:12 UTC
@ushbot You're tired, too, David. I am a very difficult customer. Difficult but grateful
@ushbot Yes. Wу do it. David. At last.
Igor Golov
@TechnoDexx
Sep 12 2017 15:18 UTC
@ushbot Configure your deployment to support the mobile app - What kind of deployment is it?
client or platform?
Ushbot
@ushbot
Sep 12 2017 15:28 UTC
[David Losada, Ushahidi] that’s a configuration for the client deployment , it involves creating a config.json file . you may copy the example from the documentation and just adjust backend_url
[David Losada, Ushahidi] however, I think we need to update that bit of the manual with an important technical detail about CORS headers when serving that config.json file
Igor Golov
@TechnoDexx
Sep 12 2017 15:33 UTC
@ushbot Yep.
@ushbot All documents need updates.
Ushbot
@ushbot
Sep 12 2017 15:38 UTC
[David Losada, Ushahidi] I’m sorry I can’t jump into updating that now, but if it helps, here are the headers that apache should return along with config.json : Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, OPTIONS Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range Access-Control-Expose-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range
Igor Golov
@TechnoDexx
Sep 12 2017 15:52 UTC
@ushbot config.json like this?
{

client_id: "ushahidiui",

client_secret: "35e7f0bca957836d05ca0492211b0ac707671261",

backend_url: "http://api.autism-support.ru",

google_analytics_id: "",

intercom_app_id: "",
mapbox_api_key: "",

raven_url: ""

}
Ushbot
@ushbot
Sep 12 2017 15:57 UTC
[David Losada, Ushahidi] yes, I think that looks good
Igor Golov
@TechnoDexx
Sep 12 2017 15:59 UTC
@ushbot And how to upgrade deploymeте,
Ushbot
@ushbot
Sep 12 2017 15:59 UTC
[David Losada, Ushahidi] in platform-client : download newer version and uncompress , keep your config.js and config.json files
[David Losada, Ushahidi] in platform : git pull and run bin/update
Igor Golov
@TechnoDexx
Sep 12 2017 16:03 UTC
@ushbot Done
@ushbot I meant the application. It's a little confusing how to connect to it. I'd like to understand: it is assumed that the application will be actively used.
Ushbot
@ushbot
Sep 12 2017 16:12 UTC
[David Losada, Ushahidi] do you mean, what would you need to do from the mobile app in order to connect to your deployment?
Igor Golov
@TechnoDexx
Sep 12 2017 16:14 UTC
@ushbot Yes.
Ushbot
@ushbot
Sep 12 2017 16:18 UTC
[David Losada, Ushahidi] you would click on “Add a deployment” a type in the URL of your deployment.. the client one (i.e. http://map.autism-support.ru )
Igor Golov
@TechnoDexx
Sep 12 2017 16:21 UTC
@ushbot Maybe my mobile internet is very bad...