These are chat archives for ushahidi/Community

4th
Oct 2018
Robby O'Connor
@robbyoconnor
Oct 04 2018 01:33
:wave:
Ushbot
@ushbot
Oct 04 2018 01:46
[Romina Suarez, Ushahidi] Hi @invoq, I’m not sure what you are trying to do (as in , what’s the integration about), but if you provide more detail maybe someone can help / give you some ideas.
Joel Aldor
@joelaldor
Oct 04 2018 05:46
Hi guys. I have an issue with my own Ushahidi deployment. When I post a survey response with an attached image, the image doesn't appear or appears to be broken when you open on the web app. Need to know if there are any security/permission configurations I need to do to allow viewing images inside a survey response. Thank you.
Hi @simmytruong just put the config.json file on the document root of your web server (e.g. for apache on ubuntu, config.json should be located on /var/www/html).
Ushbot
@ushbot
Oct 04 2018 08:38
[David Losada, Ushahidi] :wave: @robbyoconnnor
[David Losada, Ushahidi] @joelaldor there are no specific permissions for that, but the webserver and app configs matter a lot . do you have an example url we could look at to see the broken behaviour?
Joel Aldor
@joelaldor
Oct 04 2018 10:01
@ushbot Hi David, thanks for replying. You can check our deployment at http://40.90.163.33/posts/2 and you'll see that the image is broken.
Ushbot
@ushbot
Oct 04 2018 10:42
[David Losada, Ushahidi] @joelaidor that URL gives me a 404 , probably because mod_rewrite is not internally redirecting to index.html when the url route doesn’t match an existing file . mod_rewrite should be enabled, .htaccess file should be in place and allowoverride should be set to all in the virtualhost configuration
[David Losada, Ushahidi] what version is this that you deployed?
Joel Aldor
@joelaldor
Oct 04 2018 10:54
@ushbot I deployed the latest version, and I have set allowoverride to all on my virtualhost configuration. How about trying http://40.90.163.33 and click on any of the test survey responses I've created?
Ushbot
@ushbot
Oct 04 2018 14:59
[Njila Njongue Paul Junior] Hello please I have to configure my deployment to be accessible on android. The documentation requests to modify the file config.json but I do not find it in the folder ushahidi. I am using version 3.9.1 on an apache web server. how to proceed please
[Romina Suarez, Ushahidi] @Njila Njongue Paul Junior you should see that file in the directory where you cloned the platform-client repo.
Ushbot
@ushbot
Oct 04 2018 15:12
[David Losada, Ushahidi] @joelaldor , yes that was confusing for me. The last version of the ushahidi release doesn’t access the platform api through the /platform path (i.e. http://40.90.163.33/platform ), but uses the web server internal rewriting to rebase the api routes to the root ( i.e. http://40.90.163.33 )
[David Losada, Ushahidi] * http://40.90.163.33/api
[David Losada, Ushahidi] so .. are you sure you are running the latest? when did you install? I only put out there the recommended latest release like 3-4 days ago
[David Losada, Ushahidi] in a nutshell, if you are using the lumen release (4.0.0) but the configs you had are still placing the api on /platform , things are just not going to work with images
Ushbot
@ushbot
Oct 04 2018 15:24
[Njila Njongue Paul Junior] @Romina Suarez, Ushahidi Thank you for your reply. In my deployment, I do not have a platform client because I did not Installing for development. I made an Installing the latest release. With this type of installation, is it possible to use my deployment on Android ?
Ushbot
@ushbot
Oct 04 2018 15:32
[Romina Suarez, Ushahidi] Njila Njongue Paul Junior are you using the v4.0 release (https://github.com/ushahidi/platform-release/releases/tag/v4.0.0 this one) then?
[Njila Njongue Paul Junior] @Romina Suarez no I am using v3.9.1
Ushbot
@ushbot
Oct 04 2018 15:43
[Romina Suarez, Ushahidi] ah ok. There was no config.json in the previous platform-release builds, it was only available when using the platform-client directly .
Building from v4.0 you should have the config.json available already (I just checked with David, who revamp’d the release process a few days ago)
[Njila Njongue Paul Junior] Romina Suarez thank you very much i will try to deploy version 4
Ushbot
@ushbot
Oct 04 2018 16:28
[Njila Njongue Paul Junior] @Romina Suarez When I start my ushahidi v4 deployment I get this message << Key path "file://C:\Server\data\htdocs\Astil4\platform/storage/passport\oauth-public.key" does not exist or is not readable >>. How can I fix it please
[Njila Njongue Paul Junior] I am using an apache web server on windows server
Ushbot
@ushbot
Oct 04 2018 18:18
[David Losada, Ushahidi] @Njila , try running “”php artisan passport:keys” from the html/platform/ folder
[David Losada, Ushahidi] sorry docs lagging behind, but we are working on making them much easier to update and collaborate on
Ushbot
@ushbot
Oct 04 2018 18:26
[Njila Njongue Paul Junior] Ok thank you. I'm trying now
[Njila Njongue Paul Junior] @David Losada I receive this message
Ushbot
@ushbot
Oct 04 2018 19:50
[David Losada, Ushahidi] mm right, another piece of missing documentation , your .env file in that folder should have the following lines (aside from db credentials):
[David Losada, Ushahidi] APP_ENV=local APP_DEBUG=false APP_KEY=&!32_char_long_key_change_this*@ APP_TIMEZONE=UTC CACHE_DRIVER=file QUEUE_DRIVER=sync
Ushbot
@ushbot
Oct 04 2018 19:56
[Njila Njongue Paul Junior] ok thank you
Ushbot
@ushbot
Oct 04 2018 20:32
[Njila Njongue Paul Junior] @David Losad please I receive this error
[Njila Njongue Paul Junior] I receive this error when I running this command "php artisan passport:keys" after migrating database
Ushbot
@ushbot
Oct 04 2018 21:26
[Invoq John Majone] David Losada We saw the reclaimnaija.net deployment, and it seemed to me like they used some sort of CMS for their client. Nevertheless, we are trying to deploy for the upcoming elections in Nigeria. Is the android client for v3.x.x ready yet? If it is where can I get the files from pls? Thanks.
[Romina Suarez, Ushahidi] @Njila Njongue Paul Junior
It looks like it’s having issues with the dir separators in windows vs linux \\ //
Maybe try replacing
`\

[Romina Suarez, Ushahidi] "bootstrap:passport": [ "php artisan passport:keys", "chmod 660 storage/passport/*.key" ]

for
`\

[Romina Suarez, Ushahidi] `\“bootstrap:passport”: [
“php artisan passport:keys”,
“chmod 660 storage/passport/*.key”
]
[Romina Suarez, Ushahidi] sorry trying again :) bad keyboard
Ushbot
@ushbot
Oct 04 2018 21:36
[Romina Suarez, Ushahidi] uh wait . @Njila just noticed you are running php artisan passport:keys directly, so I don’t get why it hardcodes the wrong dir separator .
two things:
  • Check that the storage/passport directory exists just in case
  • Have you googled it to checked if someone has the some issue with artisan over a windows setup ?