ushahidi / platform

Ushahidi Platform API version 3+
http://ushahidi.com
Other
677 stars 506 forks source link

Migration process to v4 #3347

Closed ArturoQuintana closed 5 years ago

ArturoQuintana commented 6 years ago

Yesterday we started the migration process of our Ushahidi instance from v3 to v4.

Unfortunately, after applying all the commands to complete the process, our instance does not work correctly due to the following errors:

You can see these issues visiting this link:

https://map.informus.us/views/map

rowasc commented 6 years ago

@tuxpiper @willdoran adding context on the two issues that I've been trying to follow up on today. We need some help in point 2 first if one of you can, since nobody can log in to the site.

1 - The .ENV variables are sometimes not being read. At the moment we verified this was the case by hardcoding the values in the ohanzee-db.php file and adding a database.php file like the one lumen has, which stopped the random 500s. I'll have to investigate with Arturo after we mitigate the second issue so we can go back to using the .ENV file as we should, I suspect it's the dotenv library or lumen config issues with .ENV values (there's a long-standing issue with this and cache, but the known fix didn't solve it here) 2 - When logging in, the /me request always returns "unauthorized" 401, resulting in a loop in the client that keeps trying to login but never achieves it. The 401 also happens if I do an /oauth/token request and then /me request in postman manually (/me returns 401, using the bearer from /oauth/token)

willdoran commented 5 years ago

@ArturoQuintana

Are you still experiencing the login in issue?

What version of the Ushahidi Client are you using?

I would suggest that @rowasc suggestion are best to follow:

  1. Do a clean install on a completely clean server and clean DB
  2. Test that you can login normally
  3. If that works point the platform at your production DB
  4. Report back if that works.
rowasc commented 5 years ago

Closing due to lack of recent activity. Please reopen if necessary or reach out in https://gitter.im/ushahidi/Community for community support . Thanks!