Bug 276024 - ports-mgmt/octopkg: Freezes after applying updates
Summary: ports-mgmt/octopkg: Freezes after applying updates
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nuno Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-30 17:46 UTC by rmomota
Modified: 2024-01-19 10:28 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (eduardo)


Attachments
evidence (208.08 KB, image/png)
2024-01-06 11:33 UTC, rmomota
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rmomota 2023-12-30 17:46:22 UTC
octopkg seems to be doing everything alright but it freezes after applying all updates.
Seems to be waiting for the 'pkg upgrade -y' process to terminate when it's already terminated.

This issue started since upgraded to latest patch of FreeBSD 13.2 but persist in FreeBSD 14.0.
I believe it may be related with pkg tool itself, maybe there was a change and it's giving unexpected results back to octopkg.
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2023-12-30 18:24:54 UTC
(In reply to rmomota from comment #0)
Did you open a PR at upstream since it seems best suited for this error?

https://github.com/aarnt/octopkg/issues
Comment 2 rmomota 2023-12-31 16:43:05 UTC
(In reply to Nuno Teixeira from comment #1)
No because I'm an end user and not project developer or maintainer.
It could be a pkg tool issue instead so I've no idea where the problem is.
Comment 3 Nuno Teixeira freebsd_committer freebsd_triage 2023-12-31 22:10:25 UTC
(In reply to rmomota from comment #0)

I've run tests on 15-CURRENT: install, reinstall, deinstall and upgrade went ok with no issues.
Did you tried command `pkg upgrade` and check for any errors?
Comment 4 rmomota 2024-01-05 19:51:11 UTC
(In reply to Nuno Teixeira from comment #3)
Yes I did try all commands in the shell and it works fine.
But with octopkg after all upgrades are completed successfully the process seems to be waiting for something else and it gets stuck.
The latest message is regarding the updating MIME cache.
Comment 5 rmomota 2024-01-06 11:33:08 UTC
Created attachment 247477 [details]
evidence

Here's an evidence of the reported issue.
pkg process is no longer running but octopkg is still waiting for something.
This time without that MIME message.
Comment 6 rmomota 2024-01-06 13:25:15 UTC
It doesn't happen when I uninstall or install a package.
This issue only happens in "upgrade" operation.
Comment 7 Nuno Teixeira freebsd_committer freebsd_triage 2024-01-12 17:46:12 UTC
I've opened an PR at upstream.
Let's see what author says about it and how should we investigate further.

https://github.com/aarnt/octopkg/issues/20
Comment 8 rmomota 2024-01-15 05:05:33 UTC
I think it may be related with the 'doas' command of the update.
Comment 9 Nuno Teixeira freebsd_committer freebsd_triage 2024-01-15 07:37:26 UTC
(In reply to rmomota from comment #8)

1. Have you a doas.conf configured for your user?

2. Have you tried uninstall doas and run octopkg with sudo?
Comment 10 rmomota 2024-01-16 19:10:48 UTC
(In reply to Nuno Teixeira from comment #9)
I don't even have 'doas' installed in the system, never had.
Comment 11 rmomota 2024-01-19 10:27:03 UTC
Latest updates the tool did just fine.
I believe the problem is gone.