These are chat archives for ushahidi/Community

19th
Sep 2018
Ushbot
@ushbot
Sep 19 2018 08:49
[ilary tiralongo] Hello everyone,
I've some problems with the mail in crowdmap (old version). The gmail account doesn't receive reports and messages. The photo uploading is also problematic… just small pics are uploaded…
Someone knows how to solve them?
Thanks in advance!
Ushbot
@ushbot
Sep 19 2018 09:37
[David Losada, Ushahidi] gmail is notoriously difficult to set up for POP/IMAP access. This is commonly needed: https://support.google.com/accounts/answer/6010255?hl=en
[David Losada, Ushahidi] @loyalty_eli and what can you see in the bin folder? i.e. if you run “ls bin”
[David Losada, Ushahidi] @poVoq I’ll take a look a the releases today
[ilary tiralongo] Thanks! And what about the photo upload?
[David Losada, Ushahidi] That’s probably a limit which was set back on the day and nowadays it feels rather small. Unfortunately, we are not planning to do any changes on crowdmap anymore.
[ilary tiralongo] Ok, thanks for the info!
[David Losada, Ushahidi] the latest version that we are maintaining is available through ushahidi.com
[David Losada, Ushahidi] you can sign up for your deployment there
Ushbot
@ushbot
Sep 19 2018 09:43
[ilary tiralongo] Perfect, thanks for your kindness!
Ushbot
@ushbot
Sep 19 2018 09:55
[David Losada, Ushahidi] you are most welcome, thanks for coming over!
poVoq
@poVoq
Sep 19 2018 15:25
We now tried with the "develop" branch of the platform-API, but that one seems to have issues with the database access? Were the needed access parameters / config changed drasticly? See: QuantumObject/docker-ushahidi-platform#7
Ushbot
@ushbot
Sep 19 2018 16:10
[Invoq John Majone] Hi, could someone please tell me where to get some help from. The support on ushahidi says to come here, I come here, and it seems no one has ever heard of this issue; which, to be honest, surprises me. If anyone could please point me to where I can get some help from, I would appreciate it. Thanks.
poVoq
@poVoq
Sep 19 2018 16:19
Are you paying for support? Be a bit patient :)
I also have the same issue and it seems it is being investigated
Ushbot
@ushbot
Sep 19 2018 16:33
[Invoq John Majone] Ok... thanks... I am not paying for support however. It is just an installation to acclamatise to before we delve into the development install for use. However, we have to know how to work it before we proceed to a production environment.
poVoq
@poVoq
Sep 19 2018 16:34
This was just a rhetorical question, I do not belong to the developer team of ushahidi
Ushbot
@ushbot
Sep 19 2018 16:36
[Invoq John Majone] ok... no worries... So just to be clear that we are having the same issue. You cannot login with the "admin" as username and password after installing, is this your case?
poVoq
@poVoq
Sep 19 2018 16:36
yes
you are using the develop version or the production branch?
Ushbot
@ushbot
Sep 19 2018 16:37
[Romina Suarez, Ushahidi] hey folks. Just to discard issues.. can one of you try creating a new user and checking if that one works?
[Romina Suarez, Ushahidi] also can you verify if you are using the develop branch for both client and api?
[Invoq John Majone] OK... thanks. However, this has been going on for months now. I have already updated the email address on the admin account to be my email address, but still can't login using that email address either...
poVoq
@poVoq
Sep 19 2018 16:38
I was able to create a new user using the pre-release version for the API, but it was also not possible to log in with this new user. however when I tried signing up with the same email address again it complained about it being in use
now that switch to the develop-branch of the api it totally broke as there is something wrong with the database access
you can see the error on my server here: api.cxb.reports.watsan.eu
Ushbot
@ushbot
Sep 19 2018 16:39
[Romina Suarez, Ushahidi] checking the issue you linked povoq. thanks
poVoq
@poVoq
Sep 19 2018 16:40
but this is new. before when using the pre-release I had the same admin login issue
Ushbot
@ushbot
Sep 19 2018 16:41

[Romina Suarez, Ushahidi] ah. ok.

Invoq John Majone: are you also using docker to set it up?

poVoq
@poVoq
Sep 19 2018 16:43
yesterday he said no
Ushbot
@ushbot
Sep 19 2018 16:43
[Invoq John Majone] No. I installed following the instructions on https://www.ushahidi.com/support/install-ushahidi
[Romina Suarez, Ushahidi] @povoq I can confirm that to use the develop branch you should match it with the same branch in the client and api.
(sorry if this is old news, just looking at the issue it wasnt clear to me )
poVoq
@poVoq
Sep 19 2018 16:44
yeah, the creator of the docker image tried that now... but that results in the database error
Ushbot
@ushbot
Sep 19 2018 16:46

[Romina Suarez, Ushahidi] ugh. Ok the env params changed with lumen

https://github.com/ushahidi/platform/blob/develop/.env.example
This is the correct format (note the db related params changed their name)

poVoq
@poVoq
Sep 19 2018 16:47
ok great, that should definitly help
Ushbot
@ushbot
Sep 19 2018 16:48
[Romina Suarez, Ushahidi] thumbsup emoji
Ushbot
@ushbot
Sep 19 2018 16:54
[Invoq John Majone] Ok, so with regards to the branch I installed: I installed the api from the ushahidi-platform-release-XYZ.tar.gz file and then the platform-client using git clone https://github.com/ushahidi/platform-client.git
[Invoq John Majone] Ok, so with regards to the branch I installed: I installed the api from the ushahidi-platform-release-XYZ.tar.gz file and then the platform-client using git clone https://github.com/ushahidi/platform-client.git
[Romina Suarez, Ushahidi] @Invoq John Majone
Thanks for clarifying. Can you try setting it up with the develop branch on both? we recently switched to lumen and are still working out details in the new docs but if you can, follow the instructions in the platform readme and let us know how it goes.
I recently added some instructions for xampp too, if thats easier (linked in the platform repo readme), which @spfire helped me test a couple weeks ago
Ushbot
@ushbot
Sep 19 2018 17:01
[Romina Suarez, Ushahidi] uh.. I just reviewed the docs we wrote with @spfire’s help again.. I think the admin password might have changed to be administrator at some point but can’t check right now , in the middle of some other stuff . Just letting you all know in case someone can check when they set it up (but since the other users you both created failed, that’s a different problem obviously)
Chyril
@spfire
Sep 19 2018 17:05
The password was changed.I did the same step for second time.
Ushbot
@ushbot
Sep 19 2018 17:11
[Invoq John Majone] I didn't create a different user, I just changed the email address on the admin user's account to my email, the password remains the same. I didn't know the hash algorithm that was used to hash the password so I left it as is...

[Romina Suarez, Ushahidi] ah. Thanks @spfire for confirming! As always, you rock =D
OK so folks, the password is administrator then, that probably changed in lumen :| Sorry !

By the way, as a general notice: a few of us in the staff are working on updating our docs lately. The first (new) version of the setup docs is the one in the README of the develop branch, but it didn’t make it to the website yet.

poVoq
@poVoq
Sep 19 2018 17:14
Thanks. I'll try to get it working with that docker image tomorrow. So Kohana was completely replaced with Laravel Lumen?
Ushbot
@ushbot
Sep 19 2018 17:16
[Invoq John Majone] Just tried with the "administrator" password, but the issue remains the same. What hash algorithm was used to hash the password pls?
[Invoq John Majone] Ok, so with regards to the branch I installed: I installed the api from the ushahidi-platform-release-XYZ.tar.gz file and then the platform-client using git clone https://github.com/ushahidi/platform-client.git
[Invoq John Majone] I get http://18.219.89.136/platform/platform/httpdocs/oauth/token 400 (Bad Request) on the Network tab, when I inspect on the browser
[Romina Suarez, Ushahidi] Yea. We migrated to lumen recently. Sadly we haven’t migrated all the components yet (ie we still use the old query builder we had in the kohana branches) , but the main versions of the platform will be on lumen from now on.
[Romina Suarez, Ushahidi] @Invoq John Majone could you post the response for the token request?
[Romina Suarez, Ushahidi] response body, sorry
[Invoq John Majone] ok
Ushbot
@ushbot
Sep 19 2018 17:23
[Invoq John Majone] The response from the second request is

[Invoq John Majone] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>400</title>
<meta http-equiv="Cache-Control" content="no-cache"/>
</head>
<body>
<p>
Bad Request
</p>
</body>
</html>

[Invoq John Majone] The first request does not return any response
[Invoq John Majone] Same thing when I try to signup as a new user...
[Romina Suarez, Ushahidi] To use the client develop branch, you need to use the platform api develop branch too.
[Invoq John Majone] ok... Let me re-install using the development branch. Could you please give me a URL with proper instructions to follow to install it on an ubuntu server?
maybe
Ushbot
@ushbot
Sep 19 2018 17:28
[Romina Suarez, Ushahidi] Yea. Or if you are getting setup without vagrant, this https://github.com/ushahidi/platform/blob/develop/docs/setup_alternatives/XAMPP.md
[Invoq John Majone] Thank you... Will re-install... Yeah, I'm setting up without vagrant
[Romina Suarez, Ushahidi] cool. You can probably do the same without xampp (by setting up the lamp stack by hand) if you prefer .
I need to step out for a while, but let us know if you run into issues and we will help as soon as possible.
[Invoq John Majone] ok... thanks so much...
Ushbot
@ushbot
Sep 19 2018 17:38

[Invoq John Majone] Cloning into 'platform'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

[Invoq John Majone] git clone git@github.com:ushahidi/platform.git platform
should work
Ushbot
@ushbot
Sep 19 2018 17:40
[Invoq John Majone] Thanks, Checked the link you ga ve me, and just saw that the link was incorrect...
[Romina Suarez, Ushahidi] you need to ssh-add your key (ie ssh-add ~/.ssh/id_rsa if thats the key you use for github) to use git repos with ssh.
[Invoq John Majone] o...k
Ushbot
@ushbot
Sep 19 2018 18:12
[Invoq John Majone] please what is the hash algorithm used to hash the passwords?
Ushbot
@ushbot
Sep 19 2018 18:26
[Invoq John Majone] Hi @poVoq, this is what I am getting from the api when I go to the my api URL, which is: http://18.219.89.136/platform/httpdocs
[Invoq John Majone] {"now":"2018-09-19T18:24:08+00:00","version":"3","user":{"id":null,"email":null,"realname":null}}
Ushbot
@ushbot
Sep 19 2018 19:17
[Elena Andonova] Hello :) I am trying to install latest version of Ushahidi, using cPanel. I followed the steps, as they are in the documentation, but when I run ./bin/phinx migrate -c application/phinx.php I receive error that there is no /bin/phinx. Can you please assist?
Ushbot
@ushbot
Sep 19 2018 19:24
[Invoq John Majone] I really don't, haven't tried installing on cPanel...
Ushbot
@ushbot
Sep 19 2018 20:40
[Robbie Mackay, Ushahidi] @Elena which release did you download?
[Robbie Mackay, Ushahidi] If phinx if missing, maybe you cloned the code from github rather than using a bundle?
Ushbot
@ushbot
Sep 19 2018 21:07
[Robbie Mackay, Ushahidi] @invoq the password are hashed with bcrypt via PHP's password_hash function
Ushbot
@ushbot
Sep 19 2018 21:25
[Elena Andonova] ushahidi-platform-release-v3.12.1.tar.gz
Ushbot
@ushbot
Sep 19 2018 21:33
[Robbie Mackay, Ushahidi] @elena I'm just looking at the structure. If you put the files from html/ into your doc root, phinx is located in html/platform/bin/phinx or docroot/platform/bin/phinx
[Robbie Mackay, Ushahidi] Do you know which level you were running phinx from? Maybe you just needed to change directory into platform first.
[Robbie Mackay, Ushahidi] you can also just try going to http://yourdomain/platform/migrate and that might work to run the migrations for you
Ushbot
@ushbot
Sep 19 2018 21:40
[Elena Andonova] this is not what I get. I have root/html/platform/.env (the file, that I have created), but originally the folder was empty
[Robbie Mackay, Ushahidi] Right. Ideally you'd put the contents of html/ directly into the root, so you just have root/platform/.env without extra level. I think the API will work anyway, but the client might not
Ushbot
@ushbot
Sep 19 2018 21:46
[Robbie Mackay, Ushahidi] Does loading http://yourdomain/html/platform/migrate in a browser do anything?
[Robbie Mackay, Ushahidi] Or you can try to change directory into html/platform/ then run bin/phinx from there.
[Robbie Mackay, Ushahidi] What else is in root/html/platform ? it should be full of files
[Robbie Mackay, Ushahidi] All of these:
CONTRIBUTING.md
Dockerfile
Homestead.yaml
ISSUE_TEMPLATE.md
LICENSE-AGPL
LICENSE.md
PULL_REQUEST_TEMPLATE.md
Procfile
README.md
Vagrantfile
apache_heroku.conf
apiary.apib
app.json
application
bin
codeship-services.yml
codeship-steps.yml
composer.json
composer.lock
deployment.env.encrypted
docker
docker-compose.yml
docs
example.env
httpdocs
migrations
modules
phinx.yml
phpspec.yml.coverage
plugins
skeleton.php
src
tests
vendor
Ushbot
@ushbot
Sep 19 2018 21:53
[Invoq John Majone] Hi Robbie, I have been trying to install ushahidi, I got it to install and I could view the view/maps page, however, I wasn't able to login using "admin" and "administrator". However, Romina says I can't install the api from ushahidi-platform-release.v3.X.Y.Z.tar.gz and get the platform-client by cloning from git,so I deleted the entire installation. However, I am not using vagrant, or VMWare, for some reason it complains about space when I try to install using VM. Could you pls give me proper instructions on how to install without vagrant...

[Elena Andonova] [9/20/2018 12:46:12 AM] Ush Bot: Does loading http://yourdomain/html/platform/migrate in a browser do anything?

<<< No... Nothing. And have also nothing in my platform folder, just env file

Ushbot
@ushbot
Sep 19 2018 21:58
[Robbie Mackay, Ushahidi] Ok. That sounds like either your original download didn't go right, or the upload to the server just didn't work. What do you have in the doc root?
[Robbie Mackay, Ushahidi] @invoq If you're not using vagrant it shouldn't be trying to set up a VM at all. The vagrant set up is really only for development anyway.
[Robbie Mackay, Ushahidi] Romina's complete right. If you're not planning to do development, you should install everything from the ushahidi-platform-release-v3.12.1.tar.gz. Or if you are doing development you need to install everything from git. Mixing the two will get confusing.
[Robbie Mackay, Ushahidi] I'd guess if your maps page loaded, but you couldn't log in then something in your API install didn't go correctly. The instructions on https://www.ushahidi.com/support/install-ushahidi#installing-the-latest-release for installing the latest release are still correct. There can still be some complications depending on your install environment though
Ushbot
@ushbot
Sep 19 2018 22:10
[Invoq John Majone] ok...
[Invoq John Majone] so after installing the platform from ushahidi-platform-release-v3.12.1.tar.gz, do I need to install platform-client anymore and from where? If not, how do I access the api from the browser?
Ushbot
@ushbot
Sep 19 2018 22:18
[Robbie Mackay, Ushahidi] The platform client is bundled in the same download. The client is in the html folder and then the api is in html/platform

[Robbie Mackay, Ushahidi] Looking at the chat history from earlier today

I get http://18.219.89.136/platform/platform/httpdocs/oauth/token 400 (Bad Request) on the Network tab, when I inspect on the browser

That looks like you might have had an issue with the rewrite configuration and maybe the .env BACKEND_URL too. The Url has platform/ twice which doesn't seem right, and the response looks like it wasn't from PHP at all so the rewrite config might have been broken

Ushbot
@ushbot
Sep 19 2018 22:33
[Invoq John Majone] I installed it in a subdirectory called platform, that's why there is an extra platform in the URL
[Robbie Mackay, Ushahidi] Ah ok. You might see some issues with the client running in a subdirectory. I'm not sure though, it's a long time since I've tested that myself.
Ushbot
@ushbot
Sep 19 2018 22:40
[Invoq John Majone] There are other sites on the server, so I seperate all of them by placing them in their own directories. Are you suggesting I place the contents of the html/ folder in my web server root?
[Elena Andonova] Thank you. I made another extract and saw the files, but I can't move them (root/ushahidi), maybe I should change the permissions of all files and folders. Now I receive an error: In Factory.php line 622 "The each() function is deprecated. This message will be suppressed on further calls"
[Robbie Mackay, Ushahidi] You can try it in the subdirectory, but you might have issues with the client parsing urls ie. for /view/map. It's worth testing both ways. But the app is designed to be run in the docroot of its own virtualhost
[Robbie Mackay, Ushahidi] @Elena what version of PHP are you running?
[Invoq John Majone] ok... Thanks... would try that now...
Ushbot
@ushbot
Sep 19 2018 22:49
[Elena Andonova] PHP version: 5.6.30
[Elena Andonova] oh, sorry 7.2