[LP8.6/WIN] Writing to a samba share

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[LP8.6/WIN] Writing to a samba share

Jon Harris-2
Hi

Hope I'm not breaking the silence... but,

I am running Lasso 8.6.3 on a windows server and I am trying to integrate with a nodeJS app running on a Centos box where I have created a samba share. On the windows box I created a mapped "Z:" drive, and tried to do a file_write to the z: drive but no luck (error 22). When I added and UNC style "\\mylinuxserver\sharename" to the file paths and then gave the site permissions, to the folder, still no luck.

I get "Permission to open the file was denied by Lasso security." Which looks like I haven't set up the folder up properly.

It struck me that I might have got the syntax of the share wrong. I never know whether to use forward slashes (web style) or backslashes (Windows) in the addresses, also "slashing off a slash" means I end with slashes everywhere.

This is my latest iteration:

var('thefilename') = "\\\\myserver.co.uk\\jon\\emailer\\miracle2.inc" ;
file_write( $thefilename, "if this works I will..",  -fileoverwrite ) ;


Anyone get this working?

Any help appreciated.

Jon Harris

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: [LP8.6/WIN] Writing to a samba share

Bil Corry-3
It doesn't cover Windows, but Steve's guide might help anyhow:

http://www.stevepiercy.com/articles/setting-up-file-tag-permissions-in-lasso-professional-8-on-mac-os-x-and-linux/

- Bil

> On Jul 27, 2017, at 5:44 AM, Jon Harris <[hidden email]> wrote:
>
> Hi
>
> Hope I'm not breaking the silence... but,
>
> I am running Lasso 8.6.3 on a windows server and I am trying to integrate with a nodeJS app running on a Centos box where I have created a samba share. On the windows box I created a mapped "Z:" drive, and tried to do a file_write to the z: drive but no luck (error 22). When I added and UNC style "\\mylinuxserver\sharename" to the file paths and then gave the site permissions, to the folder, still no luck.
>
> I get "Permission to open the file was denied by Lasso security." Which looks like I haven't set up the folder up properly.
>
> It struck me that I might have got the syntax of the share wrong. I never know whether to use forward slashes (web style) or backslashes (Windows) in the addresses, also "slashing off a slash" means I end with slashes everywhere.
>
> This is my latest iteration:
>
> var('thefilename') = "\\\\myserver.co.uk\\jon\\emailer\\miracle2.inc" ;
> file_write( $thefilename, "if this works I will..",  -fileoverwrite ) ;
>
>
> Anyone get this working?
>
> Any help appreciated.
>
> Jon Harris
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: [LP8.6/WIN] Writing to a samba share

Jon Harris-2
Hi Bil

Thanks, but Steve's guide, is talking about "local volumes" not UNC's, plus Windows is quite different. But I will try ///server/share as per his notation.

Regards
Jon


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Bil Corry
Sent: 27 July 2017 03:34 PM
To: [hidden email]
Subject: Re: [LP8.6/WIN] Writing to a samba share

It doesn't cover Windows, but Steve's guide might help anyhow:

http://www.stevepiercy.com/articles/setting-up-file-tag-permissions-in-lasso-professional-8-on-mac-os-x-and-linux/

- Bil

> On Jul 27, 2017, at 5:44 AM, Jon Harris <[hidden email]> wrote:
>
> Hi
>
> Hope I'm not breaking the silence... but,
>
> I am running Lasso 8.6.3 on a windows server and I am trying to integrate with a nodeJS app running on a Centos box where I have created a samba share. On the windows box I created a mapped "Z:" drive, and tried to do a file_write to the z: drive but no luck (error 22). When I added and UNC style "\\mylinuxserver\sharename" to the file paths and then gave the site permissions, to the folder, still no luck.
>
> I get "Permission to open the file was denied by Lasso security." Which looks like I haven't set up the folder up properly.
>
> It struck me that I might have got the syntax of the share wrong. I never know whether to use forward slashes (web style) or backslashes (Windows) in the addresses, also "slashing off a slash" means I end with slashes everywhere.
>
> This is my latest iteration:
>
> var('thefilename') = "\\\\myserver.co.uk\\jon\\emailer\\miracle2.inc"
> ; file_write( $thefilename, "if this works I will..",  -fileoverwrite
> ) ;
>
>
> Anyone get this working?
>
> Any help appreciated.
>
> Jon Harris
>
> #############################################################
>
> This message is sent to you because you are subscribed to  the mailing
> list Lasso [hidden email] Official list archives available
> at http://www.lassotalk.com To unsubscribe, E-mail to:
> <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email] Official list archives available at http://www.lassotalk.com To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: [LP8.6/WIN] Writing to a samba share

stevepiercy
Whatever works, let me know.  I don't have Lasso on Windows to
verify, and I will update my guide.

FWIW, I found this in the Language Guide, Chapter 31, Files:

---------------------
Windows Fully Qualified Paths – Fully qualified paths are
specified from the root of the file system. They can be used to
specify any files on the Web server including those outside of
the Web serving root.

In Windows, fully qualified paths are always preceded by the
letter name of a partition, a colon, and two forward slashes
C:// or E://. Any mounted partition can be referenced in this fashion.

For example, the following tag returns the creation date of
Lasso Service from the C: drive in Windows.

[File_CreationDate: 'C://OmniPilot Software/Lasso Professional 8/LassoService.exe']
---------------------

--steve


On 7/27/17 at 3:17 PM, [hidden email] (Jon Harris) pronounced:

>Hi Bil
>
>Thanks, but Steve's guide, is talking about "local volumes" not
>UNC's, plus Windows is quite different. But I will try
>///server/share as per his notation.
>Regards
>Jon
>
>
>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]] On Behalf Of Bil Corry
>Sent: 27 July 2017 03:34 PM
>To: [hidden email]
>Subject: Re: [LP8.6/WIN] Writing to a samba share
>
>It doesn't cover Windows, but Steve's guide might help anyhow:
>
>http://www.stevepiercy.com/articles/setting-up-file-tag-permissions-in-lasso-professional-8
>-on-mac-os-x-and-linux/
>
>- Bil
>
>>On Jul 27, 2017, at 5:44 AM, Jon Harris <[hidden email]> wrote:
>>
>>Hi
>>
>>Hope I'm not breaking the silence... but,
>>
>>I am running Lasso 8.6.3 on a windows server and I am trying to integrate with a nodeJS
>app running on a Centos box where I have created a samba share.
>On the windows box I created a mapped "Z:" drive, and tried to
>do a file_write to the z: drive but no luck (error 22). When I
>added and UNC style "\\mylinuxserver\sharename" to the file
>paths and then gave the site permissions, to the folder, still
>no luck.
>>
>>I get "Permission to open the file was denied by Lasso security." Which looks like I
>haven't set up the folder up properly.
>>
>>It struck me that I might have got the syntax of the share wrong. I never know whether to
>use forward slashes (web style) or backslashes (Windows) in the
>addresses, also "slashing off a slash" means I end with slashes everywhere.
>>
>>This is my latest iteration:
>>
>>var('thefilename') =
>>"\\\\myserver.co.uk\\jon\\emailer\\miracle2.inc" ; file_write(
>>$thefilename, "if this works I will..",  -fileoverwrite ) ;
>>
>>
>>Anyone get this working?
>>
>>Any help appreciated.
>>
>>Jon Harris
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to  the
>>mailing list Lasso [hidden email] Official list
>>archives available at http://www.lassotalk.com To unsubscribe,
>>E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email] Official list
>archives available at http://www.lassotalk.com To unsubscribe,
>E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: [LP8.6/WIN] Writing to a samba share

Jon Harris-2
Hi Steve

Thanks. But I didn't find anything that works.

On the server I mapped the z: drive directly to my project folder, in the Linux box. The server can read/write to it fine.

Now, if Lasso tries to write to the "root" folder on z: it returns:
"A component of filename does not name an existing file, or filename is an empty string."

Interestingly, if you delete the drive mapping Lasso seems to think it worked ok.

In the past, I have tried mapping a virtual directory in IIS and that didn't work either.

My "workaround" which is real chore, is to write the data to some tables, then use mysql as a way of transferring data between the machines.

Regards
Jon


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Steve Piercy - Website Builder
Sent: 27 July 2017 07:56 PM
To: [hidden email]
Subject: RE: [LP8.6/WIN] Writing to a samba share

Whatever works, let me know.  I don't have Lasso on Windows to verify, and I will update my guide.

FWIW, I found this in the Language Guide, Chapter 31, Files:

---------------------
Windows Fully Qualified Paths – Fully qualified paths are specified from the root of the file system. They can be used to specify any files on the Web server including those outside of the Web serving root.

In Windows, fully qualified paths are always preceded by the letter name of a partition, a colon, and two forward slashes C:// or E://. Any mounted partition can be referenced in this fashion.

For example, the following tag returns the creation date of Lasso Service from the C: drive in Windows.

[File_CreationDate: 'C://OmniPilot Software/Lasso Professional 8/LassoService.exe']
---------------------

--steve


On 7/27/17 at 3:17 PM, [hidden email] (Jon Harris) pronounced:

>Hi Bil
>
>Thanks, but Steve's guide, is talking about "local volumes" not UNC's,
>plus Windows is quite different. But I will try ///server/share as per
>his notation.
>Regards
>Jon
>
>
>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]] On Behalf Of Bil Corry
>Sent: 27 July 2017 03:34 PM
>To: [hidden email]
>Subject: Re: [LP8.6/WIN] Writing to a samba share
>
>It doesn't cover Windows, but Steve's guide might help anyhow:
>
>http://www.stevepiercy.com/articles/setting-up-file-tag-permissions-in-
>lasso-professional-8
>-on-mac-os-x-and-linux/
>
>- Bil
>
>>On Jul 27, 2017, at 5:44 AM, Jon Harris <[hidden email]> wrote:
>>
>>Hi
>>
>>Hope I'm not breaking the silence... but,
>>
>>I am running Lasso 8.6.3 on a windows server and I am trying to
>>integrate with a nodeJS
>app running on a Centos box where I have created a samba share.
>On the windows box I created a mapped "Z:" drive, and tried to do a
>file_write to the z: drive but no luck (error 22). When I added and UNC
>style "\\mylinuxserver\sharename" to the file paths and then gave the
>site permissions, to the folder, still no luck.
>>
>>I get "Permission to open the file was denied by Lasso security."
>>Which looks like I
>haven't set up the folder up properly.
>>
>>It struck me that I might have got the syntax of the share wrong. I
>>never know whether to
>use forward slashes (web style) or backslashes (Windows) in the
>addresses, also "slashing off a slash" means I end with slashes everywhere.
>>
>>This is my latest iteration:
>>
>>var('thefilename') =
>>"\\\\myserver.co.uk\\jon\\emailer\\miracle2.inc" ; file_write(
>>$thefilename, "if this works I will..",  -fileoverwrite ) ;
>>
>>
>>Anyone get this working?
>>
>>Any help appreciated.
>>
>>Jon Harris
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to  the mailing
>>list Lasso [hidden email] Official list archives available
>>at http://www.lassotalk.com To unsubscribe, E-mail to:
>><[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>#############################################################
>
>This message is sent to you because you are subscribed to the mailing
>list Lasso [hidden email] Official list archives available
>at http://www.lassotalk.com To unsubscribe, E-mail to:
><[hidden email]>
>Send administrative queries to  <[hidden email]>
>
>#############################################################
>
>This message is sent to you because you are subscribed to the mailing
>list Lasso [hidden email] Official list archives available
>at http://www.lassotalk.com To unsubscribe, E-mail to:
><[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email] Official list archives available at http://www.lassotalk.com To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: [LP8.6/WIN] Writing to a samba share

stevepiercy
Can you try reading an existing file on Z:// ?

Also you might need to create the directory structure first,
then write the file into the destination directory.

--steve


On 7/28/17 at 9:15 AM, [hidden email] (Jon Harris) pronounced:

>Hi Steve
>
>Thanks. But I didn't find anything that works.
>
>On the server I mapped the z: drive directly to my project
>folder, in the Linux box. The server can read/write to it fine.
>Now, if Lasso tries to write to the "root" folder on z: it returns:
>"A component of filename does not name an existing file, or filename is an empty string."
>
>Interestingly, if you delete the drive mapping Lasso seems to think it worked ok.
>
>In the past, I have tried mapping a virtual directory in IIS
>and that didn't work either.
>My "workaround" which is real chore, is to write the data to
>some tables, then use mysql as a way of transferring data
>between the machines.
>Regards
>Jon
>
>
>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]] On Behalf Of Steve
>Piercy - Website Builder
>Sent: 27 July 2017 07:56 PM
>To: [hidden email]
>Subject: RE: [LP8.6/WIN] Writing to a samba share
>
>Whatever works, let me know.  I don't have Lasso on Windows to
>verify, and I will update my guide.
>
>FWIW, I found this in the Language Guide, Chapter 31, Files:
>
>---------------------
>Windows Fully Qualified Paths – Fully qualified paths are
>specified from the root of the file system. They can be used to
>specify any files on the Web server including those outside of
>the Web serving root.
>
>In Windows, fully qualified paths are always preceded by the
>letter name of a partition, a colon, and two forward slashes
>C:// or E://. Any mounted partition can be referenced in this fashion.
>
>For example, the following tag returns the creation date of
>Lasso Service from the C: drive in Windows.
>
>[File_CreationDate: 'C://OmniPilot Software/Lasso Professional 8/LassoService.exe']
>---------------------
>
>--steve
>
>
>On 7/27/17 at 3:17 PM, [hidden email] (Jon Harris) pronounced:
>
>>Hi Bil
>>
>>Thanks, but Steve's guide, is talking about "local volumes"
>>not UNC's, plus Windows is quite different. But I will try
>>///server/share as per his notation.
>>Regards
>>Jon
>>
>>
>>-----Original Message-----
>>From: [hidden email]
>>[mailto:[hidden email]] On Behalf Of Bil Corry
>>Sent: 27 July 2017 03:34 PM
>>To: [hidden email]
>>Subject: Re: [LP8.6/WIN] Writing to a samba share
>>
>>It doesn't cover Windows, but Steve's guide might help anyhow:
>>
>>http://www.stevepiercy.com/articles/setting-up-file-tag-permissions-in-
>>lasso-professional-8
>>-on-mac-os-x-and-linux/
>>
>>- Bil
>>
>>>On Jul 27, 2017, at 5:44 AM, Jon Harris <[hidden email]> wrote:
>>>
>>>Hi
>>>
>>>Hope I'm not breaking the silence... but,
>>>
>>>I am running Lasso 8.6.3 on a windows server and I am trying
>>>to integrate with a nodeJS
>>app running on a Centos box where I have created a samba
>>share. On the windows box I created a mapped "Z:" drive, and
>>tried to do a file_write to the z: drive but no luck (error
>>22). When I added and UNC style "\\mylinuxserver\sharename" to
>>the file paths and then gave the site permissions, to the
>>folder, still no luck.
>>>
>>>I get "Permission to open the file was denied by Lasso
>>>security." Which looks like I
>>haven't set up the folder up properly.
>>>
>>>It struck me that I might have got the syntax of the share
>>>wrong. I never know whether to
>>use forward slashes (web style) or backslashes (Windows) in
>>the addresses, also "slashing off a slash" means I end with
>>slashes everywhere.
>>>
>>>This is my latest iteration:
>>>
>>>var('thefilename') =
>>>"\\\\myserver.co.uk\\jon\\emailer\\miracle2.inc" ;
>>>file_write( $thefilename, "if this works I will..",  
>>>-fileoverwrite ) ;
>>>
>>>
>>>Anyone get this working?
>>>
>>>Any help appreciated.
>>>
>>>Jon Harris
>>>
>>>#############################################################
>>>
>>>This message is sent to you because you are subscribed to  
>>>the mailing list Lasso [hidden email] Official
>>>list archives available at http://www.lassotalk.com To
>>>unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to the
>>mailing list Lasso [hidden email] Official list
>>archives available at http://www.lassotalk.com To unsubscribe,
>>E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to the
>>mailing list Lasso [hidden email] Official list
>>archives available at http://www.lassotalk.com To unsubscribe,
>>E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy              Website Builder              Soquel, CA
><[hidden email]>               <http://www.stevepiercy.com/>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email] Official list
>archives available at http://www.lassotalk.com To unsubscribe,
>E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>