Koozali.org: home of the SME Server
Contribs.org Forums => Koozali SME Server 10.x => Topic started by: Sparkey on April 20, 2023, 11:26:58 PM
-
I recently did an update from 9.2 to 10.1.
Made a server tgz backup via console to a usb drive, installed 10.1 and then restored backup. There were no erros during install or restore.
Brought 10.1 up and am currently running into what looks like a permissions issue.
I have noticed that the web server is not accessible. Reading the logs I see this below:
[core:error] [pid 2451] (13)Permission denied: [client 179.43.177.243:52504] AH00035: access to /index.htm denied (filesystem path '/home/e-smith/files/ibays/Primary/html/index.htm') because search permissions are missing on a component of the path
I have no idea where to go at this point and was hoping someone here can lead me to a fix.
Thanks,
Mark
-
I've seen issues in the past where restored data didn't pick up the correct file ownership (although not when using backup/restore).
Here are some notes on what I'm seeing, in case they're useful...
# ls -ld /home
drwxr-xr-x. 4 root root 34 Feb 19 2017 /home
# ls -ld /home/e-smith
drwxr-xr-x. 14 admin admin 4096 Apr 7 07:20 /home/e-smith
# ls -ld /home/e-smith/files
drwxr-xr-x. 8 root root 98 Jan 31 2013 /home/e-smith/files
# ls -ld /home/e-smith/files/ibays
drwxr-xr-x. 10 root root 136 Feb 6 2013 /home/e-smith/files/ibays
# ls -ld /home/e-smith/files/ibays/Primary/
drwxr-xr-x. 6 root root 67 Jun 14 2017 /home/e-smith/files/ibays/Primary/
# # ls -ld /home/e-smith/files/ibays/Primary/html
drwxrwsr-x. 6 admin www 143 Apr 15 14:40 /home/e-smith/files/ibays/Primary/html
# ls -ld /home/e-smith/files/ibays/Primary/html
drwxrwsr-x. 6 admin www 143 Apr 15 14:40 /home/e-smith/files/ibays/Primary/html
# db accounts show Primary
Primary=ibay
AllowOverride=All
Audit=enabled
CgiBin=enabled
FollowSymLinks=enabled
Group=www
Modifiable=no
Name=Primary i-bay
PHPBaseDir=/home/e-smith/files/ibays/Primary/html/:/tmp/
PasswordSet=no
Passwordable=no
PublicAccess=global
Removable=no
UserAccess=wr-group-rd-everyone
WideLinks=yes
-
I have noticed that the web server is not accessible. Reading the logs I see this below:
If any custom templates remove, config and reboot...
-
Thanks for the suggestions.
To make a long story short:
Permission errors started showing up in nested folders in users folders besides the web server. (It was an oh shit moment!) I checked error logs and saw some other permissions issues and decided to rsync my data files to a usb drive. Then I shutdown the server, removed the 10.1 installation disks, replaced with the 9.2 disks, and booted 9.2 back up.
Configured the workstations to again use smb1 and disable 2/3 protocols and then rsync'd my data files back to the 9.2 installation.
Back up and running with 9.2. and everything is as it should be.
Since my 9.2 has never shown any permissions issues or errors in any logs, my best guess is that a version 9 contrib or a custom template was f'ing things up. I'll dig into this more in a month or so. For now, everyone is back in business at work.
-
Get yourself a test server and try there. Saves a lot of heartache & pain.
As Terry said, make sure you remove old detritus before rebooting. That is the most common issue.
You can also then check user perms are correct too.
Really need to get a move on. V9 is way out of date and if they remove SMB 1/2 support (likely soon) from your clients you are in big trouble.
-
https://bugs.koozali.org/show_bug.cgi?id=12146
grep www /etc/group
www should be in all your groups associated with an ibay
-
I am working on reinstalling 10. I have encountered an issue with the mirrors passing an incorrect url. That info is in another thread that referenced the same issue.
https://forums.koozali.org/index.php/topic,54636.0.html
-
before losing hours on reinstalling to end up with same issue probably, wouldn’t it have been nice to answer the previous message and actually fix your issue ?