Linux client server

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Linux client server

Post by gtisdale »

I have client server running on a Linux box with a WIndows client.

The connection is over the internet using listener.

I am trying to create a PDF report and keep running into errors. Can anyone point me in the right direction.

The line that is erroring is

Code: Select all

OPEN #(FILNUM:=FNGETHANDLE(120)): "name=PDF:/READER,PrintFile="&PDFFILE$&",eol=none,use",DISPLAY,OUTPUT
The value of PDFFILE$ is
@:temp/pr130531.pdf

I have also tried
temp/pr130531.pdf

both temp directories exist

I get a 4205 error when running the line

The log file shows

Code: Select all

Command entered dir temp
(10) - Thu Jun 20 08:19:15 2013
Processing directory listing with readdir for /home/eck001/temp failed with BR error 0 and system error 536870912
(8) - Thu Jun 20 08:19:56 2013
Command entered g
(10) - Thu Jun 20 08:19:56 2013
Getting file attributes for /opt/spool failed with BR error 4152 and system error 2
(10) - Thu Jun 20 08:19:56 2013
Making directory /opt/spool failed with BR error 4205 and system error 13
(2) - Thu Jun 20 08:19:56 2013
Creating spool directory failed 4205
(8) - Thu Jun 20 08:20:07 2013
Command entered list 34084
(8) - Thu Jun 20 08:20:58 2013
Command entered LIST * 34086-
(8) - Thu Jun 20 08:20:59 2013
Command entered LIST * -34084
(8) - Thu Jun 20 08:22:03 2013
Command entered list 34084
(8) - Thu Jun 20 08:23:31 2013
Command entered LIST * 34086
(10) - Thu Jun 20 08:23:36 2013
Getting file attributes for /opt/spool failed with BR error 4152 and system error 2
(10) - Thu Jun 20 08:23:36 2013
Making directory /opt/spool failed with BR error 4205 and system error 13
(2) - Thu Jun 20 08:23:36 2013
Creating spool directory failed 4205
(10) - Thu Jun 20 08:24:54 2013
Getting file attributes for /opt/spool failed with BR error 4152 and system error 2
(10) - Thu Jun 20 08:24:54 2013
Making directory /opt/spool failed with BR error 4205 and system error 13
(2) - Thu Jun 20 08:24:54 2013
Creating spool directory failed 4205
Thios makes it look like there should be a SPOOL directory. Not sure where that gets specified, probably in the BRCONFIG.SYS file but the only reference to SPOOL in the BRCONFIG.SYS file is

Code: Select all


PRINTDIR @:temp
SPOOLPATH @:temp
Any suggestions?
Thanks

FNGeorge
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Post by gtisdale »

More on the Linux client server issue.

I manually added the directory /opt/spool and that got me past the last error where the directory could not be created

I'm not sure of the permissions needed for the directory or the needed name of the owner. It is currently ROOT.

Because my ultimate goal is to have multiple payroll ckients access the system and only have access to their own material it would be beneficial if I could pecify where the SPOOL directory would be located and keep it within the tree for the client that is accessing their data (each client has a separate directory tree of which they are the Linux OWNER

The current errors in the LOG indicate that there is a problem writing to the SPOOL directory now that it exists. There are six tries then a failure.

See copy of log segment below.

Code: Select all

Command entered GO
(10) - Thu Jun 20 09:03:35 2013
While opening file /opt/spool/wbspl011.0, stat failed with BR error 4152 and system error 2
(10) - Thu Jun 20 09:03:35 2013
While opening file /opt/spool/wbspl011.0, stat failed with BR error 4152 and system error 2
(10) - Thu Jun 20 09:03:35 2013
Processing directory listing with stat for /opt/spool/wbspl011.0 failed with BR error 4152 and system error 2
(10) - Thu Jun 20 09:03:35 2013
Processing directory listing with readdir for /opt/spool failed with BR error 4152 and system error 536875064
(10) - Thu Jun 20 09:03:35 2013
Opening file /opt/spool/wbspl011.0 failed during open with access c1, share mode 1ff with BR error 4205 and system error 13
(10) - Thu Jun 20 09:03:35 2013
Opening file /opt/spool/wbspl011.0 failed during open with access c1, share mode 1ff with BR error 4205 and system error 13
(10) - Thu Jun 20 09:03:35 2013
Opening file /opt/spool/wbspl011.0 failed during open with access c1, share mode 1ff with BR error 4205 and system error 13
(10) - Thu Jun 20 09:03:35 2013
Opening file /opt/spool/wbspl011.0 failed during open with access c1, share mode 1ff with BR error 4205 and system error 13
(10) - Thu Jun 20 09:03:36 2013
Opening file /opt/spool/wbspl011.0 failed during open with access c1, share mode 1ff with BR error 4205 and system error 13
(10) - Thu Jun 20 09:03:37 2013
Opening file /opt/spool/wbspl011.0 failed during open with access c1, share mode 1ff with BR error 4205 and system error 13
(8) - Thu Jun 20 09:04:02 2013
Command entered list 34084
(8) - Thu Jun 20 09:04:24 2013
Command entered cl proc
(8) - Thu Jun 20 09:04:24 2013
Command entered Z pproc
(8) - Thu Jun 20 09:04:27 2013
Command entered sys
(10) - Thu Jun 20 09:04:27 2013
client user glt message Getting file attributes for temp\w011.1.wrk failed with BR error 4152 and system error 2
(10) - Thu Jun 20 09:04:27 2013
client user glt message Opening file temp\w011.1.wrk failed during CreateFile with access 80000000, share mode 3, disposition 3, attributes 80 with BR error 4152 and system error 2
FNGeorge
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Post by bluesfannoz »

The PDF's on client server are actually created on the client machine so yes you must have a spool folder on the client machine. The pdflib must also be on the client in the same folder as your brclient.exe


On all our machines we have created a folder where all these tools reside. By default the client looks for a ./spool folder to be below the folder containing the brclient.

I was not able to find anyway of changing the location that it used.
Steve Koger
Computer Specialist
SEKESC-MACS Division
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Post by gtisdale »

Eureeka!

I needed to:

Create a spool directory paralel to my WB directory on the Linux box

WB is located for me at /opt/wb so the spool directory ha to be at
/opt/spool

I gave the spool directrory
OWNER - ROOT
USERS - USERS

permissions to start with I opened as drwxrwxrwx
I'll try limiting this later

a graphic that I placed in the report that I was printing referred to its location with the ":" for starting BR directory. This does not work in CS because it gets confused with the ":" for server side vs client side so Iwas getting a 130 error for graphic corrupt or not found. I cahnged the reference to ENV$("PD") where the value was set to the install location of BR.

Runs like a charm now.

FNGeorge
[/b]
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

We found the same problem, but decided that we wanted to have better control over the folder.

We execute the following upon startup

EXECUTE "CONFIG SPOOLPATH "&SERVER_PATH$
EXECUTE "CONFIG SPOOLPATH @::"&CLIENT_PATH$

As long as this happens early during startup (WBCONFIG.SYS even), it works nicely.

I really like that the spool files are no longer in the same folder, it used to make a mess!
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

PS: If you want it to work like it did before

Enhance WBCONFIG.SYS with:

SPOOLPATH .
WORKPATH .
Post Reply