Skip to main content
Theodore Aivazian
New Participant
Jun 25, 2023 4:01 PM UTC
Question

strange issue

in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

comments? help?

Thanks,

Theo

    8 replies

    Neil Morris
    Rocketeer
    Jun 26, 2023 10:43 AM UTC

    in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

    comments? help?

    Thanks,

    Theo

    Hi Theo,

    Do you have any details on what the phantom process was doing? And which product you are using and on which operating system? The error looks to be on the os level 'cp' command. 

    Thanks,

    Neil

    Theodore Aivazian
    New Participant
    Jun 26, 2023 2:14 PM UTC

    in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

    comments? help?

    Thanks,

    Theo

    universe 11.3.1

    Redhat 7.9

    Neil Morris
    Rocketeer
    Jun 26, 2023 6:31 PM UTC

    in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

    comments? help?

    Thanks,

    Theo

    Any feedback on what the phantom process was actually doing when it failed? 

    John Jenkins
    Participating Frequently
    Jun 27, 2023 4:25 PM UTC

    in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

    comments? help?

    Thanks,

    Theo

    Theodore

    While UniVerse 11.3.1 does not have direct ACL support it could well be an ACL that is blocking access - worth a check.

    JayJay

    JJ
    Theodore Aivazian
    New Participant
    Jun 29, 2023 10:18 AM UTC

    in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

    comments? help?

    Thanks,

    Theo

    we are no using ACL

    Theodore Aivazian
    New Participant
    Jun 29, 2023 10:19 AM UTC

    in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

    comments? help?

    Thanks,

    Theo

    it was copying files. it copied 15 files then had an issue with the remaining files.

    Jonathan Smith
    Rocketeer
    Jun 30, 2023 4:30 AM UTC

    in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

    comments? help?

    Thanks,

    Theo

    Theo,

    Unix allows you to see which processes have an open file handle to any file , in AIX the command is fuser. You could add the fuser command to your script to see which processes have an open file handle on the file and investigate to see if this why the UNIX cp command is failing. From everything you have said so far, this is probally not a UniVerse problem but a Unix one.

    #fuser VOC
    VOC:  8388612
    #fuser -u VOC
    VOC:  8388612(root)

    Rocket Software - Senior Principal Technical Support Engineer - UniData ATS
    Neil Morris
    Rocketeer
    Jun 30, 2023 8:49 AM UTC

    in my phantom log  I saw the msg  cp: failed to close (specific file name), I looked at the file checked permissions and  everything looked good. In the program it processed all of the previous files with no errors. the last for file showed these errors. the programs are running on 15 different server and none of the other servers have this issue.

    comments? help?

    Thanks,

    Theo

    Hi Theo,

    When you first posted the inquiry I assumed your phantom was running a UniVerse command. Which is why I asked for some details. However, it looks like the phantom process may simply be copying files using the OS level 'cp' command? I did a google search on the error "cp: failed to close..." and got a few hits. They all point to something at the OS level. So as Jonathan notes, this is more likely an OS issue as anything to do with UniVerse. If you are running UV commands which happen to invoke the 'cp' command, it would be interesting to know those commands.

    Thanks,

    Neil