eureka: Error when pushing commit

Hi

Thanks for sharing this program! I can see it being very useful in my workflow. Unfortunately I seem to be encountering a problem. Trying the latest release and git versions, I get this error message:

Adding and committing your new idea..
Added and committed!
Pushing your new idea..
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/barbarossa/.cargo/registry/src/github.com-1ecc6299db9ec823/eureka-1.8.1/src/git.rs:88:47
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'Box<Any>', /home/barbarossa/.cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.13.17/src/panic.rs:27:9

With RUST_BACKTRACE=1 I get:

Adding and committing your new idea..
Added and committed!
Pushing your new idea..
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/barbarossa/.cargo/registry/src/github.com-1ecc6299db9ec823/eureka-1.8.1/src/git.rs:88:47
stack backtrace:
   0: rust_begin_unwind
             at /build/rust/src/rustc-1.49.0-src/library/std/src/panicking.rs:495:5
   1: core::panicking::panic_fmt
             at /build/rust/src/rustc-1.49.0-src/library/core/src/panicking.rs:92:14
   2: core::panicking::panic
             at /build/rust/src/rustc-1.49.0-src/library/core/src/panicking.rs:50:5
   3: eureka::git::Git::get_callbacks::{{closure}}
   4: git2::remote_callbacks::credentials_cb::{{closure}}
   5: git2::panic::wrap
   6: git2::remote_callbacks::credentials_cb
   7: handle_auth
   8: handle_response.constprop.0
   9: http_stream_read
  10: git_smart__recv_cb
  11: git_smart__store_refs
  12: git_smart__connect
  13: git_remote_connect
  14: git2::remote::Remote::connect_auth
  15: eureka::git::Git::push
  16: eureka::Eureka<FH,W,R>::run
  17: eureka::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'main' panicked at 'Box<Any>', /home/barbarossa/.cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.13.17/src/panic.rs:27:9
stack backtrace:
   0: std::panicking::begin_panic
   1: git2::remote::Remote::connect_auth
   2: eureka::git::Git::push
   3: eureka::Eureka<FH,W,R>::run
   4: eureka::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The repo is private, and I believe I have my credentials stored; so in theory, eureka should be pushing commits no problem. I think I might be missing something anyway, do you have any ideas?

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 24 (10 by maintainers)

Commits related to this issue

Most upvoted comments

So I had the same problem as above. I followed your suggestion of clone and using fix-git-auth. It did not work. I get this other error message:

Adding and committing your new idea to master..
thread 'main' panicked at 'failed to write reference 'refs/heads/master': a reference with that name already exists.; class=Reference (4); code=Exists (-4)', src/bin/eureka.rs:82:19
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Hello, I was having the same problem listed above,

'failed to acquire username/password from local configuration',

I am using HTTPS for the remote instead of SSH.

I was finally able to fix it by deleting my old git credentials and replacing them with a fresh PAT.

I followed this tutorial to do that. https://www.nih-cfde.org/resource/setting-up-github-authentication/

@simeg Hi. Regarding this, is it possible to just create an option (might be on flags and on config file) to make eureka not push to origin repo? The idea is to let people push it themself to avoid this issue.

@simeg Thanks for your help! Seems related to my configuration… anyway, appreciate the help, I’m sure this thread would help others.

‘failed to acquire username/password from local configuration’, src/bin/eureka.rs:82:19

>> Idea summary
> jjj
Adding and committing your new idea to test..
Added and committed!
Pushing your new idea..
thread 'main' panicked at 'failed to acquire username/password from local configuration', src/bin/eureka.rs:82:19
stack backtrace:
   0:        0x1080bdd34 - std::backtrace_rs::backtrace::libunwind::trace::h0e344f93e1be12b3
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
   1:        0x1080bdd34 - std::backtrace_rs::backtrace::trace_unsynchronized::h547096f273f197d3
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:        0x1080bdd34 - std::sys_common::backtrace::_print_fmt::h46deca35c22bc084
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:67:5
   3:        0x1080bdd34 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h80b40bec9b25cdb7
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:46:22
   4:        0x1080d6bce - core::fmt::write::h367e10cc391177e1
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/fmt/mod.rs:1092:17
   5:        0x1080ba4e6 - std::io::Write::write_fmt::h69f760cf0ceceb64
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/io/mod.rs:1572:15
   6:        0x1080bfb49 - std::sys_common::backtrace::_print::h06c56467d8f0565c
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:49:5
   7:        0x1080bfb49 - std::sys_common::backtrace::print::h83e6ec856bd254a6
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:36:9
   8:        0x1080bfb49 - std::panicking::default_hook::{{closure}}::h6b461dbc832ae479
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:208:50
   9:        0x1080bf630 - std::panicking::default_hook::hf6b37b6d4ff1b717
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:225:9
  10:        0x1080c01b5 - std::panicking::rust_panic_with_hook::hcc0074a2cdf70335
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:591:17
  11:        0x1080bfcf5 - std::panicking::begin_panic_handler::{{closure}}::hafebb92bbb4f046c
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:497:13
  12:        0x1080be198 - std::sys_common::backtrace::__rust_end_short_backtrace::hbd3b6a5769847c0d
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys_common/backtrace.rs:141:18
  13:        0x1080bfc5a - rust_begin_unwind
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5
  14:        0x1080e03eb - std::panicking::begin_panic_fmt::h7722ff9c8a9c34c7
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:435:5
  15:        0x107c3a9c3 - eureka::main::h9130df9b52d9e903
  16:        0x107c3622e - core::ops::function::FnOnce::call_once::h9a6658880b37b5fa
  17:        0x107c36621 - std::sys_common::backtrace::__rust_begin_short_backtrace::ha5f37245e5587bd6
  18:        0x107c3ad54 - std::rt::lang_start::{{closure}}::ha09c09781317f382
  19:        0x1080c0524 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h3b22ce68aa2879c2
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/core/src/ops/function.rs:259:13
  20:        0x1080c0524 - std::panicking::try::do_call::h51a4853c94b1bdea
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:379:40
  21:        0x1080c0524 - std::panicking::try::ha45bc5eab1f103eb
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:343:19
  22:        0x1080c0524 - std::panic::catch_unwind::h191bc002afc126a7
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panic.rs:431:14
  23:        0x1080c0524 - std::rt::lang_start_internal::h0c37a46739a0311d
                               at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/rt.rs:51:25
  24:        0x107c3ad2e - std::rt::lang_start::h4122b0820f04a803
  25:        0x107c3ac76 - _main