IBM / BluePic

WARNING: This repository is no longer maintained :warning: This repository will not be updated. The repository will be kept available in read-only mode.
https://developer.ibm.com/code/patterns
Apache License 2.0
325 stars 67 forks source link

Trying to run Methods 1 & 2 don't work #394

Closed ljbennett62 closed 7 years ago

ljbennett62 commented 7 years ago

Using the "Deploy to Bluemix" button issues the same error as running Method 2:

I get the error "can't find cloud_config.json". I see the file in the following directory:

/BluePic/BluePic-Server/Sources/BluePicApp/

any ideas how to fix it. When I print the variable "path" that is the failing file "Configuration.swift" - it comes back as nil.

any ideas?

tfrank64 commented 7 years ago

@ljbennett62 Which method did you try? The Cloud Tools for Swift method or the manual method?

I assume you see this error on Bluemix? Also, what branch of BluePic did you use?

ljbennett62 commented 7 years ago

both methods - 1) The Cloud tools and 2) the manual method. Yes - am seeing it in Bluemix. I am using the Master branch.

ljbennett62 commented 7 years ago

so got a bit further when I went in the code (Configuration.swift) and manually set: let finalPath: String = "/Users/laurabennett/2017-NewRole/Code/BluePic/BluePic-Server/cloud_config.json"

I then get the following error when I do that:

image

tfrank64 commented 7 years ago

There might be another issue here, but we at least need to find a fix for not being able to create new MCA Bluemix services (https://github.com/IBM-Swift/BluePic/issues/396). MCA was replaced with App ID, so not having it can prevent successful app deployments.

ljbennett62 commented 7 years ago

@tfrank64 - HI Taylor - so are you looking into this?

tfrank64 commented 7 years ago

@ljbennett62 Yes, I am looking into it.

ljbennett62 commented 7 years ago

ok - tx - let me know if you need me to try something

tfrank64 commented 7 years ago

@ljbennett62 Would you be willing to try and deploy a new BluePic application? I've updated BluePic to use App ID which was part of the problem, since MCA was deprecated. I got it to work through both IBM Cloud Tools and the Deploy to Bluemix button, let me know if it works for you.

Note, you may still see Could not find cloud_config.json but it should still work because it can access environment variables on Bluemix.

ljbennett62 commented 7 years ago

yes - let me give it a try! tx

ljbennett62 commented 7 years ago

@tfrank64 - so the deploy to bluemix button worked!! yay! - now I am going to try to deploy locally. Thanx for the quick turnaround

ljbennett62 commented 7 years ago

btw - i just noticed you took out Alchemy and are now using Visual Recognition - are you planning to add NLU?

tfrank64 commented 7 years ago

Your welcome, glad it is working now!

We don't have plans currently to add NLU. The change you mentioned was because Alchemy Vision was deprecated in favor of Watson Visual Recognition.

ljbennett62 commented 7 years ago

@tfrank64 - so it gets deployed but when I click the URL in BM - the links on the app (using Chrome) don't do anything. "I'll sign in later" and "sign in with facebook"

tfrank64 commented 7 years ago

@ljbennett62 Well the facebook button is grayed out because it is not enabled right now. The sign in later link should work if you finished going through the Readme after the Deploy to Bluemix button step. You most likely still need to populate the database: https://github.com/IBM-Swift/BluePic#4-populate-cloudant-database

ljbennett62 commented 7 years ago

ok - let me continue

tfrank64 commented 7 years ago

I will close this issue tomorrow since deployment itself is working.

ljbennett62 commented 7 years ago

sounds good - tx for all your help!