Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Strange /tmp folder ownership on reboot?

Featured Replies

Hi, recently i've had a strange problem with my unraid box.

 

Every time my unraid box is rebooted, the /tmp directory is inaccessible by MySQL (The mysql plugin - running as nobody) so i have to do a

chmod 1777 /tmp -R

on startup.

 

Also my sabnzbd directorys settings have the same thing, whereby the log file etc have the wrong permissions (a quick chmod 1777 fixes this) However does anybody know what might be causing this?

 

This sabnzbd directory is located on my cache drive, so it seems weird that the permissions would be reset on a reboot, the tmp directory i can almost understand (however it didn't originally do this)

 

Has anybody experienced anything like this before? I have nothing in my go file anymore except unraid_notify start and everything else is just the standard plugins, so i cant really see why this would be happening (as obviously nobody using any of the plugins i use have been reporting these problems)

 

It's quite frustrating since obviously if i set my unraid box to shutdown and startup at certain times of the day it would mean that nothing is accessible until i ssh into it (or obviously i enter this stuff into the go file, but this seems more like a hack to fix something that shouldn't be happening and i feel like it could have deeper meaning hidden beneath it)

You did not even bother to tell us what version of unRAID you are running...

 

also THERE ARE NOT ANY STANDARD PLUGINS.  Therefore, I'm not sure anybody can do anything for you.

 

Since nobody else is having this issue, it is HIGHLY likely it is one of your customizations or configurations of one of your plugins.

 

I'll refrain from saying this should be moved to the customizations forum, but to me that is your next logical step, to remove ALL the plugins and add-ons, and then see which is causing your permissions issue.

 

Joe L.

  • Author

You did not even bother to tell us what version of unRAID you are running...

 

also THERE ARE NOT ANY STANDARD PLUGINS.  Therefore, I'm not sure anybody can do anything for you.

 

Since nobody else is having this issue, it is HIGHLY likely it is one of your customizations or configurations of one of your plugins.

 

I'll refrain from saying this should be moved to the customizations forum, but to me that is your next logical step, to remove ALL the plugins and add-ons, and then see which is causing your permissions issue.

 

Joe L.

 

Sorry perhaps i was unclear. By standard plugins i meant plugins using the actual plugin API E.g not unmenu plugins, not stuff in the go script etc etc. (So stuff on the forum, and so obviously if this was a problem with a plugin - It would have been mentioned by somebody else by now)

I've also tried disabling all other plugins and nothing else seems to do it.

 

Unraid version is 5-rc4 however it has happened on other versions (have updated unraid a few times) and its never not happened, since i think version 11b? Was around when the problem first started happening (Although my box was 24/7 so i didn't notice it for a long time) which is why i didn't feel the need to omit the unraid version

 

 

Which is why i believe its an unraid issue - or a hard drive issue? Something i'm not confident in troubleshooting -hence why im on the forum.

 

So before you go all 'YOU'RE AN IDIOT' in caps next time, perhaps take a minute to to stop and think that maybe you're taking the message the wrong way, because its not exactly helpful. (Even if i didn't know the message you were trying to put across, there are plenty of ways to do it without being an ass)

 

I just wanted to know if it was a problem anybody else had encountered before, or if anybody had any ideas on it that aren't just stabs in the dark.

 

... without being an ass

 

Joe is the most prolific and knowledgeable person on this forum.  Suggesting that he is an 'ass' is not the most sensible way to go about getting help.

 

I will re-iterate what he said: There are not any 'standard' plugins.  If you are adding any applications which did not come in the original unRAIDxxx.zip file, then they are NOT standard.

 

Perhaps it would be helpful if you were to to tell us what the ownership/permissions of the /tmp directory are before you issue the chmod command.

 

Then disable ALL addons and reboot.  Now what is the ownership/permissions on your /tmp directory.

 

Are you sure that the problem is with the top level /tmp directory, and not some files or sub-directory being created by one of your addons?

  • Author

... without being an ass

 

Joe is the most prolific and knowledgeable person on this forum.  Suggesting that he is an 'ass' is not the most sensible way to go about getting help.

 

I will re-iterate what he said: There are not any 'standard' plugins.  If you are adding any applications which did not come in the original unRAIDxxx.zip file, then they are NOT standard.

 

Perhaps it would be helpful if you were to to tell us what the ownership/permissions of the /tmp directory are before you issue the chmod command.

 

Then disable ALL addons and reboot.  Now what is the ownership/permissions on your /tmp directory.

 

Are you sure that the problem is with the top level /tmp directory, and not some files or sub-directory being created by one of your addons?

 

I know he is, ive always highly respected him and his dedication to helping people (I was even like "Oh great, joe replied to my thread") however when i was simply asking a question his post was basically just insulting me without really acknowledging the question. He could have shortened it to "What version of unraid? Have you tried disabling all plugins?". It just seemed to be far too hot-headed a post. I'm sure you can see what i mean.

 

and i realize there are no 'standard plugins', i meant just actual plugins, not unmenu etc. i realize they are all third party etc etc and not part of unraid (hence PLUGIN) however since nobody reports issues like this about the plugins (and they're all popular plugins) i was trying to point out that it seemed unlikely i would randomly be experiencing this issue without somebody else having experienced it.

 

 

Anyway, i noticed in my packages folder that i still had a lot of artifacts leftover from unmenu and old plugins, so i removed the folder and started up unraid again, however now i seem to have lost access to a lot of bash commands

 

such as reboot, shutdown, installpkg however i still have installplg ?

 

I realise this is (most probably) a totally different issue however on googling it i just receive thousands of threads of people on ubuntu saying it doesnt work and people saying "thats because its slackware.."  :P

Allright, I'll put this a simply as possible.

 

unRAID re-creates /tmp every time it reboots.  If you've rebooted, then one of your plugins or add-ons have changed the permissions.      You are not the first person to ever have an issue with /tmp.  The first time I ever experienced it was about 30+ years ago when a newbie programmer that had just been hired into the group I was working in removed it from a UNIX minicomputer, thinking it was just "temporary"

 

Needless to say, a lot of programs expect it to be there, and the UNIX system basically crashed (nobody could log on, processes stopped working, etc)  It took a super-human effort to regain control.  (Yes, I was involved in attempting to regain root privileges when we could not even use the "su" command.)

 

Now, this was way before unRAID existed, but the same sorts of issues exist today if you mess with permissions of /tmp

 

rename your "extras" folder to something else.  (and the "packages" folder too)  Comment out the two lines in the "go" script you have invoking the unMENU installed packages, and the unraid_notify, then REBOOT.  In other words, it is something on YOUR server that is messing with permissions.  Highly likely one of your configured plugins.

 

Then, one by one, re-install a plugin/package, reboot, run the add-on/plugin, let it function through whatever cycle it needs, and check permissions on /tmp.  Since you have the same issues with sabnzbd, I'd start with it.

 

I've given as much help as I can...  and now I'm moving this to the customizations forum.  It will get more visibility there to those who might be able to help you more.

 

Joe L.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.