[Samba] Intermittent problems with roaming profiles

Philippe LeCavalier support at plecavalier.com
Sat Mar 13 14:35:21 UTC 2021

On Thu, Mar 11, 2021, 08:21 Marco Gaiarin via samba <samba at lists.samba.org>

> Mandi! Anders Östling via samba
>   In chel di` si favelave...
> > Not sure if this is samba related at all, but I have an issue with
> roaming profiles, specifically for a client that uses two computers, a
> laptop and a workstation, running on the same account in a domain with a
> Samba 4.11-6.  Clients computers are both Windows 10, fully updated.
> > He get the dreaded 1521, Unable to access profile during logon a couple
> of times per week. Sometimes logging off works, sometimes a full restart is
> required. I have read uncountable postings regarding profile problems, and
> some posts talks about pending oplocks, files not closed properly on the
> server. Most of these post probably talks about Windows file servers, not
> Samba. Is anyone aware of similar issues on Samba?
> Users get a message about 'tempoary profile' usage? Linux (not samba)
> default socket reapup are a bit lazy, try to add to [globals] in your
> smb.conf:
>         # Performance.
>         # TCP_NODELAY, che si tova in letteratura, è il default da samba
> 2.0. Per scrupolo lo lascio.
>         # I default per TCP_KEEPIDLE, TCP_KEEPCNT e TCP_KEEPINTVL sono
> rispettivamente in
> /proc/sys/net/ipv4/{tcp_keepalive_time,tcp_keepalive_probes,tcp_keepalive_intvl}.
>         # Modifico questi valori per evitare lock sui file.
>         #
>         socket options = TCP_NODELAY TCP_KEEPIDLE=240 TCP_KEEPCNT=4
> --
> dott. Marco Gaiarin                                     GNUPG Key ID:
> 240A3D66
>   Associazione ``La Nostra Famiglia''
> http://www.lanostrafamiglia.it/
>   Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento
> (PN)
>   marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f
> +39-0434-842797
>                 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
>       http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
>         (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

> I didn't see if you mentioned whether the users are getting temp profiles
> or nit. If they're not and they're only getting a sync error (but still
> getting a local copy) this could help...I find this happens most often for
> me when a file (or several files) fail to sync within the profile due to
> file corruption or shear file size. The direction isn't always the same. If
> you're roaming downloads and cookies folders deleting them is often easier
> than trying to find the file(s) in question. Or you can comb through the
> logs and see if you can find the culprit.

More information about the samba mailing list