Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761097 - dev-util/catalyst-3.0.15 : stage4 cleaning sequence TypeError: arg must be str or bytes, not list
Summary: dev-util/catalyst-3.0.15 : stage4 cleaning sequence TypeError: arg must be st...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-21 16:48 UTC by polle
Modified: 2020-12-22 04:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
catalyst.conf (catalyst.conf,6.37 KB, text/plain)
2020-12-21 17:29 UTC, polle
Details
stage4.spec (container.spec,813 bytes, text/plain)
2020-12-21 17:45 UTC, polle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description polle 2020-12-21 16:48:26 UTC
NOTICE:catalyst:--- Running action sequence: clean
21 Dec 2020 14:33:43 -00: NOTICE  : Cleaning chroot: /etc/resolv.conf
NOTICE:catalyst:Cleaning chroot: /etc/resolv.conf
21 Dec 2020 14:33:43 -00: NOTICE  : Cleaning chroot: /var/tmp/*
NOTICE:catalyst:Cleaning chroot: /var/tmp/*
21 Dec 2020 14:33:43 -00: NOTICE  : Emptying directory: /var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/var/tmp/portage
NOTICE:catalyst:Emptying directory: /var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/var/tmp/portage
21 Dec 2020 14:33:43 -00: NOTICE  : Cleaning chroot: /tmp/*
NOTICE:catalyst:Cleaning chroot: /tmp/*
21 Dec 2020 14:33:43 -00: NOTICE  : Emptying directory: /var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/tmp/kerncache
NOTICE:catalyst:Emptying directory: /var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/tmp/kerncache
21 Dec 2020 14:33:43 -00: NOTICE  : Cleaning chroot: /var/db/repos/gentoo
NOTICE:catalyst:Cleaning chroot: /var/db/repos/gentoo
21 Dec 2020 14:33:43 -00: NOTICE  : Emptying directory: /var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/var/db/repos/gentoo
NOTICE:catalyst:Emptying directory: /var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/var/db/repos/gentoo
21 Dec 2020 14:33:43 -00: ERROR   : Exception running action sequence clean
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/catalyst/base/stagebase.py", line 1515, in run
    getattr(self, x)()
  File "/usr/lib/python3.8/site-packages/catalyst/base/stagebase.py", line 1272, in clean
    target = pjoin(self.settings["destpath"],
  File "src/snakeoil/_posix.pyx", line 123, in snakeoil._posix.join
  File "src/snakeoil/_posix.pyx", line 26, in snakeoil._posix._chars
TypeError: arg must be str or bytes, not list
ERROR:catalyst:Exception running action sequence clean
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/catalyst/base/stagebase.py", line 1515, in run
    getattr(self, x)()
  File "/usr/lib/python3.8/site-packages/catalyst/base/stagebase.py", line 1272, in clean
    target = pjoin(self.settings["destpath"],
  File "src/snakeoil/_posix.pyx", line 123, in snakeoil._posix.join
  File "src/snakeoil/_posix.pyx", line 26, in snakeoil._posix._chars
TypeError: arg must be str or bytes, not list
21 Dec 2020 14:33:43 -00: NOTICE  : Cleaning up... Running unbind()
NOTICE:catalyst:Cleaning up... Running unbind()
21 Dec 2020 14:33:43 -00: NOTICE  : /var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/tmp/kerncache does not exist. Skipping
NOTICE:catalyst:/var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/tmp/kerncache does not exist. Skipping
21 Dec 2020 14:33:43 -00: NOTICE  : /var/tmp/catalyst/tmp/default/stage3-amd64-IMAGE21/var/cache/binpkgs is not a mount point. Skipping
Comment 1 Matt Turner gentoo-dev 2020-12-21 17:19:12 UTC
Thanks for the report. Could you please post your catalyst.conf and the .spec file that you were using here?

Is there anything that might have coincided with the failure? E.g., did the failure only happen after updating to v3.0.15 (from v3.0.14?)?
Comment 2 polle 2020-12-21 17:29:56 UTC
Created attachment 679128 [details]
catalyst.conf
Comment 3 polle 2020-12-21 17:45:33 UTC
Created attachment 679131 [details]
stage4.spec

this stage4 build was setup with dev-util/catalyst-3.0.15 
i build several stage1 and a few stage3 with standard config without issue.

www-servers/apache was not pulled from emerge this might be for another bug

Sorry this takes a while iam not familar with Bugzilla
Comment 4 Matt Turner gentoo-dev 2020-12-21 18:05:40 UTC
> stage4/use
> ...
> stage4/empty
> ...
> stage4/rm
> ...

I think you need : at the ends of those lines. E.g.,

> stage4/use:
> ...
> stage4/empty:
> ...
> stage4/rm:
> ...

Catalyst should give a better error though...
Comment 5 polle 2020-12-21 18:19:23 UTC
if i add the colons catalysts gives me an error.
man catalyst-spec doesnt show colons but the example spec files do

# catalyst -af container.spec 
21 Dec 2020 18:08:55 -00: NOTICE  : Loading configuration file: /etc/catalyst/catalyst.conf
21 Dec 2020 18:08:55 -00: NOTICE  : conf_values[options] = {'bindist', 'autoresume', 'kerncache', 'seedcache', 'pkgcache', 'snapcache', 'clear-autoresume'}
21 Dec 2020 18:08:55 -00: NOTICE  : Processing spec file: container.spec
21 Dec 2020 18:08:55 -00: ERROR   : CatalystError: Argument "stage4/packages" not recognized.
21 Dec 2020 18:08:55 -00: ERROR   :     Also: Argument "stage4/use" not recognized.
21 Dec 2020 18:08:55 -00: ERROR   :     Also: Argument "stage4/empty" not recognized.
21 Dec 2020 18:08:55 -00: ERROR   :     Also: Argument "stage4/rm" not recognized.
Comment 6 Matt Turner gentoo-dev 2020-12-21 18:25:18 UTC
That is probably because you have

> target: stage3

instead of

> target: stage4

in the spec file.
Comment 7 polle 2020-12-21 19:37:05 UTC
I got the wrong target...
I got around the argument barrier by removing the colons which later created an error. But in the first place having a stage3 -> stage3 setup.
Thank you for your help
Comment 8 Matt Turner gentoo-dev 2020-12-22 04:05:40 UTC
You are welcome!