Editing of files over a Samba connection makes files a long time busy on save

Editing of files over a Samba connection makes files a long time busy on save

3
NewbieNewbie
3

    Feb 03, 2023#1

    Hi,

    I am using UltraEdit for Mac and I am connected over Samba to a Raspberry Pi. If I edit, for example, a Python script in UltraEdit and click on symbol to save the file, I get for a long time (20 - 30 sec) in the shell of my Raspberry the message that the file is busy if I try to run the script. I have to wait some time and then i can run it. I don't have this problem with other editors. How can I solve it?

    Thanks a lot.

    BR kamiking

    6,606548
    Grand MasterGrand Master
    6,606548

      Feb 03, 2023#2

      I don't have a Mac and use UltraEdit only on Windows on which I don't use Samba. I cannot really help for that reason with information what to change in configuration of UltraEdit for Mac or of Samba. I know from other forums posts that UltraEdit users edit files on Raspberry Pi using FTP or SFTP, the latter often with a private/public key pair.

      There are several configuration settings in UltraEdit for Windows which control how UltraEdit is updating an existing file on save. These options are in configuration at File handling - Advanced and are described on UltraEdit Wiki page Settings:File handling:Advanced. Please note that some of the settings described on this page do not exist anymore in currently latest version of UltraEdit for Windows. I am quite sure that some of these settings do also not exist in UltraEdit for Mac.

      Here is a list of forum topics containing the word Samba:
      Best regards from an UC/UE/UES for Windows user from Austria

      3
      NewbieNewbie
      3

        Feb 04, 2023#3

        Hi,

        thanks a lot for the answer. Is it possible to see under the Linux System when a file is not busy anymore?

        BR kamiking

        6,606548
        Grand MasterGrand Master
        6,606548

          Feb 05, 2023#4

          I cannot answer your new question as I use Windows and not Linux or Mac. Python script files are usually small files with less than 1 MB. The update of a small file on file save should be done within one or two seconds in the file system on Raspberry Pi. There is definitely something not correct configured either in UltraEdit for file save on Samba mounted file system or in the Samba configuration settings on Mac or on Raspberry Pi. Well, the configuration on Raspberry Pi can be more or less excluded as possible cause of the delay because of the file busy issue cannot be reproduced on using other text editors on Mac according to your problem description. It is more likely an issue caused by how UltraEdit for Mac makes a file save (with backup feature enabled) and how Samba handles that file save process.
          Best regards from an UC/UE/UES for Windows user from Austria

          3
          NewbieNewbie
          3

            Feb 06, 2023#5

            Hi,

            you are right. With other editors i have no problems and the files are really small. It is a little bit strange. Under Windows I have no problems with UltraEdit on the same Samba server.

            BR kamiking