[Zope] import and setting tmp dir

John Hunter jdhunter@ace.bsd.uchicago.edu
Tue, 07 May 2002 12:24:12 -0500


>>>>> "Chris" == Chris McDonough <chrism@zope.com> writes:

    Chris> Oops.. try this: strace ./start -t1 -Z''

For the record, on my system (RHL7.1) I need 
  strace ./start -t1 -Z ''
                       ^
                     SPACE
else I get the error

  Error:
  getopt.GetoptError: option -Z requires argument

    Chris> This starts Zope in single-threaded mode and does not fork
    Chris> off a zdaemon process.  Sorry for the incomplete info.

Success!  I have gotten the strace.  Unfortunately, I'll have to wait
until later for complete results because others are using the server
now and I don't want to fill the root partition on them, and their
queries are complicating the strace logs.  For now, though, I'll paste
the part of the strace where I accessed the folder containing the
source of the data 'Seizure.orig' and then try to paste it into the
folder 'summer'.  Nothing leaps out at me in this part of the record.

A few more things to point out first.  Grepping 'tmp' on the entire
strace yields

  read(255, "TMPDIR=/workn/tmp\nINST_HOME=`cd "..., 355) = 324
  open("/usr/local/Zope/var/Data.fs.tmp", O_RDWR|O_CREAT|O_TRUNC, 0666) = 5

So my TMPDIR setting is working. 

There are some socket connect attempts on /var:

connect(10, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)

That's all for now -- thanks for all your help so far.

JDH

Here is the strace starting with my access of the source data folder
Seizure.orig

recv(17, "GET /Seizure.orig/manage_workspa"..., 4096, 0) = 783
gettimeofday({1020790933, 636018}, NULL) = 0
kill(22456, SIGRT_0)                    = 0
select(18, [7 9 10 11 12 16 17], [], [], {30, 0}) = 1 (in [7], left {29, 980000})
read(7, "x", 8192)                      = 1
select(18, [7 9 10 11 12 16 17], [17], [], {30, 0}) = 1 (out [17], left {30, 0})
send(17, "HTTP/1.1 302 Moved Temporarily\r\n"..., 479, 0) = 479
select(18, [7 9 10 11 12 16 17], [], [], {30, 0}) = 1 (in [7], left {30, 0})
read(7, "x", 8192)                      = 1
select(18, [7 9 10 11 12 16 17], [17], [], {30, 0}) = 1 (out [17], left {30, 0})
gettimeofday({1020790933, 653654}, NULL) = 0
write(3, "192.168.1.13 - myuser [07/May"..., 185) = 185
select(18, [7 9 10 11 12 16 17], [], [], {30, 0}) = 1 (in [17], left {29, 930000})
recv(17, "GET /Seizure.orig/manage_main HT"..., 4096, 0) = 778
gettimeofday({1020790933, 721712}, NULL) = 0
kill(22456, SIGRT_0)                    = 0
select(18, [7 9 10 11 12 16 17], [], [], {30, 0}) = 1 (in [9], left {29, 990000})
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRT_0 (Real-time signal 0) ---
<... rt_sigsuspend resumed> )           = -1 EINTR (Interrupted system call)
sigreturn()                             = ? (mask now [])
accept(9, {sin_family=AF_INET, sin_port=htons(33349), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 19
fcntl64(19, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(19, F_SETFL, O_RDWR|O_NONBLOCK) = 0
getpeername(19, {sin_family=AF_INET, sin_port=htons(33349), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 0
gettimeofday({1020790933, 737038}, NULL) = 0
fcntl64(19, F_SETFD, FD_CLOEXEC)        = 0
select(20, [7 9 10 11 12 16 17 19], [], [], {30, 0}) = 1 (in [7], left {29, 490000})
read(7, "x", 8192)                      = 1
select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {30, 0})
send(17, "HTTP/1.1 200 OK\r\nServer: Zope/(Z"..., 65536, 0) = 14480
select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (in [7], left {29, 990000})
read(7, "x", 8192)                      = 1
select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {29, 930000})
gettimeofday({1020790934, 322934}, NULL) = 0
write(3, "192.168.1.13 - myuser [07/May"..., 182) = 182
send(17, " true\"\n   onMouseOut=\"window.sta"..., 64795, 0) = 5792
select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {29, 970000})
send(17, "\n          1 Kb\n          </div>"..., 59003, 0) = 13032
select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {29, 960000})
send(17, "\" valign=\"top\">\n  <div class=\"li"..., 45971, 0) = 17376
select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {29, 940000})
send(17, ">\n  </td>\n  </tr>\n<tr class=\"row"..., 28595, 0) = 26064
select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {29, 930000})
send(17, "=\"list-item\">\n      &nbsp;\n     "..., 2531, 0) = 2531
select(20, [7 9 10 11 12 16 17 19], [], [], {30, 0}) = 1 (in [9], left {5, 750000})
accept(9, {sin_family=AF_INET, sin_port=htons(33350), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 21
fcntl64(21, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(21, F_SETFL, O_RDWR|O_NONBLOCK) = 0
getpeername(21, {sin_family=AF_INET, sin_port=htons(33350), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 0
gettimeofday({1020790958, 782597}, NULL) = 0
fcntl64(21, F_SETFD, FD_CLOEXEC)        = 0
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [21], left {29, 990000})
recv(21, "POST /Seizure.orig/ HTTP/1.1\r\nUs"..., 4096, 0) = 889
gettimeofday({1020790958, 793806}, NULL) = 0
kill(22456, SIGRT_0)                    = 0
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [7], left {29, 700000})
read(7, "x", 8192)                      = 1
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {30, 0})
send(21, "HTTP/1.1 200 OK\r\nServer: Zope/(Z"..., 65536, 0) = 14480
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (in [7], left {30, 0})
read(7, "x", 8192)                      = 1
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {29, 880000})
gettimeofday({1020790959, 212005}, NULL) = 0
write(3, "192.168.1.13 - myuser [07/May"..., 172) = 172
send(21, "ue\"\n   onMouseOut=\"window.status"..., 65026, 0) = 13032
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {29, 970000})
send(21, "age_workspace\">\n  <img src=\"/mis"..., 51994, 0) = 18824
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {29, 940000})
send(21, ">\n  <td align=\"left\" valign=\"top"..., 33170, 0) = 13032
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {29, 980000})
send(21, "if\" alt=\"DTML Document\" \n   titl"..., 20138, 0) = 13032
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {29, 950000})
send(21, "45\n  </div>\n  </td>\n  </tr>\n<tr "..., 7106, 0) = 7106
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [19], left {26, 280000})
recv(19, "GET /summer/manage_workspace HTT"..., 4096, 0) = 777
gettimeofday({1020790963, 98169}, NULL) = 0
kill(22456, SIGRT_0)                    = 0
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [7], left {30, 0})
read(7, "x", 8192)                      = 1
select(22, [7 9 10 11 12 16 17 19 21], [19], [], {30, 0}) = 1 (out [19], left {30, 0})
send(19, "HTTP/1.1 302 Moved Temporarily\r\n"..., 467, 0) = 467
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [7], left {30, 0})
read(7, "x", 8192)                      = 1
select(22, [7 9 10 11 12 16 17 19 21], [19], [], {30, 0}) = 1 (out [19], left {30, 0})
gettimeofday({1020790963, 108116}, NULL) = 0
write(3, "192.168.1.13 - myuser [07/May"..., 179) = 179
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [21], left {29, 900000})
recv(21, "GET /summer/manage_main HTTP/1.1"..., 4096, 0) = 772
gettimeofday({1020790963, 205559}, NULL) = 0
kill(22456, SIGRT_0)                    = 0
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [7], left {29, 930000})
read(7, "x", 8192)                      = 1
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {30, 0})
send(21, "HTTP/1.1 200 OK\r\nServer: Zope/(Z"..., 18619, 0) = 18619
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [7], left {30, 0})
read(7, "x", 8192)                      = 1
select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {30, 0})
gettimeofday({1020790963, 274496}, NULL) = 0
write(3, "192.168.1.13 - myuser [07/May"..., 176) = 176
select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [9], left {28, 190000})
accept(9, {sin_family=AF_INET, sin_port=htons(33351), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 22
fcntl64(22, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(22, F_SETFL, O_RDWR|O_NONBLOCK) = 0
getpeername(22, {sin_family=AF_INET, sin_port=htons(33351), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 0
gettimeofday({1020790965, 84490}, NULL) = 0
fcntl64(22, F_SETFD, FD_CLOEXEC)        = 0
select(23, [7 9 10 11 12 16 17 19 21 22], [], [], {30, 0}) = 1 (in [22], left {29, 980000})
recv(22, "POST /summer/ HTTP/1.1\r\nUser-Age"..., 4096, 0) = 865
gettimeofday({1020790965, 105114}, NULL) = 0
kill(22456, SIGRT_0)                    = 0
select(23, [7 9 10 11 12 16 17 19 21 22], [], [], {30, 0}) = 1 (in [16], left {29, 330000})
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRT_0 (Real-time signal 0) ---
<... rt_sigsuspend resumed> )           = -1 EINTR (Interrupted system call)
sigreturn()                             = ? (mask now [])
recv(16, "GET /Seizure/listEEGs?sql=pid%3D"..., 4096, 0) = 380
gettimeofday({1020790965, 771959}, NULL) = 0
select(23, [7 9 10 11 12 16 17 19 21 22], [], [], {30, 0}) = 1 (in [12], left {26, 320000})
recv(12, 0x8eac3ac, 4096, 0)            = -1 ECONNRESET (Connection reset by peer)
close(12)                               = 0
select(23, [7 9 10 11 16 17 19 21 22], [], [], {30, 0}) = 1 (in [9], left {12, 440000})
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRT_0 (Real-time signal 0) ---
<... rt_sigsuspend resumed> )           = -1 EINTR (Interrupted system call)
sigreturn()                             = ? (mask now [])
accept(9, {sin_family=AF_INET, sin_port=htons(4965), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 12
fcntl64(12, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(12, F_SETFL, O_RDWR|O_NONBLOCK) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRT_0 (Real-time signal 0) ---
<... rt_sigsuspend resumed> )           = -1 EINTR (Interrupted system call)
sigreturn()                             = ? (mask now [])
getpeername(12, {sin_family=AF_INET, sin_port=htons(4965), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 0
gettimeofday({1020790987, 274406}, NULL) = 0
fcntl64(12, F_SETFD, FD_CLOEXEC)        = 0
kill(22456, SIGRT_0)                    = 0
select(23, [7 9 10 11 12 16 17 19 21 22], [], [], {30, 0}) = 1 (in [12], left {30, 0})
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRT_0 (Real-time signal 0) ---
<... rt_sigsuspend resumed> )           = -1 EINTR (Interrupted system call)
sigreturn()                             = ? (mask now [])
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRT_0 (Real-time signal 0) ---
<... rt_sigsuspend resumed> )           = -1 EINTR (Interrupted system call)
sigreturn()                             = ? (mask now [])
recv(12, "GET /Seizure/listPatients?sql=1%"..., 4096, 0) = 474
gettimeofday({1020790987, 488627}, NULL) = 0
kill(22456, SIGRT_0)                    = 0
kill(22456, SIGRT_0)                    = 0
select(23, [7 9 10 11 12 16 17 19 21 22], [], [], {30, 0}) = 1 (in [16], left {28, 920000})
recv(16, "", 4096, 0)                   = 0
close(16)                               = 0
select(23, [7 9 10 11 12 17 19 21 22], [], [], {30, 0} <unfinished ...>