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

extra '/' in gs path #411

Open
verytable opened this issue Nov 5, 2018 · 0 comments
Open

extra '/' in gs path #411

verytable opened this issue Nov 5, 2018 · 0 comments

Comments

@verytable
Copy link

I'm using wal-e to push wals to google storage. Configuration:

cat /etc/wal-e.d/env/WALE_GS_PREFIX
gs://w-temp/wals

Command:

WALE_LOG_DESTINATION=stderr envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_wal/00000001000000000000000F
wal_e.worker.upload INFO     MSG: begin archiving a file
        DETAIL: Uploading "pg_wal/00000001000000000000000F" to "gs://w-temp/wals/wal_005/00000001000000000000000F.lzo".
        STRUCTURED: time=2018-11-05T20:21:58.171324-00 pid=2513 action=push-wal key=gs://w-temp/wals/wal_005/00000001000000000000000F.lzo prefix=wals/ seg=00000001000000000000000F state=begin
wal_e.worker.upload INFO     MSG: completed archiving to a file
        DETAIL: Archiving to "gs://w-temp/wals/wal_005/00000001000000000000000F.lzo" complete at 115.356KiB/s.
        STRUCTURED: time=2018-11-05T20:21:59.027102-00 pid=2513 action=push-wal key=gs://w-temp/wals/wal_005/00000001000000000000000F.lzo prefix=wals/ rate=115.356 seg=00000001000000000000000F state=complete

As a result, all files are written but:

gsutil ls gs://w-temp//wals
gs://w-temp//wals/wal_005/
gsutil ls gs://w-temp/wals
CommandException: One or more URLs matched no objects.

Desired behavior:

  1. To have wals in gs://w-temp/wals and not in gs://w-temp//wals which turn out to be different directories.
  2. To have consistent Archiving to logs.

Is there a way to achieve the desired behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant