Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Sebastian commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) We currently have an ZFS server which runs into the same error since /opt is a symlink to a zfs pool: lrwxrwxrwx. 1 root root 8 2. Mär 2017 opt -> tank/opt Can i provide further information to resolve this issue? Greetings Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.132449.1631867160031%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) So there's an easy way to reproduce the issue: # mkdir -p /tmp/realpath/lib # cat < /tmp/realpath/lib/a.rb require_relative 'b' puts load('/tmp/link/lib/b.rb') END # cat < /tmp/realpath/lib/b.rb require_relative 'c' END # cat < /tmp/realpath/lib/c.rb require 'tempfile' class C < DelegateClass(File); end END # ln -s /tmp/realpath/ /tmp/link The following works using system ruby:
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Ciprian Badescu updated an issue Puppet / PUP-11106 superclass mismatch for class Uniquefile (TypeError) Change By: Ciprian Badescu Fix Version/s: PUP 7.11.0 Fix Version/s: PUP 7.12.0 Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.126294.1631173320051%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11106 superclass mismatch for class Uniquefile (TypeError) Change By: Josh Cooper Sprint: Coremunity Kanban Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.120020.1630365120285%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11106 superclass mismatch for class Uniquefile (TypeError) Change By: Josh Cooper Fix Version/s: PUP 7.11.0 Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.120018.1630365120192%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11106 superclass mismatch for class Uniquefile (TypeError) Change By: Josh Cooper Team: Coremunity Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.120019.1630365120240%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper assigned an issue to Josh Cooper Puppet / PUP-11106 superclass mismatch for class Uniquefile (TypeError) Change By: Josh Cooper Assignee: Josh Cooper Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.119593.1630340640035%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Philipp H commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Josh Cooper In hindsight It might not have been the smartest "move" to use puppet on this system. (Actually I wanted to run everything, also the puppet agent in a container (podman), but I had some issues there with kernel modules, for example if I want to use the firewall module and manage iptables.) Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.109236.1629189600025%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Philipp H commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Josh Cooper /etc and /var is mounted as read-write in CoreOs. Traditional places that might hold state (e.g. /home, or /srv) are symlinks to directories in /var (e.g. /var/home or /var/srv). Further Info on the Disk Layout: https://docs.fedoraproject.org/en-US/fedora-coreos/storage/#_disk_layout The Puppet Agent is actually running fine if I just move the Cache directory (vardir) (puppet.conf or argument) ** for example to /var/.puppetcache (default is /opt/puppetlabs/puppet/cache which is mounted ro). Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.109221.1629188460028%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) I was able to reproduce on Fedora 34 CoreOS. I replicated the symlink structure on Ubuntu 18.04 and I receive the same error: # ls -l /opt lrwxrwxrwx 1 root root 8 Aug 17 05:32 /opt -> /var/opt # ls -l /var/opt total 0 lrwxrwxrwx 1 root root 23 Aug 17 05:31 puppetlabs -> /usr/lib/opt/puppetlabs # ls -l /usr/lib/opt/puppetlabs total 16 drwxr-xr-x 2 root root 4096 Aug 17 05:16 bin drwxr-xr-x 3 root root 4096 Aug 17 05:16 facter drwxr-xr-x 11 root root 4096 Aug 17 05:16 puppet drwxr-xr-x 5 root root 4096 Aug 17 05:16 pxp-agent # /opt/puppetlabs/puppet/bin/puppet --help ...
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Philipp H commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Josh Cooper If I append the "logdest" no log is created. Actually I can pass any argument to the executable and I get the same traceback/errors as mentioned above. Seems like it breaks before even parsing the arguments. Thanks for the explanation. I guess that explains why it stopped working from the 7.6.1 onward. If I understood you correctly, there is no way to force the require path from "outside", is there? Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.88898.1627031820031%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Philipp H Ok, so the UniqueFile class is somewhat special, as it will result in a hard failure if an attempt is made to load the file twice. The Uniquefile class extends an anonymous superclass Delegate(File). So the second time Uniquefile is loaded, the file will reopen the class and try to assign it to a different superclass, which is not allowed. My guess is the combination of symlinks and relative_require is causing uniquefile.rb to first be loaded as: /usr/lib/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/uniquefile.rb Then the autoloader calls Dir.glob so we see: 8: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/file_metadata/selector.rb:1:in `' And that ends trying to load uniquefile with a different path: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb Prior to the move to relative_require, puppet would have searched its $LOAD_PATH for something matching puppet/file_system/uniquefile.rb, and /usr/lib/opt/... most likely was earlier in the search path. Note there is a closely related problem on Windows, which results in the same exception when mixing 8.3 and long file paths, see PUP-11184.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Philipp H could you append --logdest /tmp/agent.log, delete any sensitive info, and attach that file to the ticket? Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.87748.1626974700086%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Philipp H commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Can I help you in any way? Is there any more information I can provide you? Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.87430.1626961680033%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Philipp H updated an issue Puppet / PUP-11106 superclass mismatch for class Uniquefile (TypeError) Change By: Philipp H Affects Version/s: PUP 7.8.0 Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.79283.1626167100206%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Philipp H commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) I have downgraded to puppet-agent-7.6.1-1.fc32.x86_64.rpm for now. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.75391.1625650740038%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Philipp H commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Josh Cooper I've switched to the nightly repository and installed puppet-agent-7.8.0.72.g80c5de1e1-1.fc34.x86_64 I've always used the official rpms provided by puppet. (using the platform repository: https://puppet.com/docs/puppet/7/install_puppet.html#enable_the_puppet_platform_repository) Due to the atomic nature of fedora coreos everthing installed under /opt is moved to the /usr/lib/opt and then linked. (I know it is kind of weird. I am also checking if it possible to prevent this move.) lrwxrwxrwx. 1 root root 23 Jun 10 10:06 puppetlabs -> /usr/lib/opt/puppetlabs I am not sure what changed since version 7.6.1-1 that it tries to load the ruby files in /opt/puppetlabs and /usr/lib/opt/puppetlabs. Is there any way from "outside" (like the puppet.conf or some ruby args? ) to prevent it from loading the files twice or ignoring /usr/lib/opt in the first place? Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) It sounds like maybe you're using packages from someone other than Puppet. Can you try nightly builds of puppet-agent 7.x (http://nightlies.puppet.com/yum/). We should have official packages for Fedora 34 out real soon. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.61370.1624301820026%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Philipp H commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Josh Cooper Thank you very much for your input! As I am using atomic updates ( fedora coreos ), the folders in /opt are mounted from /usr/lib/opt and puppet is actually installed in /usr/lib/opt. This was also the case in version 7.6.1. As you mentioned there seems to be a load path conflict with this setup in the new version. Is there any way to force the puppet ruby load path? (I guess I have to figure this out myself, as this version of fedora is not really supported.) Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.53231.1623314040026%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper commented on PUP-11106 Re: superclass mismatch for class Uniquefile (TypeError) Philipp H it seems you have two versions of puppet installed. One is in /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet, the other is in /usr/lib/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet. The latter is not expected (the puppet-agent package installs under /opt/puppetlabs. Can you check your environment and ruby load path to see if you have conflicts? Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.52573.1623263160023%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper moved an issue Puppet / PUP-11106 superclass mismatch for class Uniquefile (TypeError) Change By: Josh Cooper Key: PA PUP - 3828 11106 Affects Version/s: puppet-agent 7.7.0 Project: Puppet Agent Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.52571.1623263040123%40Atlassian.JIRA.
Jira (PUP-11106) superclass mismatch for class Uniquefile (TypeError)
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11106 superclass mismatch for class Uniquefile (TypeError) Change By: Josh Cooper Affects Version/s: PUP 7.7.0 Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.402824.1623227757000.52572.1623263040168%40Atlassian.JIRA.