Ubuntu 20.04
mattermost &
(base) v@v:~$ Error: failed to load configuration: open /opt/mattermost/config/config.json: permission denied
why?
Ubuntu 20.04
mattermost &
(base) v@v:~$ Error: failed to load configuration: open /opt/mattermost/config/config.json: permission denied
why?
This can have multiple reasons.
Please post the following outputs:
id
ls -lhd /opt
ls -lhd /opt/mattermost
ls -lhd /opt/mattermost/config
ls -lh /opt/mattermost/config/config.json
uid=1000(v) gid=1000(v) groups=1000(v),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)
drwxr-xr-x 9 root root 4.0K Sep 12 17:03 /opt
drwxr-xr-x 11 root root 4.0K Sep 23 20:29 /opt/mattermost
drwxr-xr-x 2 root root 4.0K Sep 23 20:29 /opt/mattermost/config
-rw------- 1 root root 20K Sep 28 14:18 /opt/mattermost/config/config.json
Your /opt/mattermost directory belongs to root and you’re trying to run the application in a virtual environment with user ID 1000. Can you explain why you try to do that and why you did not follow the installation instructions to create a dedicated mattermost
useraccount and assign the required permissions to the binary and the directories?
This is the desktop application setup guide, but you seem to have downloaded the server component. The Desktop application does not have a config.json
file, so you mixed up something here.
How could I remove the server component?
What is it that you’re trying to achieve? Please try to describe what you’re trying to achieve, posting an error message here without telling your intention and just asking “why” is not really helpful and puts a burden on anyone who’s trying to help you.
If you have troubles formulating your question in a foreign language I can recommend using Google translate or Deepl.com.
I have an account in a mattermost server. I would like to open a Mattermost Desktop App and log into my account.
If you just want to use the Mattermost desktop application on your Ubuntu client and the server is hosted somewhere else, you can remove the /opt/mattermost
directory again on your client.
If you followed the desktop app installation instructions, you can then just start the mattermost-desktop
app (either using your file browser or launcher or the command line).
successfully logged into the desktop app