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

Error with pkg regen : Can't copy sqlports to memory #2

Open
lcheylus opened this issue May 3, 2022 · 2 comments
Open

Error with pkg regen : Can't copy sqlports to memory #2

lcheylus opened this issue May 3, 2022 · 2 comments

Comments

@lcheylus
Copy link

lcheylus commented May 3, 2022

On OpenBSD 7.1-current (amd64), with the last version of your pkg tool, I have an error with I try to regen DB :

$ pkg regen
Creating full text database...DBD::SQLite::db sqlite_backup_to_file failed: 
sqlite_backup_to_file failed with error not an error at /usr/local/sbin/pkg line 87.
Can't copy sqlports to memory! at /usr/local/sbin/pkg line 87.

This error occurred after i updated my packages with pkg_add -u : sqlports-7.36p0

@qbit
Copy link
Owner

qbit commented May 3, 2022

I have noticed a few situations where it gets into a strange state.

  • running as root before the /tmp/sqlports.ts db exists (it's then owned by root).
  • randomly for reasons I haven't tracked down yet.

I was planning on re-working the way the commands are parsed. Hopefully I have some time this week!

@lcheylus
Copy link
Author

lcheylus commented May 7, 2022

After upgrade (sysupgrade for OpenBSD 7.1-current and pkg_add -u), this issue is gone. Version for sqlports is still 7.36p0

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

2 participants