Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Loss off network shares on 8.2
#95
(11-05-2022, 10:50 AM)rph-r Wrote:
(11-03-2022, 04:19 PM)Tim Curtis Wrote:
(11-03-2022, 02:57 PM)TheOldPresbyope Wrote: @rph-r
@Tim Curtis

OK, I found the bug that causes the behavior I reported in my post #70 

In /var/www/sys-config.php there's this nugget

Code:
// SMB
if (isset($_POST['update_fs_smb'])) {
       if (isset($_POST['fs_smb']) && $_POST['fs_smb'] != $_SESSION['fs_smb']) {
               phpSession('write', 'fs_smb', $_POST['fs_smb']);
               submitJob('fs_smb', $_POST['fs_nfs'], 'Settings updated', '');
       }
}

That last line (line 265 in my file) should be

Code:
               submitJob('fs_smb', $_POST['fs_smb'], 'Settings updated', '');

With this fix the SMB file sharing service is reliably accessible from my LAN when it's supposed to be.

I'd be interested to hear if making this fix affects the behaviors reported by others on this thread, some of which I still haven't figured out.

Regards,
Kent

It prolly was the root cause.

This bug results in the SMB on/off setting using the NFS on/off setting thus if NFS is off then SMB will also always be off even when the toggle is ON :-0

It's fixed for upcoming 8.2.3 but in the meantime here's a patch for that php file. Just paste it at the command prompt and then restart the servers.

Code:
# Command to patch the file
sudo sed -i s"/submitJob('fs_smb', \$_POST\['fs_nfs'\]/submitJob('fs_smb', \$_POST\['fs_smb'\]/" /var/www/sys-config.php

# Restart servers
moodeutl -r

it's working for me! thank you
Altering that file fixed my "samba doesn't work from anywhere" issue (thanks!) and has reverted to my original "samba doesn't work from some random Android app" one.  I'll just ignore it and use rsync.
Reply


Messages In This Thread
Loss off network shares on 8.2 - by evanbutson - 09-18-2022, 11:12 PM
RE: Loss off network shares on 8.2 - by Falco - 09-19-2022, 02:13 PM
RE: Loss off network shares on 8.2 - by Falco - 09-19-2022, 02:53 PM
RE: Loss off network shares on 8.2 - by R2ots - 09-20-2022, 09:53 AM
RE: Loss off network shares on 8.2 - by R2ots - 09-20-2022, 07:14 PM
RE: Loss off network shares on 8.2 - by yannig - 09-20-2022, 03:19 PM
RE: Loss off network shares on 8.2 - by yannig - 09-20-2022, 04:15 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-20-2022, 06:25 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-21-2022, 06:20 AM
RE: Loss off network shares on 8.2 - by Falco - 09-22-2022, 09:43 AM
RE: Loss off network shares on 8.2 - by didier573 - 09-22-2022, 04:29 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-21-2022, 12:01 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-21-2022, 03:42 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-21-2022, 12:31 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-21-2022, 04:10 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-21-2022, 04:48 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-21-2022, 07:15 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-21-2022, 08:29 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-22-2022, 06:06 AM
RE: Loss off network shares on 8.2 - by didier573 - 09-22-2022, 06:15 AM
RE: Loss off network shares on 8.2 - by didier573 - 09-22-2022, 04:35 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-22-2022, 06:38 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-22-2022, 08:38 PM
RE: Loss off network shares on 8.2 - by didier573 - 09-23-2022, 06:10 AM
RE: Loss off network shares on 8.2 - by Falco - 09-23-2022, 07:37 AM
RE: Loss off network shares on 8.2 - by Nutul - 09-23-2022, 10:34 AM
RE: Loss off network shares on 8.2 - by rph-r - 10-30-2022, 08:26 PM
RE: Loss off network shares on 8.2 - by rph-r - 10-30-2022, 10:03 PM
RE: Loss off network shares on 8.2 - by rph-r - 10-31-2022, 09:19 AM
RE: Loss off network shares on 8.2 - by rph-r - 10-31-2022, 07:51 PM
RE: Loss off network shares on 8.2 - by rph-r - 10-31-2022, 09:14 PM
RE: Loss off network shares on 8.2 - by rph-r - 10-31-2022, 09:36 PM
RE: Loss off network shares on 8.2 - by rph-r - 11-01-2022, 11:06 PM
RE: Loss off network shares on 8.2 - by Sehnsucht - 11-01-2022, 09:06 PM
RE: Loss off network shares on 8.2 - by rph-r - 11-02-2022, 11:56 AM
RE: Loss off network shares on 8.2 - by DRONE7 - 11-02-2022, 06:57 AM
RE: Loss off network shares on 8.2 - by rph-r - 11-02-2022, 12:09 PM
RE: Loss off network shares on 8.2 - by rph-r - 11-02-2022, 05:26 PM
RE: Loss off network shares on 8.2 - by rph-r - 11-02-2022, 10:57 PM
RE: Loss off network shares on 8.2 - by rph-r - 11-05-2022, 10:50 AM
RE: Loss off network shares on 8.2 - by Sehnsucht - 11-11-2022, 01:05 PM
RE: Loss off network shares on 8.2 - by DRONE7 - 11-04-2022, 08:14 AM

Forum Jump: