Changing to FileSystem with a secondary drive issue

Description

I’m trying to reconfigure my file uploads to use FileSystem, on a second disk I attached to my RocketChat Server. I’m not a Linux Guru by any stretch of the imagination, so I must be missing something simple. I get a permission error, yet I thought I set all user full access. Hoping for some help! Thank you in advance!

Pretty sure the RocketChat service is using the administrator account.

Server Setup Information

  • Version of Rocket.Chat Server: 7.9.0
  • Operating System: Ubuntu 24.04.3 LTS
  • Deployment Method: On-prem via VM in vSphere
  • Number of Running Instances: 1
  • DB Replicaset Oplog: ? default or N/A
  • NodeJS Version: default
  • MongoDB Version: default
  • Proxy: None
  • Firewalls involved: None

Any additional Information

How is it deployed? Snaps or docker?

With docker upgrade to at least 7.9.4

You might want to review that…..

Highly unlikely if it’s a snap, and they are locked down pretty tight.

A snap likely won’t have much access outside /home/user

You would need to use a bind mount to mount a specific directory at a specific directory not a standard mount.

See “So, two things” here:

Docker has other solutions but let us know what type of deployment you have first.

I think mine is using Snaps. I thought I had installed it straight onto Ubuntu without Docker or Snaps. Not so sure how to tell, haha. What do you think about these commands and outputs? I tried uploading a file again after the bind mount, still failed. Tried setting location in RocketChat server File Upload settings to /home/administrator/rocketchatstore but it fails too, same permissions error. Thank you so much for the help!

So a few things.

You need to make sure you write all your commands down as you do them.for referencr. Makes it repeatable.

Make sure you absolutely know what you are installing. I can see a rocket-compose dir there too. What’s that for?

Which documentation did you follow?

This?

Note carefully:

We do not recommend using Snaps in a production environment.

Next, I’d rebuild your server and increase the root partition size. You are already at 61% wuth 3.7gb free. You can swallow that with logs, dbs etc very fast.

I’d also dump LVM which is pointless overhead on a VM and use a raw file. Custom install.

Your hypervisor probably uses LVM of some form (I’m decades out of Windows so no real idea). It doesn’t need it again.

Using LVM makes it more difficult to resize disks as well….

Never, ever, run directly as root. Always use sudo, at least on *buntus.

I’d use a specific Rocket user with sudo permissions - this is stock *buntu stuff. Never call it “admin” or “administrator”.

Snaps are very particular with permissions which makes this sort of thing tricky.

What format is your file store? Ext4, xfs, something else? How is it mounted? Whats in /etc/fstab ?

You need to check the owner and permissions on your file store dir. Use ls -l or ll if you have a bash alias.

A lot of this is basic linux admin which you should spend some time on.

Lastly.

Docker + compose are todays recommendations and worth understanding.

Yeah, I think I may just delete this server and start from scratch, haha! I honestly do not recall what guide I started with a couple months ago, but you think the docker guide should be my go to? I’m installing only one single server, on prem, with no internet access (when I go to make it live). Internal chat use only kind of thing. I’m not going to use a secondary drive this time, I’ll just make the root drive like 1TB instead.

Thank you so much for your time and information! I’ll post back next week when I can tackle this again. Linux projects are always a pain for us. We have no Linux admin, so it gets dumped on me cause I’m the “figure it out” guy. I can easily go a year without touching a linux box, haha.

Darin

Learn to love Linux….. I occasionally look at a Windows box today and after I’ve shovelled the ads, ai crap, and other junk out of the way, I still can’t find a thing :rofl::rofl:

Reminds me why I left it.

——————

Anyways….

Be aware about air gapped.

If it so muchs as sniffs network you are goosed.

It must also be licenced.

CE cannot be airgapped. Starter is free up to 50 users.

Note I don’t work here (did for a while) so don’t shoot the messenger!

Ask if you need help - but spend lots of time in the docs….