https://rancher.com/ logo
#epinio
Title
n

nutritious-application-85076

05/13/2022, 10:46 AM
I got an error when I try to do
epinio push
-->
Copy code
epinio push --name sample --path sample-app

🚢  About to push an application with the given setup
Manifest: <<Defaults>>
Name: sample
Source Origin: /home/snowdrop/epinio/assets/sample-app
Target Namespace: workspace

⚠️  Hit Enter to continue or Ctrl+C to abort (deployment will continue automatically in 5 seconds)

Create the application resource ...
2022/05/13 12:46:15 EpinioApiClient: "msg"="request failed" "error"="Post \"/api/v1/namespaces/workspace/applications\": unsupported protocol scheme \"\""

❌  error pushing app to server: making the request: Post "/api/v1/namespaces/workspace/applications": unsupported protocol scheme ""
b

broad-dream-81849

05/13/2022, 10:49 AM
did you run
epinio settings update
? It looks like it's not addressing the right URL
n

nutritious-application-85076

05/13/2022, 10:49 AM
No. That was not mentioned at all within the starting guide
In the meantime, I'm doing a deployment using the Epinio UI ... Paketo build is running
hmmhm
b

broad-dream-81849

05/13/2022, 10:52 AM
it's mentioned in the home page, so we have probably to polish a bit the docs site 🫤 I'm pretty sure it's written somewhere
n

nutritious-application-85076

05/13/2022, 10:54 AM
Do you know why I got the red error within the UI ?
b

broad-dream-81849

05/13/2022, 10:56 AM
did you have an error in the buildpack logs in the UI? Otherwise we should have a look at the logs in the Epinio server
n

nutritious-application-85076

05/13/2022, 10:57 AM
I dont think so. Will do another test after launch break
👍 1
b

broad-dream-81849

05/13/2022, 10:58 AM
Thanks, if it fails again it will be nice to collect the logs to have a look at them!
n

nutritious-application-85076

05/13/2022, 11:21 AM
I think that I know the reason as we cannot specify the path of a git project using the UI
b

broad-dream-81849

05/13/2022, 11:22 AM
Ah, well, if you're using the git origin then yes, it assumes that the app is at the root of the project
We have some sample repos in the Epinio organization, if you want to try some
c

cuddly-holiday-9089

05/13/2022, 11:56 AM
epinio settings update
instruction is printed when you finish the helm installation. This is the actual text:
Copy code
To interract with your Epinio installation download the latest epinio binary from <https://github.com/epinio/epinio/releases/latest>.

Update the api location and credentials with:
    
    `epinio settings update`

or go to the dashboard at: <https://epinio.192.168.49.100.omg.howdoi.website>

For more information about Epinio, feel free to checkout <https://epinio.io/> and <https://docs.epinio.io/>.
but sure, we can add that to the docs in case someone misses it in the output. PRs are welcome 😉
n

nutritious-application-85076

05/13/2022, 12:35 PM
I can reproduce the error. Something happened during the build
[stage-workspace-spring-6b5b276db9927617a0413c1164cbd93bbcc5pxpx] buildpack: *ERROR:* failed to build: exit status 1
. This is a JAVA issue -->
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/workspace/source/app). Please verify you invoked
This is strange as I use this github repo - https://github.com/sample-accelerators/spring-petclinic/tree/main and branch = main which contains a pom.xml file ....
c

cuddly-holiday-9089

05/13/2022, 12:52 PM
Google returns a link to some related issue but it's in Chinese and it's full of adds (copying text from other places maybe?). I don't want to share the link here to avoid people visiting sites with adds (I think it also links to porn 😞 ) but here is the text:
Copy code
Spring PetClinic has long had a maven build, recently a gradle build was added.

    Using the latest tiny paketo builder, both the gradle and maven buildpacks detect. The gradle buildpacks runs, removes the source code, then the maven buildpacks fails running because it's unable to find a pom.xml
there is no solution provided afaict
the question is from
2021-12-23 12:48:20
and there are some suggestions there (disable gradle or maven?)
n

nutritious-application-85076

05/13/2022, 1:00 PM
Got it. Can we do a new build using the Epinio UI ?
s

stocky-account-63046

05/16/2022, 9:21 AM
If you'd like to rebuild the app without changing anything Epinio side, you can do so by the applications menu (when listing apps it's the three dots on the right of the app row, when viewing an application it's the three dots top right). there should be a 'rebuild' option there
The
[object Object]
message isn't great. if you get the chance could you provide the http response for that failed request? Did it take a long time to return?
3 Views