Ticket #333 (closed problem: fixed)

Opened 2 weeks ago

Last modified 2 weeks ago

Attempting to generate URL file listing for VSO Cart VSO-NSO-050823-131.str generates an error and no file list.

Reported by: alisdair Owned by: alisdair
Priority: high Milestone:
Component: Cart Version: 1.4
Severity: major Keywords: NSO, Carts


While checking on the current abilities of carts attempted to download data associated with VSO-NSO-050823-131.str. However that request leads to the error below.

Software error:
can't create /opt/vso/cart//VSO-NSO-050823-131.str: Permission denied at /opt/vso/lib/perl5/Physics/Solar/VSO/Utils.pm line 101.
For help, please send mail to the webmaster (help@virtualsolar.org), giving this error message and the time and date of the error.

I believe this error is on vso03 @ NSO.

Change History

comment:1 Changed 2 weeks ago by niles

The file is there and is readable :

vso03:~ # ls -l /opt/vso/cart/VSO-NSO-050823-131.str 
-rw-r--r-- 1 wwwnso www 88409 Aug 25  2008 /opt/vso/cart/VSO-NSO-050823-131.str

Line 101 of Utils.pm is :

 store($obj,$fileName) or die "Can't store $obj in file [$fileName]::$!\n";

Why was store called?

comment:2 Changed 2 weeks ago by joe

  • Status changed from new to closed
  • Resolution set to fixed

It looks like newer carts are owned by 'wwwrun', not 'wwwnso'.

And it seems that the results of the GetData call are saved back to the cart. In Cart/UserInterface.pm:

    my $response = $vsocart->request($cart,$args);

    ## set cart status

    ## saving the CART to file

so, as it seems to be legit, I fixed the permissions.

comment:3 Changed 2 weeks ago by joe

I know the ticket is closed, but I wrote a tiny little script to dump cart files, so we can see what's in them. It's in cvs : vso/diagnostics/dump_cart.pl

When you download, it overwrites the 'status' array, with what URLs were returned. So for Alisdair's cart :

  'status' => {
    'f0d1f451b575255ababab8ef61003578' => {
      'SDAC' => {
        'date_1533145409' => {
          'state' => 'DONE',
          'request_id' => 'VSO-NSO-050823-131',
          'comments' => [],
          'action' => 'NEW',
          'date' => 1533145409,
          'results' => [

the 'f0d1f451b575255ababab8ef61003578' is one of the sessions (which are in the 'sessions' array, w/ the query run and saved files for that session)

Note: See TracTickets for help on using tickets.