[SOLVED] Weird Discord file uploading problem

Hi, this is my very first post (yay).
I'm using Manjaro 18.0 with x86_64 Linux 4.19.1-1-MANJARO kernel.
I got Xfce4 as my desktop, Xfwm4 as my window manager and Thunar as my file manager.
I'm pretty much using the defaults that came with my install as you can see.
Gonna setup my stuff before I go changing anything.

I'm unable to drag & drop files to Discord unless if they're located under /home/irets/Pictures/.
They have to be under that directory or else the upload will fail.

This is what it looks like if I try to upload a file which isn't inside that directory.
Screenshot_2018-11-16_18-58-02
If I click the upload button it just says "Upload Failed".
It doesn't even show the preview of the image, it's just a white blank box.
I believe dragging & dropping works flawlessly with other applications because I tried to drag a file to this text editor from my second hdd and it worked.
This is really a shame because I got a second 2TB hdd full of media that I like to share with my friends on Discord.

I come from Sparky and this is my first time using Manjaro or any Arch based distro, so be patient with me.
IIRC I had issues with drag & drop on Sparky too but I was able to right click on the file I wanted to upload and select "copy".
After that I could just paste it into Discord and it would upload but Thunar only copies the path to the file.

If you need any more information about my system, logs etc. just reply to me and I'll provide them to you.

EDIT:
Removing the flatpak version of Discord and installing it from AUR solved the issue.

-Irets

Works fine for me with files from other folders in my /home.

How did you install Discord?
AUR, Snap or Flatpak?

I believe it was from Flatpak.
Pardon me for using the "AUR" tag in my post.

I am using the AUR version and I have no issues.

It might be related to confinement of some sort then. Where the discord app can only read from certain folders.

Could you walk me through the steps how to uninstall Discord installed from Flatpak and I'll try the AUR version if it would make a difference?
I'm used to using apt-get.

No idea how to uninstall the flatpak version, but you should be able to install the AUR version besides it.

Enable AUR in Pamac/Octopi, then search for Discord.
Install Discord from there. It will take some time, because it will compile libc++ and maybe fail with missing GPG keys. This is a common issue, covered multiple times on the forum, so search for solutions for that.
When it's done building and installing simply run it from the menu and try uploading pictures again.

If you want to skip the libc++ stuff, you can install it from my repo, by adding this to your /etc/pacman.conf:

[manjaro-strit]
SigLevel = Optional
Server = https://www.strits.dk/files/manjaro-strit/manjaro-strit-repo/$arch

And running sudo pacman -Syy manjaro-strit-keyring.
After that install the discord AUR package and it will pull in libc++ from my repo.

1 Like

I added your repo to pacman.conf but I get an error when I run sudo pacman -Syy manjaro-strit-keyring
Is this normal?

irets@Navi ~]$ sudo pacman -Syy manjaro-strit-keyring
:: Synchronizing package databases...
 core                     146,9 KiB   918K/s 00:00 [######################] 100%
 extra                   1784,6 KiB  5,35M/s 00:00 [######################] 100%
 community                  5,0 MiB  9,05M/s 00:01 [######################] 100%
 multilib                 183,8 KiB  6,65M/s 00:00 [######################] 100%
 manjaro-strit             21,2 KiB   424K/s 00:00 [######################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (1) manjaro-strit-keyring-20160524-1

Total Download Size:   0,01 MiB
Total Installed Size:  0,02 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 manjaro-strit-keyri...    12,2 KiB  0,00B/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing manjaro-strit-keyring             [######################] 100%

error: command failed to execute correctly
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[irets@Navi ~]$ 

I see no error. Only that the package installed.
error: command failed to execute correctly this could be a problem in my .install file....

But others haven't complained about it not working, so I don't know....

Oh well, I'll try to install it without your repos.
I did indeed get the error about invalid keys.

Preparing...
Cloning discord build files...
Checking discord dependencies...
Resolving dependencies...
Checking inter-conflicts...
Downloading...
Downloading gconf (3.2.6+11+g07808097-4-x86_64)...
Downloading libc++abi (7.0.0-1-x86_64)...
Downloading libc++ (7.0.0-1-x86_64)...
Checking keyring...
Checking integrity...
Error: libc++abi: signature from "Dan Johansen <strit@strits.dk>" is unknown trust
Error: libc++: signature from "Dan Johansen <strit@strits.dk>" is unknown trust
Failed to commit transaction:
invalid or corrupted package (PGP signature):

Gonna start searching the forums for answers.

Yeah, the .install of the package did not run well.

See if this helps:
sudo pacman-key --populate manjaro-strit-keyring

EDIT: Fixed keyring name!

This is the output of sudo pacman-key --populate manjaro-strit

[irets@Navi ~]$ sudo pacman-key --populate manjaro-strit
[sudo] password for irets: 
==> Appending keys from manjaro-strit.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2019-03-29

And this is the output of sudo pacman -Syy manjaro-strit-keyring

[irets@Navi ~]$ sudo pacman -Syy manjaro-strit-keyring
:: Synchronizing package databases...
 core                       146,9 KiB   761K/s 00:00 [###########################] 100%
 extra                     1784,6 KiB  4,92M/s 00:00 [###########################] 100%
 community                    5,0 MiB  10,1M/s 00:01 [###########################] 100%
 multilib                   183,8 KiB  8,97M/s 00:00 [###########################] 100%
 manjaro-strit               21,2 KiB   493K/s 00:00 [###########################] 100%
warning: manjaro-strit-keyring-20160524-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) manjaro-strit-keyring-20160524-1

Total Installed Size:  0,02 MiB
Net Upgrade Size:      0,00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                       [###########################] 100%
(1/1) checking package integrity                     [###########################] 100%
(1/1) loading package files                          [###########################] 100%
(1/1) checking for file conflicts                    [###########################] 100%
(1/1) checking available disk space                  [###########################] 100%
:: Processing package changes...
(1/1) reinstalling manjaro-strit-keyring             [###########################] 100%
gpg: key 084A7FC0035B1D49: 8 signatures not checked due to missing keys
gpg: key 084A7FC0035B1D49: "Dan Johansen <strit@strits.dk>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
==> Updating trust database...
gpg: next trustdb check due at 2019-03-29
  -> Locally signing key 035B1D49...
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  23  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  23  signed:  83  trust: 1-, 0q, 0n, 22m, 0f, 0u
gpg: depth: 2  valid:  80  signed:  14  trust: 80-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2019-03-29
==> Appending keys from manjaro-strit.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2019-03-29
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...


Did it install correctly?

yes. That time it installed correctly. :slight_smile:

Neat!
I'm currently installing Discord.
Will report after its done installing.

It installed successfully and I got it open.
I tested the uploading with a couple of different file formats like mp4, png, jpg... and it worked!!
Thank you so much for fast and helpful replies.
I will mark the thread as "Solved".
Kudos to you!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by