refi64 / zypak

Run Electron binaries in a sandboxed Flatpak environment
BSD 3-Clause "New" or "Revised" License
117 stars 5 forks source link

Bad File Descriptor (Similar to Issue #12) #17

Closed snugglej closed 3 years ago

snugglej commented 3 years ago

Hello I'm trying to run a similar build to the edge deployment but for vivaldi. It used to work fine but recently, last couple builds, I've been getting errors and not being able to launch the package anymore.

This looks very similar to the issue in #12 but I believe I'm running the last version of zypak.

If you can give me some tips on what I should do that would be greatly appreciated.

flatpak run --verbose org.vivaldi.Vivaldi F: No installations directory in /etc/flatpak/installations.d. Skipping F: Opening system flatpak installation at path /var/lib/flatpak F: Opening user flatpak installation at path /var/home/username/.local/share/flatpak F: Opening user flatpak installation at path /var/home/username/.local/share/flatpak F: Opening user flatpak installation at path /var/home/username/.local/share/flatpak F: Opening system flatpak installation at path /var/lib/flatpak F: Cleaning up unused container id 1178676878 F: Allocated instance id 2192643958 F: Add defaults in dir /org/vivaldi/Vivaldi/ F: Add locks in dir /org/vivaldi/Vivaldi/ F: Allowing wayland access F: Allowing x11 access F: Allowing pulseaudio access F: Pulseaudio user configuration file '/var/home/username/.config/pulse/client.conf': Error opening file /var/home/username/.config/pulse/client.conf: No such file or directory F: CUPS configuration file '/var/home/username/.cups/client.conf': Error opening file /var/home/username/.cups/client.conf: No such file or directory F: CUPS configuration file '/etc/cups/client.conf': Error opening file /etc/cups/client.conf: No such file or directory F: Could not find CUPS server F: Running 'bwrap --args 40 xdg-dbus-proxy --args=42' F: Running 'bwrap --args 40 vivaldi' [2 zypak-helper] Determining sandbox strategy... [2 zypak-helper] Added task source 0xaab200 [2 zypak-helper] Lifting task 0xaab200 to trigger [2 zypak-helper] Added task source 0xaab420 [2 zypak-helper] Lifting task 0xaab420 to trigger [2 zypak-helper] D-Bus watch add 3 with flags 1 [2 zypak-helper] Adding I/O source 0xaab660 for 3 [2 zypak-helper] Added task source 0xaabae0 [2 zypak-helper] Pumping bus thread [2 zypak-helper] Begin dispatch [2 zypak-helper] Received event from 0xaabae0 [2 zypak-helper] Added timer source 0x7faa680010d0 with duration 25000ms [2 zypak-helper] Pumping bus thread [2 zypak-helper] Begin dispatch [2 zypak-helper] Received event from 0xaab660 [2 zypak-helper] Incoming events on D-Bus watch 3: 1 [2 zypak-helper] Disable source 0x7faa680010d0 [2 zypak-helper] Got D-Bus wake request [2 zypak-helper] Trigger source 0xaab420 [2 zypak-helper] Pumping bus thread [2 zypak-helper] Begin dispatch [2 zypak-helper] Received event from 0xaab420 [2 zypak-helper] Dispatching on bus thread [2 zypak-helper] CallAsync returned [2 zypak-helper] Got D-Bus dispatch status [2 zypak-helper] Pumping bus thread [2 zypak-helper] Added task source 0xaabf30 [2 zypak-helper] Begin dispatch [2 zypak-helper] Received event from 0xaabf30 [2 zypak-helper] Added timer source 0xaabae0 with duration 25000ms [2 zypak-helper] Pumping bus thread [2 zypak-helper] Begin dispatch [2 zypak-helper] Received event from 0xaab660 [2 zypak-helper] Incoming events on D-Bus watch 3: 1 [2 zypak-helper] Disable source 0xaabae0 [2 zypak-helper] Got D-Bus wake request [2 zypak-helper] Trigger source 0xaab420 [2 zypak-helper] Got D-Bus dispatch status [2 zypak-helper] Trigger source 0xaab420 [2 zypak-helper] Pumping bus thread [2 zypak-helper] Begin dispatch [2 zypak-helper] Received event from 0xaab420 [2 zypak-helper] Dispatching on bus thread [2 zypak-helper] CallAsync returned [2 zypak-helper] Got D-Bus dispatch status [2 zypak-helper] Pumping bus thread [2 zypak-helper] Shutting down bus thread... [2 zypak-helper] Trigger source 0xaab200 [2 zypak-helper] Begin dispatch [2 zypak-helper] Received event from 0xaab200 [2 zypak-helper] Bus thread shutdown complete [2 zypak-helper] D-Bus watch remove 3 [2 zypak-helper] Disable source 0xaab660 [2 zypak-helper] D-Bus watch remove 3 [2 zypak-helper] Got D-Bus wake request [2 zypak-helper] Trigger source 0xaab420 [2 zypak-helper] Got D-Bus dispatch status [2 zypak-helper] Trigger source 0xaab420 [2 zypak-helper] Spawn strategy is enabled [2 zypak-helper] Preload is: /app/bin/../lib/libzypak-preload-host.so:/app/bin/../lib/libzypak-preload-host-spawn-strategy.so [2 zypak-helper] /app/var/opt/vivaldi/vivaldi-bin [2 preload-host-spawn-strategy] Added task source 0xd0600224e00 [2 preload-host-spawn-strategy] Lifting task 0xd0600224e00 to trigger [2 preload-host-spawn-strategy] Added task source 0xd0600224c00 [2 preload-host-spawn-strategy] Lifting task 0xd0600224c00 to trigger [2 preload-host-spawn-strategy] D-Bus watch add 3 with flags 1 [2 preload-host-spawn-strategy] Adding I/O source 0xd0600224b00 for 3 [2 preload-host-spawn-strategy] Adding I/O source 0xd0600224a00 for 6 [2 preload-host-spawn-strategy] Added task source 0xd0600224900 [2 preload-host-spawn-strategy] Pumping bus thread [2 preload-host-spawn-strategy] Begin dispatch [2 preload-host-spawn-strategy] Received event from 0xd0600224900 [2 preload-host-spawn-strategy] Added timer source 0xd0600226000 with duration 25000ms [2 preload-host-spawn-strategy] Disable source 0xd0600226000 [2 preload-host-spawn-strategy] Got D-Bus wake request [2 preload-host-spawn-strategy] Trigger source 0xd0600224c00 [2 preload-host-spawn-strategy] Pumping bus thread [2 preload-host-spawn-strategy] Begin dispatch [2 preload-host-spawn-strategy] Received event from 0xd0600224c00 [2 preload-host-spawn-strategy] Dispatching on bus thread [2 preload-host-spawn-strategy] Got D-Bus dispatch status [2 preload-host-spawn-strategy] Pumping bus thread [2 preload-host-spawn-strategy] Prepare for fork [2 preload-host-spawn-strategy] Shutting down bus thread... [2 preload-host-spawn-strategy] Trigger source 0xd0600224e00 [2 preload-host-spawn-strategy] Begin dispatch [2 preload-host-spawn-strategy] Received event from 0xd0600224e00 [2 preload-host-spawn-strategy] Bus thread shutdown complete [2 preload-host-spawn-strategy] Resume bus in parent [2 preload-host-spawn-strategy] Pumping bus thread [2 preload-host-spawn-strategy] waitpid(15) [2 preload-host-spawn-strategy] Can't find stub pid data 15 [2 preload-host-spawn-strategy] Could not find stub pid data, assuming dead for 15 [15 preload-host-spawn-strategy] Note: bus thread is not running, skipping fork override [2 preload-host-spawn-strategy] Prepare for fork [2 preload-host-spawn-strategy] Shutting down bus thread... [2 preload-host-spawn-strategy] Trigger source 0xd0600224e00 [2 preload-host-spawn-strategy] Begin dispatch [2 preload-host-spawn-strategy] Received event from 0xd0600224e00 [2 preload-host-spawn-strategy] Bus thread shutdown complete [2 preload-host-spawn-strategy] Resume bus in parent [2 preload-host-spawn-strategy] Pumping bus thread [2 preload-host-spawn-strategy] Prepare for fork [2 preload-host-spawn-strategy] Shutting down bus thread... [2 preload-host-spawn-strategy] Trigger source 0xd0600224e00 [2 preload-host-spawn-strategy] Begin dispatch [2 preload-host-spawn-strategy] Received event from 0xd0600224e00 [2 preload-host-spawn-strategy] Bus thread shutdown complete [2 preload-host-spawn-strategy] Resume bus in parent [2 preload-host-spawn-strategy] Pumping bus thread [24 zypak-sandbox] Ignoring /proc/self/fd/.: stoi [24 zypak-sandbox] Ignoring /proc/self/fd/..: stoi [24 zypak-sandbox] Failed to send spawn request to supervisor: Bad file descriptor (errno 9) [1005/205520.586995:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)

refi64 commented 3 years ago

You're not quite on the latest release, the manifest in the linked repo is on v2021.02, but the latest is v2021.09.1 (v2021.06 is the one that fixed this issue).

snugglej commented 3 years ago

How do I upgrade? I don't have any flatpak updates and there wasn't anything for the flatpak-build.

How do I move to the fixed version?

On Wed, Oct 6, 2021, 12:50 Ryan Gonzalez @.***> wrote:

Closed #17 https://github.com/refi64/zypak/issues/17.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/refi64/zypak/issues/17#event-5422031134, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEHT33SAZ3W6JDQSC2CRDPDUFR45LANCNFSM5FNGNFZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

refi64 commented 3 years ago

@snugglej In your Flatpak manifest you have:

      {
         "name": "zypak",
         "sources": [
            {
               "type": "git",
               "url": "https://github.com/refi64/zypak",
               "tag": "v2021.02",
               "commit": "ae8b0423588479d8403c192feb630c582656bee6"
            }
         ]
      }

Modules inside a Flatpak manifest are not updated automatically, so you have to change the versions yourself on updates. In this case, the version is set to v2021.02. To update it, you'd set "tag": "v2021.09.1" and "commit": "e09f37ca4ff09827434deba11f9b1f9e1c42dbaf".

There is an external tool, flatpak-external-data-chceker, that lets you update modules; you can see how Edge has it configured here.

snugglej commented 3 years ago

Thanks Ryan! I'll work on that tonight.

On Wed, Oct 6, 2021, 13:31 Ryan Gonzalez @.***> wrote:

@snugglej https://github.com/snugglej In your Flatpak manifest you have:

  {
     "name": "zypak",
     "sources": [
        {
           "type": "git",
           "url": "https://github.com/refi64/zypak",
           "tag": "v2021.02",
           "commit": "ae8b0423588479d8403c192feb630c582656bee6"
        }
     ]
  }

Modules inside a Flatpak manifest are not updated automatically, so you have to change the versions yourself on updates. In this case, the version is set to v2021.02. To update it, you'd set "tag": "v2021.09.1" and "commit": "e09f37ca4ff09827434deba11f9b1f9e1c42dbaf".

There is an external tool, flatpak-external-data-chceker https://github.com/flathub/flatpak-external-data-checker, that lets you update modules; you can see how Edge has it configured here https://github.com/flathub/com.microsoft.Edge/blob/beta/com.microsoft.Edge.yaml#L70-L78 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/refi64/zypak/issues/17#issuecomment-936750516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEHT33RP7K4OTPIBZ3VJSKDUFSBWXANCNFSM5FNGNFZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.