os_release:
name: "Ubuntu"
version: "22.04.1 LTS (Jammy Jellyfish)"
snap_info:
steam_revision: 83
snapd_revision:
lspci:
00:02.0: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)
glxinfo:
gpu: Mesa Intel(R) UHD Graphics 620 (WHL GT2)
gpu_version: 4.6 (Core Profile) Mesa 23.0.0-devel (git-224e9ce 2022-12-02 jammy-oibaf-ppa)
lscpu:
model_name: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
When using the Steam snap, Factorio fails to launch with the error message:
Error: Couldn't create lock file /home/yourusername/.factorio/.lock: Permission denied.
Reported elsewhere here: https://forums.factorio.com/viewtopic.php?t=102728
I believe I got further using a much more updated Steam and Snapd version. It still won't launch properly though. Could you try with a more updated Steam and Snapd?
snap refresh steam --edge
snap refresh snapd
My "setup":
os_release:
name: "Ubuntu"
version: "22.04.1 LTS (Jammy Jellyfish)"
snap_info:
steam_revision: 97
snapd_revision: 17883
lspci:
00:02.0: Intel Corporation Device 9a70 (rev 01)
03:00.0: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23
glxinfo:
gpu: Mesa Intel(R) UHD Graphics (TGL GT1)
gpu_version: 4.6 (Core Profile) Mesa 22.3.0 - kisak-mesa PPA
lscpu:
model_name: Intel(R) Xeon(R) W-11955M CPU @ 2.60GHz
Game logs:
ERROR: ld.so: object '/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
0.000 Initializing Steam API.
[S_API] SteamAPI_Init(): Loaded '/home/emil.hemdal/snap/steam/common/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 427520
SteamInternal_SetMinidumpSteamID: Caching Steam ID: 76561198008593114 [API loaded no]
0.000 Error CrashHandler.cpp:635: Received SIGSEGV
0.000 Error Util.cpp:97: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
The following is the output from dmesg
that I filtered a bit to remove duplicated and out-of-context lines.
I had Steam running ready to launch Factorio and then started dmesg -w > steam-snap-factorio.log
, then Factorio, then, after receving the error message from Factorio I stopped dmesg
.
[261155.183763] audit: type=1107 audit(1671783685.418:90792): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=259315 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[261211.194250] loop45: detected capacity change from 0 to 101624
[261215.390745] loop46: detected capacity change from 0 to 8
[261217.458395] kauditd_printk_skb: 70 callbacks suppressed
[261653.448244] [drm] PCIE GART of 512M enabled (table at 0x0000008000000000).
[261653.448274] [drm] PSP is resuming...
[261653.548431] [drm] reserve 0xa00000 from 0x81fe000000 for PSP TMR
[261653.645870] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[261653.663804] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[261653.663807] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[261653.663811] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000000f, smu fw if version = 0x00000013, smu fw version = 0x003b2900 (59.41.0)
[261653.663813] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[261653.716057] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[261653.717447] [drm] DMUB hardware initialized: version=0x02020013
[261654.359626] [drm:dce110_edp_wait_for_hpd_ready [amdgpu]] *ERROR* dce110_edp_wait_for_hpd_ready: wait timed out!
[261654.983588] [drm:dce110_edp_wait_for_hpd_ready [amdgpu]] *ERROR* dce110_edp_wait_for_hpd_ready: wait timed out!
[261654.985223] [drm] kiq ring mec 2 pipe 1 q 0
[261654.990034] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[261654.990359] [drm] JPEG decode initialized successfully.
[261654.990386] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[261654.990391] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[261654.990394] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[261654.990397] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[261654.990399] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[261654.990401] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[261654.990403] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[261654.990405] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[261654.990407] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[261654.990410] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[261654.990413] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[261654.990415] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[261654.990417] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 1
[261654.990420] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 1
[261654.990422] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 1
[261654.990425] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[261661.307874] [drm] free PSP TMR buffer
[261671.246065] kauditd_printk_skb: 81 callbacks suppressed
[262421.628545] audit: type=1400 audit(1671784951.878:90982): apparmor="DENIED" operation="capable" profile="/snap/snapd/17883/usr/lib/snapd/snap-confine" pid=265124 comm="snap-confine" capability=12 capname="net_admin"
[262421.797167] audit: type=1400 audit(1671784952.046:90983): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/usr/share/" pid=265285 comm="steam" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=0
[262421.797170] audit: type=1400 audit(1671784952.046:90984): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/usr/" pid=265285 comm="steam" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=0
[262423.540892] [drm] PCIE GART of 512M enabled (table at 0x0000008000000000).
[262423.540909] [drm] PSP is resuming...
[262423.640619] [drm] reserve 0xa00000 from 0x81fe000000 for PSP TMR
[262423.738794] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[262423.756819] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[262423.756823] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[262423.756826] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000000f, smu fw if version = 0x00000013, smu fw version = 0x003b2900 (59.41.0)
[262423.756828] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[262423.809420] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[262423.810811] [drm] DMUB hardware initialized: version=0x02020013
[262424.432491] [drm:dce110_edp_wait_for_hpd_ready [amdgpu]] *ERROR* dce110_edp_wait_for_hpd_ready: wait timed out!
[262425.044518] [drm:dce110_edp_wait_for_hpd_ready [amdgpu]] *ERROR* dce110_edp_wait_for_hpd_ready: wait timed out!
[262425.046268] [drm] kiq ring mec 2 pipe 1 q 0
[262425.051322] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[262425.052015] [drm] JPEG decode initialized successfully.
[262425.052041] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[262425.052047] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[262425.052049] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[262425.052051] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[262425.052053] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[262425.052055] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[262425.052056] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[262425.052058] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[262425.052060] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[262425.052062] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[262425.052064] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[262425.052066] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[262425.052068] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 1
[262425.052070] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 1
[262425.052072] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 1
[262425.052074] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[262425.563161] x86/split lock detection: #AC: CJobMgr::m_Work/265441 took a split_lock trap at address: 0xe2e0c19f
[262425.660297] x86/split lock detection: #AC: CJobMgr::m_Work/265452 took a split_lock trap at address: 0xe2e0c19f
[262426.325854] x86/split lock detection: #AC: CNet Encrypt:0/265515 took a split_lock trap at address: 0xe2e0c19f
[262426.493763] x86/split lock detection: #AC: CJobMgr::m_Work/265498 took a split_lock trap at address: 0xe2e0c19f
[262426.848126] kauditd_printk_skb: 162 callbacks suppressed
[262426.848128] audit: type=1400 audit(1671784957.094:91154): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/etc/vulkan/implicit_layer.d/" pid=265518 comm="vulkandriverque" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=0
[262427.596253] audit: type=1107 audit(1671784957.842:91162): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262428.389538] x86/split lock detection: #AC: CJobMgr::m_Work/265524 took a split_lock trap at address: 0xe2e0c19f
[262428.750123] audit: type=1400 audit(1671784958.998:91163): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/265529/oom_score_adj" pid=265345 comm="ThreadPoolSingl" requested_mask="wc" denied_mask="wc" fsuid=589946744 ouid=589946744
[262433.504237] kauditd_printk_skb: 70 callbacks suppressed
[262435.642496] [drm] free PSP TMR buffer
[262438.601617] kauditd_printk_skb: 278 callbacks suppressed
[262438.601624] audit: type=1400 audit(1671784968.850:91522): apparmor="DENIED" operation="capable" profile="/snap/snapd/17883/usr/lib/snapd/snap-confine" pid=265708 comm="snap-confine" capability=12 capname="net_admin"
[262439.576378] audit: type=1107 audit(1671784969.826:91523): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262444.600862] audit: type=1326 audit(1671784974.850:91526): auid=589946744 uid=589946744 gid=589800513 ses=3 subj=snap.steam.steam pid=265285 comm="COfflineMessage" exe="/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_32/steam" sig=0 arch=40000003 syscall=97 compat=1 ip=0xf7f2f549 code=0x50000
[262444.601168] audit: type=1107 audit(1671784974.850:91527): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/RealtimeKit1" interface="org.freedesktop.RealtimeKit1" member="MakeThreadHighPriorityWithPID" mask="send" name="org.freedesktop.RealtimeKit1" pid=265285 label="snap.steam.steam" peer_pid=4090 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262445.602064] audit: type=1107 audit(1671784975.850:91528): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262455.582304] audit: type=1326 audit(1671784985.830:91533): auid=589946744 uid=589946744 gid=589800513 ses=3 subj=snap.steam.steam pid=265285 comm="COfflineMessage" exe="/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_32/steam" sig=0 arch=40000003 syscall=97 compat=1 ip=0xf7f2f549 code=0x50000
[262455.583707] audit: type=1107 audit(1671784985.830:91534): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/RealtimeKit1" interface="org.freedesktop.RealtimeKit1" member="MakeThreadHighPriorityWithPID" mask="send" name="org.freedesktop.RealtimeKit1" pid=265285 label="snap.steam.steam" peer_pid=4090 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262455.587080] audit: type=1107 audit(1671784985.834:91535): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262458.361773] audit: type=1107 audit(1671784988.610:91537): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.32" mask="receive" pid=265285 label="snap.steam.steam" peer_pid=3460 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262459.611472] audit: type=1107 audit(1671784989.858:91538): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262461.152020] audit: type=1107 audit(1671784991.398:91539): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.32" mask="receive" pid=265285 label="snap.steam.steam" peer_pid=3460 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262461.601932] audit: type=1107 audit(1671784991.850:91540): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262462.543941] x86/split lock detection: #AC: CNet Encrypt:0/265515 took a split_lock trap at address: 0xe2e0c19f
[262463.595313] audit: type=1107 audit(1671784993.842:91541): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262488.946495] audit: type=1400 audit(1671785019.194:91556): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/liberation2/LiberationSans-Regular.ttf" pid=265285 comm="steam" requested_mask="k" denied_mask="k" fsuid=589946744 ouid=0
[262489.613863] audit: type=1107 audit(1671785019.862:91557): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262491.595043] audit: type=1400 audit(1671785021.842:91559): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/liberation2/LiberationSans-Italic.ttf" pid=265285 comm="steam" requested_mask="k" denied_mask="k" fsuid=589946744 ouid=0
[262491.599234] audit: type=1400 audit(1671785021.846:91560): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/liberation2/LiberationSans-Bold.ttf" pid=265285 comm="steam" requested_mask="k" denied_mask="k" fsuid=589946744 ouid=0
[262491.603199] audit: type=1400 audit(1671785021.850:91561): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/liberation2/LiberationSans-Regular.ttf" pid=265285 comm="steam" requested_mask="k" denied_mask="k" fsuid=589946744 ouid=0
[262491.606052] audit: type=1400 audit(1671785021.854:91562): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/lyx/wasy10.ttf" pid=265285 comm="steam" requested_mask="k" denied_mask="k" fsuid=589946744 ouid=0
[262491.610217] audit: type=1400 audit(1671785021.858:91563): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/liberation2/LiberationSans-Bold.ttf" pid=265285 comm="steam" requested_mask="k" denied_mask="k" fsuid=589946744 ouid=0
[262492.389575] audit: type=1400 audit(1671785022.638:91564): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/6372/environ" pid=265285 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=589946744
[262497.601164] kauditd_printk_skb: 14 callbacks suppressed
[262497.601169] audit: type=1107 audit(1671785027.850:91582): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262523.379221] audit: type=1400 audit(1671785053.627:91595): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/6372/environ" pid=265285 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=589946744
[262527.576792] kauditd_printk_skb: 17 callbacks suppressed
[262527.576797] audit: type=1107 audit(1671785057.827:91621): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262545.430937] audit: type=1400 audit(1671785075.679:91630): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/6372/environ" pid=265285 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=589946744
[262547.699965] x86/split lock detection: #AC: CJobMgr::m_Work/265524 took a split_lock trap at address: 0xe2e0c19f
[262551.609380] kauditd_printk_skb: 17 callbacks suppressed
[262551.609386] audit: type=1107 audit(1671785081.859:91657): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262623.390683] audit: type=1326 audit(1671785153.644:91693): auid=589946744 uid=589946744 gid=589800513 ses=3 subj=snap.steam.steam pid=265708 comm="bash" exe="/usr/bin/bash" sig=0 arch=c000003e syscall=92 compat=0 ip=0x7f514d965c1b code=0x50000
[262623.601668] audit: type=1107 audit(1671785153.852:91694): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262637.032207] audit: type=1400 audit(1671785167.284:91701): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/266899/oom_score_adj" pid=265345 comm="ThreadPoolSingl" requested_mask="wc" denied_mask="wc" fsuid=589946744 ouid=589946744
[262637.049265] audit: type=1326 audit(1671785167.300:91702): auid=589946744 uid=589946744 gid=589800513 ses=3 subj=snap.steam.steam pid=265345 comm="ThreadPoolForeg" exe="/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_64/steamwebhelper" sig=0 arch=c000003e syscall=141 compat=0 ip=0x7f4a8ecc893b code=0x50000
[262637.597596] audit: type=1107 audit(1671785167.848:91703): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262640.361534] audit: type=1400 audit(1671785170.612:91705): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/266917/oom_score_adj" pid=265345 comm="ThreadPoolSingl" requested_mask="wc" denied_mask="wc" fsuid=589946744 ouid=589946744
[262640.373629] audit: type=1326 audit(1671785170.624:91706): auid=589946744 uid=589946744 gid=589800513 ses=3 subj=snap.steam.steam pid=265345 comm="ThreadPoolForeg" exe="/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_64/steamwebhelper" sig=0 arch=c000003e syscall=141 compat=0 ip=0x7f4a8ecc893b code=0x50000
[262641.613364] audit: type=1107 audit(1671785171.864:91707): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262645.899356] audit: type=1107 audit(1671785176.152:91710): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.32" mask="receive" pid=265285 label="snap.steam.steam" peer_pid=3460 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262645.900186] audit: type=1326 audit(1671785176.152:91711): auid=589946744 uid=589946744 gid=589800513 ses=3 subj=snap.steam.steam pid=266917 comm="Chrome_ChildIOT" exe="/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_64/steamwebhelper" sig=0 arch=c000003e syscall=141 compat=0 ip=0x7fa87e8c893b code=0x50000
[262647.602854] audit: type=1107 audit(1671785177.856:91712): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262655.612087] audit: type=1107 audit(1671785185.864:91717): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.32" mask="receive" pid=265285 label="snap.steam.steam" peer_pid=3460 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262655.709246] audit: type=1107 audit(1671785185.960:91718): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.32" mask="receive" pid=265285 label="snap.steam.steam" peer_pid=3460 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262657.605724] audit: type=1107 audit(1671785187.856:91719): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262666.631490] audit: type=1107 audit(1671785196.884:91724): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.32" mask="receive" pid=265285 label="snap.steam.steam" peer_pid=3460 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262667.270212] audit: type=1400 audit(1671785197.524:91725): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/267056/oom_score_adj" pid=265345 comm="ThreadPoolSingl" requested_mask="wc" denied_mask="wc" fsuid=589946744 ouid=589946744
[262667.282985] audit: type=1326 audit(1671785197.536:91726): auid=589946744 uid=589946744 gid=589800513 ses=3 subj=snap.steam.steam pid=265345 comm="ThreadPoolForeg" exe="/home/emil.hemdal/snap/steam/common/.local/share/Steam/ubuntu12_64/steamwebhelper" sig=0 arch=c000003e syscall=141 compat=0 ip=0x7f4a8ecc893b code=0x50000
[262667.571898] audit: type=1107 audit(1671785197.824:91727): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262852.603325] audit: type=1400 audit(1671785382.854:91834): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/6372/environ" pid=265285 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=589946744
[262853.570763] audit: type=1107 audit(1671785383.822:91842): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[262857.595979] kauditd_printk_skb: 1 callbacks suppressed
[262871.588422] audit: type=1107 audit(1671785401.842:91851): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[263127.452211] audit: type=1400 audit(1671785657.708:91982): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/6372/environ" pid=265285 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=589946744
[263127.583909] audit: type=1107 audit(1671785657.840:91990): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[263129.560239] audit: type=1107 audit(1671785659.816:91991): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[263133.588715] kauditd_printk_skb: 1 callbacks suppressed
[263133.588720] audit: type=1107 audit(1671785663.844:91993): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[263175.573857] kauditd_printk_skb: 115 callbacks suppressed
[263175.573862] audit: type=1107 audit(1671785705.833:92136): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[263278.349253] audit: type=1107 audit(1671785808.606:92188): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.32" mask="receive" pid=265285 label="snap.steam.steam" peer_pid=3460 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[263279.585571] audit: type=1107 audit(1671785809.842:92189): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
[263330.084592] audit: type=1400 audit(1671785860.342:92218): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/9054/environ" pid=265285 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=589946744 ouid=589946744
[263331.602022] kauditd_printk_skb: 2 callbacks suppressed
[263331.602025] audit: type=1107 audit(1671785861.858:92224): pid=3160 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=265285 label="snap.steam.steam" peer_pid=3601 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
$ snap refresh steam --edge
steam (edge) 1.0.0.75 from Canonical✓ refreshed
$ snap refresh snapd
error: snap "snapd" is not installed
I get the same error when launching Factorio.
Guessing it's an apparmor deny somewhere in:
sudo journalctl --since=yesterday -f | grep audit
Jan 03 14:57:42 pricey-xps audit[1411]: USER_AVC pid=1411 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=51264 label="snap.steam.steam" peer_pid=1731 peer_label="unconfined"
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps kernel: kauditd_printk_skb: 74 callbacks suppressed
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.122:2577): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/msttcorefonts/Arial_Italic.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.134:2578): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.142:2579): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/lyx/wasy10.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.150:2580): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/lyx/wasy10.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.158:2581): apparmor="DENIED" operation="file_lock" profile="snap.steam.steam" name="/usr/share/fonts/truetype/msttcorefonts/Arial.ttf" pid=51264 comm="steam" requested_mask="k" denied_mask="k" fsuid=1000 ouid=0
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/32200/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/34937/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.990:2582): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/32200/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.990:2583): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/34937/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/32200/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/34937/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/32200/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps audit[51264]: AVC apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/34937/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.994:2584): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/32200/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.994:2585): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/34937/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:43 pricey-xps kernel: audit: type=1400 audit(1672757863.994:2586): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/proc/32200/environ" pid=51264 comm="CIPCServer::Thr" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:44 pricey-xps audit[51917]: AVC apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/home/pricey/.factorio/config/config.ini" pid=51917 comm="factorio" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
Jan 03 14:57:44 pricey-xps audit[51917]: AVC apparmor="DENIED" operation="mknod" profile="snap.steam.steam" name="/home/pricey/.factorio/.lock" pid=51917 comm="factorio" requested_mask="c" denied_mask="c" fsuid=1000 ouid=1000
Jan 03 14:57:44 pricey-xps audit[1411]: USER_AVC pid=1411 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/UPower/devices/battery_BAT0" interface="org.freedesktop.UPower.Device" member="Refresh" mask="send" name="org.freedesktop.UPower" pid=51264 label="snap.steam.steam" peer_pid=1731 peer_label="unconfined"
since you mentioned flatpak, would you know how to get that version to detect other drives? i have my library on a 3tb drive and my os on a 120gb m.2 and the flatpak version does not display the media directory that the drives are listed in. Flatpak version is basically useless until i can resolve that issue.
The reason this won't work is Snap won't read/write to private directories in the user's HOME
and in fact it overwrites HOME
to another value. However, judging by the strace logs Factorio determines the location of HOME
by directly doing something similar to /home/$USER
(it's not that since overriding $USER
doesn't work, but that's the gist). It can't write to .factorio
since that's a hidden directory.
HOWEVER! It turns out there's a way to override this behavior https://wiki.factorio.com/Application_directory#Changing_the_user_data_directory
In the Factorio directory (by default $HOME/snap/steam/common/.steam/steam/steamapps/Factorio
, if you have multiple steam libraries find it at that path) there will be a file named config-path.cfg
. At the top there's a line that says config-path=...
change this line to config-path=__PATH__executable__/../../config
and also use-system-read-write-data-directories=false
and it will save the configs under .../Factorio/config
.
After that, do mkdir $HOME/snap/steam/common/.steam/steam/steamapps/Factorio/config
and then edit the file .../config/config.ini
and make it read like this:
[path]
read-data=__PATH__executable__/../../data
write-data=__PATH__executable__/../../writedata
This will allow the game to write its save data etc to its own directory under .../Factorio/write-data
.
Note that I'm unsure how this affects modding, it may be prudent to go a level deeper and do __PATH__executable__/../../factorio/
for both config-path
and write-data
which I think will lay it out exactly like it is in $HOME
I tried multiple things to make it just use SNAP_USER_COMMON
(or XDG_DATA_HOME
) or something instead, but you can't appear to get environment variables read in the config files, if you want to do this you'll have to manually put the raw path in the file, but in principle it should be possible.
You would enter the dots verbatim (they each just mean go "up" 1 directory), and you'll need to create the config.ini file (and any needed directories) in $HOME/snap/steam/common/.steam/steam/steamapps/Factorio/config/config.ini
See the wiki page I created for more details: https://github.com/canonical/steam-snap/wiki/Known-Workarounds#factorio
In the wiki ( https://github.com/canonical/steam-snap/wiki/Known-Workarounds#factorio ) it is stated that you may lose cloud saves. I simply created a symlink with the following command:
ln -s /home/$USER/snap/steam/common/.factorio/saves/ /media/$USER/steam/steamapps/common/Factorio/
The cloud saves show up in the game for me now.
My game is installed on a zfs pool and bind mounted so the snap can see it so the installation directory is different. For a regular install I think the save directory would be in:
/home/$USER/snap/steam/common/.steam/steam/steamapps/common/Factorio/saves