Forum Discussion

ctlarson's avatar
ctlarson
New Contributor II
7 years ago

Error occured while creating a mount smb:///

I am encountering a error with my file writer snap while trying to write to a file share on a different server. The error is as follows: Error occured while creating a mount smb:///.
I dont think this is a permissions issue as I have granted access to the account I am using on the server I am trying to write to. That got me past an access denied error that I had encountered earlier in testing.
I am also open to any suggestions you may have to help me better troubleshoot.
Thank you for any help in advance, it is greatly appreciated!

9 Replies

  • Mostly it will be a SMB protocol version issue. Please check the protocol version for your SnapLogic server.

    I hope as of SnapLogic support SMB 1.0 protocol version. Also the SMB 2.0 and SMB 3.0 will be coming in further SnapLogic release.for any queries please reach out to SnapLogic support.

    Thanks
    Suren

    • ctlarson's avatar
      ctlarson
      New Contributor II

      Thank you for your reply. Am I able to check the protocol version on the dashboard tab?

      Yesterday I was able to get past this error, or so I think, and have no encountered a new error where the SMB protocol is able to find the server share but not the drive or any of the sub folders. My new error is

      The path /E/TestFolder/SubFolder/FileName.xml was not found. The server name is not part of the error which makes me think that it is able to reach it but I can reach any file location on that server. Do you think this is still a protocol version issue with SMB?

      • Surendar's avatar
        Surendar
        Contributor

        No you can’t able to see the SMB protocol version in Dashboard.

        Alternatively you just can try to list the objects from server using in directory browser snap by providing SMB server address and * as all filter.

        1. smb://(Server host address)
        2. smb://(Server host address)/E$/TestFolder/SubFolder/FileName.xml
  • ctlarson's avatar
    ctlarson
    New Contributor II

    I have validated that I am able to write a file to the file share but I am encountering an issue with using a general expression while naming the file.
    I am trying to timestamp the file with the following expression; + Date.now()+“.xml”. The pipe completes but there is no file in the location. When i change the syntax to:
    +“Date.now()”+“.xml” the pipe completes with a file in the directory named:
    Date.now().xml.
    Any idea why it is having a problem with creating a file with the expression Date.now()?
    The output preview even processes the expression correctly but still no file.

    • dmiller's avatar
      dmiller
      Former Employee

      I’m wondering if it doesn’t like the colons in the time of the date format and an error is not being displayed. What if you replaced Date.now() with Date.now().toLocaleDateString({“timeZone”:“PST”, “format”:“yyyy-MM-dd”}) ?

    • AE04282's avatar
      AE04282
      New Contributor

      Good day,

      I’m having a similar issue, I’m trying to write pdf files using a File Writer snap to a shared location, should I be using the file or the smb protocols? I tried both but unable to get it to work.

      However the file gives a message saying it’s overwritten but the files are not in the folder, see below:


      Thanks much.

      • AE04282's avatar
        AE04282
        New Contributor

        Hi all, I got this to work. Thanks.

  • ctlarson's avatar
    ctlarson
    New Contributor II

    That was the issue!
    I actually had to remove “timeZone”:“PST”, from the expression to get it to work but that allowed me to create the file. Thank you very much!

  • Hi, what was the final path looked like to make this work for shared windows location? can you please share info