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

[Bug]: Can't register new account #2615

Open
1 task done
mhalano opened this issue Mar 9, 2025 · 7 comments
Open
1 task done

[Bug]: Can't register new account #2615

mhalano opened this issue Mar 9, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@mhalano
Copy link

mhalano commented Mar 9, 2025

What did you expect to happen?

I executed atuin register -u my_user -e [email protected] and it should work.

What happened?

I got this message:

➜ atuin register -u my_user -e [email protected]
Registering for an Atuin Sync account
Please enter password:
Error: error sending request for url (https://api.atuin.sh/user/mhalano)

Caused by:
   0: client error (Connect)
   1: invalid URL, scheme is not http

Location:
    /build/atuin-GIcDDW/atuin-18.4.0/crates/atuin-client/src/api_client.rs:50:16

If I try to access that URL, it says user not found.

Atuin doctor output

{
  "atuin": {
    "version": "18.4.0",
    "sync": null,
    "sqlite_version": "3.46.1"
  },
  "shell": {
    "name": "zsh",
    "default": "zsh",
    "plugins": [
      "atuin"
    ],
    "preexec": "built-in"
  },
  "system": {
    "os": "Ubuntu",
    "arch": "x86_64",
    "version": "25.04",
    "disks": [
      {
        "name": "/dev/nvme0n1p2",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme0n1p1",
        "filesystem": "vfat"
      },
      {
        "name": "/dev/nvme1n1p1",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/sda1",
        "filesystem": "ext4"
      }
    ]
  }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mhalano mhalano added the bug Something isn't working label Mar 9, 2025
@mhalano
Copy link
Author

mhalano commented Mar 9, 2025

It seems a problem with HTTPS on the default sync server. After I changed to HTTP, it worked.

I still think that should be investigated, though, because using HTTP isn't secure. Someone could capture the user and the password of the account.

@ellie
Copy link
Member

ellie commented Mar 9, 2025

hmm this shouldn't be an issue. What happens when you run curl https://api.atuin.sh on your system, any issues?

@mhalano
Copy link
Author

mhalano commented Mar 9, 2025

It shows:

➜ curl https://api.atuin.sh
{"homage":"\"Through the fathomless deeps of space swims the star turtle Great A'Tuin, bearing on its back the four giant elephants who carry on their shoulders the mass of the Discworld.\" -- Sir Terry Pratchett","version":"18.3.0","total_history":155743893}%

@mhalano
Copy link
Author

mhalano commented Mar 9, 2025

I didn't find the reason, but I just got a clue: I installed Atuin using the package manager (Ubuntu). it doesn't work. If I use the binary from releases from GitHub, it works. Any clue why that? Maybe some incompatibility with the Rust stack from Ubuntu?

@mhalano
Copy link
Author

mhalano commented Mar 9, 2025

Opened a bug with Ubuntu. It seems something with the way they package Atuin. Here is the bug report: https://bugs.launchpad.net/ubuntu/+source/atuin/+bug/2101804

@PGScully
Copy link

This is also happening with Debian and RaspberryPi OS.

@mhalano
Copy link
Author

mhalano commented Mar 10, 2025

Yeah, that makes sense since Ubuntu gets the package from Debian, e Raspberry Pi OS should do the same.
They disabled TLS for some reason, according to the changelog, the problem is not the server part that uses it, but also the client.

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

No branches or pull requests

3 participants