JGCarroll / runescape-snap

MIT License
11 stars 2 forks source link

lots of weird permissions errors #7

Closed wshackle closed 3 years ago

wshackle commented 3 years ago

The following is what happens when trying to run.

Note that /tmp/ exists and is readable and writeable by everyone and /etc/wgetrc exists and is readable by anyone.

will@will-Inspiron-660:~$ /snap/bin/runescape.rs3

Couldn't find Jagex launcher, grabbing a fresh copy

Importing Jagex Signing key

gpg: key 7373B12CE03BEB4B: "RuneScape Linux noreply@jagex.com" not changed gpg: Total number processed: 1 gpg: unchanged: 1

Downloading RuneScape repository info

Failed to Fopen file /etc/wgetrc Failed to Fopen file /etc/wgetrc wget: Cannot read /etc/wgetrc (Permission denied). /tmp/Release: Permission denied

Downloading RuneScape repository info signature

Failed to Fopen file /etc/wgetrc Failed to Fopen file /etc/wgetrc wget: Cannot read /etc/wgetrc (Permission denied). /tmp/Release.gpg: Permission denied gpg: Signature made Thu Feb 11 06:18:37 2021 EST gpg: using RSA key AAC9264309E4D717441DB9527373B12CE03BEB4B gpg: Good signature from "RuneScape Linux noreply@jagex.com" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: AAC9 2643 09E4 D717 441D B952 7373 B12C E03B EB4B

Repository metadata successfully verified by GPG key

Downloading repository package list

Failed to Fopen file /etc/wgetrc Failed to Fopen file /etc/wgetrc wget: Cannot read /etc/wgetrc (Permission denied). /tmp/Packages: Permission denied Repository package list looks valid

Downloading RuneScape launcher

Failed to Fopen file /etc/wgetrc Failed to Fopen file /etc/wgetrc wget: Cannot read /etc/wgetrc (Permission denied). /tmp/rs.deb: Permission denied

Launcher successfully verified by GPG key

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,2 CPUs Intel(R) Pentium(R) CPU G2020 @ 2.90GHz (306A9),ASM)

Scanning the drive for archives: 1 file, 3869752 bytes (3780 KiB)

Extracting archive: /tmp/rs.deb --
Path = /tmp/rs.deb Type = Ar Physical Size = 3869752 SubType = deb

Path = data.tar.xz Size = 3861128 Modified = 2021-02-11 06:18:31 Mode = -rw-r--r--

Path = data.tar.xz Type = xz Physical Size = 3861128 Method = LZMA2:23 CRC64 Streams = 1 Blocks = 1

ERROR: Can not open output file : Permission denied : /tmp/data.tar/data.tar

Sub items Errors: 1

Archives with Errors: 1

Sub items Errors: 1

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,2 CPUs Intel(R) Pentium(R) CPU G2020 @ 2.90GHz (306A9),ASM)

Scanning the drive for archives:

ERROR: Permission denied /tmp/data.tar/

System ERROR: Unknown error -2147024883 mv: cannot stat '/tmp/usr/share/games/runescape-launcher/runescape': Permission denied chmod: cannot access '/home/will/snap/runescape/common/.launcher-2.2.8': No such file or directory

Setting RS3 cache location to /home/will/snap/runescape/common

The download process has failed unexpectedly. Please raise a Github issue, as this is likely a serious fault. Warning: locale not supported by C library, locale unchanged

JGCarroll commented 3 years ago

The wgetrc failure is expected, but the /tmp.one isn't.

This actually popped up last night for a user on Manjaro, it shouldn't be occurring but the fix ended up being as simple as removing the snap, rebooting and reinstalling. sudo snap remove runescape --purgeshould be the most thorough.

In snaps /tmp doesn't actually correspond to the same /tmp the normal system uses, it's supposed to be private due to mount namespaces but it seems there might be something going funny with it lately, is this also Manjaro by chance?

See the second to last post here https://github.com/MrCarroll/runescape-snap/issues/6

wshackle commented 3 years ago

It is on Linux Mint 20.1

wshackle commented 3 years ago

purge, reboot and reinstall seems to have worked for me too.

-- Thanks