Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to view logs when using Minio #387

Closed
concaf opened this issue Mar 16, 2018 · 17 comments · Fixed by #1023
Closed

Document how to view logs when using Minio #387

concaf opened this issue Mar 16, 2018 · 17 comments · Fixed by #1023

Comments

@concaf
Copy link
Contributor

concaf commented Mar 16, 2018

I was following the getting started guide, and all the ark related pods are up and running. I am also able to take the backups, but I'm unable to view the logs for the same.

$ ark backup get
NAME      STATUS      CREATED                         EXPIRES   SELECTOR
wp        Failed      2018-03-16 17:20:35 +0530 IST   29d       <none>
wpback    Completed   2018-03-16 17:20:44 +0530 IST   29d       <none>

$ ark backup logs wp
An error occurred: Get http://minio.heptio-ark-server.svc:9000/ark/wp/wp-logs.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=minio%!F(MISSING)20180316%!F(MISSING)minio%!F(MISSING)s3%!F(MISSING)aws4_request&X-Amz-Date=20180316T115127Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=c8ef8e268775c73d9140937c8019a30bb5718059aabf052d8b4982828365624f: dial tcp: lookup minio.heptio-ark-server.svc on 192.168.0.1:53: no such host
@ncdc
Copy link
Contributor

ncdc commented Mar 16, 2018

If you're using minio, you need to be able to resolve the minio service's cluster DNS entry from wherever you're running your ark client. Try kubectl -n heptio-ark edit config/default and change the url to minio.heptio-ark-server.svc.cluster.local, and then follow these instructions: https://stevesloka.com/2017/06/12/access-minikube-service-from-linux-host/.

@concaf
Copy link
Contributor Author

concaf commented Mar 16, 2018

Ah, got it.
I exposed the minio service via NodePort, and then pointed the config at it, works now.
Should this not be documented in the getting started?

@ncdc
Copy link
Contributor

ncdc commented Mar 16, 2018

Probably a good idea. Let's use this issue for that.

@ncdc ncdc changed the title Unable to view logs for backups Document how to view logs when using Minio Mar 16, 2018
@ramv76
Copy link

ramv76 commented May 10, 2018

can you please send the steps you followed to resolve this issue? I am getting the same error.

@ncdc
Copy link
Contributor

ncdc commented May 10, 2018

@skriss we might want to add a publicURL field for the aws object store config so the urls we send back for logs etc. can be different than the url ark uses to talk to minio.

@concaf
Copy link
Contributor Author

concaf commented May 11, 2018

@ramv76 FWIW I was running on a single node Kubernetes cluster (minikube), so I'm not sure if the following will work for you, but what I did was -

This was a long time back, see if this works for you

@ramv76
Copy link

ramv76 commented May 11, 2018

Hi, Thank you so much for the updates. Is this possible to configure backup locally in the server itself or like a dedicated backup server to store the backup? if yes, can you please shed some light in this?

@ncdc
Copy link
Contributor

ncdc commented May 11, 2018

@ramv76 let's keep this issue for its original purpose, if you don't mind. Would you be able to join us on slack at https://kubernetes.slack.com/messages/ark-dr to continue discussing your question?

@ramv76
Copy link

ramv76 commented May 11, 2018

Sure, Thank you so much Andy.

@ramv76
Copy link

ramv76 commented May 11, 2018

@andy, can you please send me an invite for [email protected]. This will be great help for me. Thanks a lot and sorry for any inconvenience caused in this.

@ncdc
Copy link
Contributor

ncdc commented May 11, 2018

@ramv76 you can go to http://slack.k8s.io and sign up

@ncdc
Copy link
Contributor

ncdc commented Oct 5, 2018

@sachinar (moving from #871) could you please describe the specific steps you tried that aren't working? Thanks!

@sachinar
Copy link

sachinar commented Oct 5, 2018

I tried with these steps.

apiVersion: ark.heptio.com/v1
kind: Config
metadata:
namespace: heptio-ark
name: default
persistentVolumeProvider:
name: aws
config:
region: minio
backupStorageProvider:
name: aws
bucket: ark
resticLocation: ark/backup-bucket
config:
region: minio
s3ForcePathStyle: "true"
s3Url: http://minio:9000

Here s3Url I changed to minio.heptio-ark-server.svc.cluster.local:9000, but same error was there.

@sachinar
Copy link

sachinar commented Oct 5, 2018

@ncdc I tried with
s3Url: http://minio.heptio-ark.svc:9000 also. same error was there.

@ncdc
Copy link
Contributor

ncdc commented Oct 5, 2018 via email

@sachinar
Copy link

sachinar commented Oct 8, 2018

@ncdc Thanks It worked.

@skriss
Copy link
Contributor

skriss commented Nov 14, 2018

Closed by #1023

@skriss skriss closed this as completed Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants