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

bucket can not have db port #4725

Closed
wenerme opened this issue Apr 17, 2024 · 6 comments · Fixed by #4731
Closed

bucket can not have db port #4725

wenerme opened this issue Apr 17, 2024 · 6 comments · Fixed by #4731
Assignees
Labels
kind/bug Something isn't working

Comments

@wenerme
Copy link

wenerme commented Apr 17, 2024

What happened:

doc example

juicefs format \
    --storage postgres \
    --bucket "<host>:<port>/<db>[?parameters]"

but

2024/04/18 00:48:49.504353 juicefs[3217] <FATAL>: object storage: parse url HOSR:PORT/DB?search_path=jfs failed: parse "HOSR:PORT/DB?search_path=jfs": first path segment in URL cannot contain colon [format.go:469]

What you expected to happen:

works as expected

How to reproduce it (as minimally and precisely as possible):

format with port in bucket

Anything else we need to know?

Environment:

  • JuiceFS version (use juicefs --version) or Hadoop Java SDK version: 1.1.2
  • Cloud provider or hardware configuration running JuiceFS:
  • OS (e.g cat /etc/os-release): any
  • Kernel (e.g. uname -a): any
  • Object storage (cloud provider and region, or self maintained):
  • Metadata engine info (version, cloud provider managed or self maintained):
  • Network connectivity (JuiceFS to metadata engine, JuiceFS to object storage):
  • Others:
@wenerme wenerme added the kind/bug Something isn't working label Apr 17, 2024
@zhijian-pro
Copy link
Contributor

@wenerme Please give the desensitized command line parameters for the actual run

@wenerme
Copy link
Author

wenerme commented Apr 18, 2024

@zhijian-pro

juicefs format \
  --storage postgres --bucket "1.1.1.1:1234/dev?search_path=jfs" \
  "postgres://[email protected]:1234/dev?search_path=jfs" \
  dev

# or

juicefs format \
  --storage postgres --bucket "postgres://1.1.1.1:1234/dev?search_path=jfs" \
  "postgres://[email protected]:1234/dev?search_path=jfs" \
  dev

@zhijian-pro
Copy link
Contributor

Thanks for the feedback, this is a bug.

@wenerme
Copy link
Author

wenerme commented Apr 19, 2024

@zhijian-pro Could you provide an estimated timeline for the next release? Thank you!

@zhijian-pro
Copy link
Contributor

@wenerme Have been released

@wenerme
Copy link
Author

wenerme commented Jun 27, 2024

@wenerme Have been released

Not test yet, switch to using rclone for simple remote fs access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants