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

problem with GitHub Actions un-pak-ing an odbc Linux package #469

Closed
3 of 5 tasks
wibeasley opened this issue Feb 15, 2023 · 1 comment · Fixed by #481
Closed
3 of 5 tasks

problem with GitHub Actions un-pak-ing an odbc Linux package #469

wibeasley opened this issue Feb 15, 2023 · 1 comment · Fixed by #481
Assignees
Labels

Comments

@wibeasley
Copy link
Member

wibeasley commented Feb 15, 2023

Looks like there's a problem with "libodbc1_2.3.11_amd64.deb". It's unlikely related to any R code in the package. Probably related to Linux packages beyond our control.

  • I'll run it twice to rule out something flukey
  • I'll see if there are dependencies I can remove.
  • I'm already using the latest version of r-lib's GitHub Actions setup-r-dependencies
  • I'll see if I can clear/invalidate the cache through r-lib's GitHub Actions setup-r-dependencies
  • if these don't work, maybe give it a day for the Linux packages to work out themselves?

from https://github.com/OuhscBbmc/REDCapR/actions/runs/4178765449/jobs/7237945330#step:5:3825

  (Reading database ... 245555 files and directories currently installed.)
  Preparing to unpack .../libodbc1_2.3.11_amd64.deb ...
  Unpacking libodbc1:amd64 (2.3.11) ...
  dpkg: error processing archive /var/cache/apt/archives/libodbc1_2.3.11_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbc.so.2.0.0', which is also in package libodbc2:amd64 2.3.9-5
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Selecting previously unselected package odbcinst1debian2:amd64.
  Preparing to unpack .../odbcinst1debian2_2.3.11_amd64.deb ...
  Unpacking odbcinst1debian2:amd64 (2.3.11) ...
  dpkg: error processing archive /var/cache/apt/archives/odbcinst1debian2_2.3.11_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbcinst.so.2.0.0', which is also in package libodbcinst2:amd64 2.3.9-5
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../odbcinst_2.3.11_amd64.deb ...
  Unpacking odbcinst (2.3.11) over (2.3.9-5) ...
  dpkg: error processing archive /var/cache/apt/archives/odbcinst_2.3.11_amd64.deb (--unpack):
   trying to overwrite '/etc/odbc.ini', which is also in package unixodbc-common 2.3.9-5
  Preparing to unpack .../unixodbc_2.3.11_amd64.deb ...
  Unpacking unixodbc (2.3.11) over (2.3.9-5) ...
  Preparing to unpack .../unixodbc-dev_2.3.11_amd64.deb ...
  Unpacking unixodbc-dev (2.3.11) over (2.3.9-5) ...
  Errors were encountered while processing:
   /var/cache/apt/archives/libodbc1_2.3.11_amd64.deb
   /var/cache/apt/archives/odbcinst1debian2_2.3.11_amd64.deb
   /var/cache/apt/archives/odbcinst_2.3.11_amd64.deb
  needrestart is being skipped since dpkg has failed
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  Error: 
  ! error in pak subprocess
  Caused by error in `processx::run(sh, cmdline, stdout_callback = callback, stderr_to_stdout = TRUE)`:
  ! System command 'sudo' failed
  ---
  Backtrace:
  1. pak::lockfile_install(".github/pkg.lock")
  2. pak:::remote(function(...) { …
  3. err$throw(res$error)
  ---
  Subprocess backtrace:
   1. base::withCallingHandlers(cli_message = function(msg) { …
   2. get("lockfile_install_internal", asNamespace("pak"))(...)
   3. plan$install_sysreqs()
   4. pkgdepends:::sysreqs_install(srq$result %||% srq, config)
   5. base::lapply(cmds, function(cmd) { …
   6. local FUN(X[[i]], ...)
   7. processx::run(sh, cmdline, stdout_callback = callback, stderr_to_stdout = …
   8. base::throw(new_process_error(res, call = sys.call(), echo = echo, …
   9. | base::signalCondition(cond)
  10. global (function (e) …
  Execution halted
  Error: Process completed with exit code 1.
@wibeasley wibeasley self-assigned this Feb 15, 2023
@wibeasley wibeasley changed the title problem problem with GitHub Actions un-pak-ing an odbc Linux package Feb 15, 2023
wibeasley added a commit that referenced this issue Feb 15, 2023
@wibeasley
Copy link
Member Author

wibeasley commented Feb 15, 2023

Avoiding REDCapR's suggested packages of DBI & odbc circumvented this problem. But this change should be only temporary, because retrieve_credential_mssql() is no longer being tested or covered.

This tradeoff is worth it to me short-term, so @pwildenhain doesn't have to deal with this distraction if he pursues #467 before the Linux package problem is addressed.

  • In a week or two, I'll see if this package problem still exists.

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

Successfully merging a pull request may close this issue.

1 participant