PKP PLN - PN server returned HTTP error 500 when sending the deposit

Hi @asmecher
I have enabled the PKP PLN and noticed in the error log that the first two issues are producing an error in the error log.

OJS: 3.2.1.1

Please find below the status screenshot
Screenshot 2020-08-10 13.56.45

Below entries I found in the schedule task log:

[2020-08-10 10:37:54] https://journal.seisense.com
[2020-08-10 10:37:54] [Notice] Task process started.
[2020-08-10 10:37:54] [Notice] PLN Depositor executeActions started
[2020-08-10 10:37:54] [Notice] Depositor processing for SEISENSE Journal of Management.
[2020-08-10 10:37:54] [Notice] Getting service document.
[2020-08-10 10:37:55] [Notice] Processing deposit status updates.
[2020-08-10 10:37:55] [Notice] Trying status update for 3 (Issue: 3) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:37:56] [Notice] Processing status got for 3 → (xml-validated)
[2020-08-10 10:37:56] [Notice] Trying status update for 4 (Issue: 4) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:37:56] [Notice] Processing status got for 4 → (xml-validated)
[2020-08-10 10:37:56] [Notice] Trying status update for 5 (Issue: 5) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:37:57] [Notice] Processing status got for 5 → (xml-validated)
[2020-08-10 10:37:57] [Notice] Trying status update for 6 (Issue: 6) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:37:57] [Notice] Processing status got for 6 → (xml-validated)
[2020-08-10 10:37:57] [Notice] Trying status update for 7 (Issue: 7) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:37:58] [Notice] Processing status got for 7 → (xml-validated)
[2020-08-10 10:37:58] [Notice] Trying status update for 8 (Issue: 8) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:37:58] [Notice] Processing status got for 8 → (xml-validated)
[2020-08-10 10:37:58] [Notice] Trying status update for 9 (Issue: 9) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:37:59] [Notice] Processing status got for 9 → (xml-validated)
[2020-08-10 10:37:59] [Notice] Trying status update for 10 (Issue: 10) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:37:59] [Notice] Processing status got for 10 → (xml-validated)
[2020-08-10 10:37:59] [Notice] Trying status update for 11 (Issue: 11) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:38:00] [Notice] Processing status got for 11 → (xml-validated)
[2020-08-10 10:38:00] [Notice] Trying status update for 12 (Issue: 12) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:38:00] [Notice] Processing status got for 12 → (xml-validated)
[2020-08-10 10:38:00] [Notice] Trying status update for 13 (Issue: 13) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:38:01] [Notice] Processing status got for 13 → (xml-validated)
[2020-08-10 10:38:01] [Notice] Trying status update for 14 (Issue: 14) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:38:01] [Notice] Processing status got for 14 → (xml-validated)
[2020-08-10 10:38:01] [Notice] Trying status update for 15 (Issue: 15) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:38:02] [Notice] Processing status got for 15 → (xml-validated)
[2020-08-10 10:38:02] [Notice] Trying status update for 16 (Issue: 16) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:38:02] [Notice] Processing status got for 16 → (xml-validated)
[2020-08-10 10:38:02] [Notice] Processing updated content.
[2020-08-10 10:38:02] [Notice] Processing new content.
[2020-08-10 10:38:02] [Notice] Packaging content for deposit.
[2020-08-10 10:38:02] [Notice] Trying package deposit 2 (Issue: 2) (Local Status: [New], Processing Status: [Unknown], Lockss Status: [Unknown])
[2020-08-10 10:38:06] [Notice] Packaging for deposit 2 succeeded
[2020-08-10 10:38:06] [Notice] Sending deposits to the PKP PN.
[2020-08-10 10:38:06] [Notice] Trying transfer deposit 1 (Issue: 1) (Local Status: [Packaged], Processing Status: [Unknown], Lockss Status: [Received])
[2020-08-10 10:38:06] [Notice] Posting the Atom file to staging server for deposit 1 (Local Status: [Packaged], Processing Status: [Unknown], Lockss Status: [Received]) - (Url: [http://pkp-pln.lib.sfu.ca/api/sword/2.0/col-iri/5C27606A-486B-40FC-91EC-46DFD735FBB1], AtomPath: [/home/seisense/ojsdata/journals/1/pln/D3F4C572-B324-4E1F-9E3E-1EB4C1D20595/D3F4C572-B324-4E1F-9E3E-1EB4C1D20595.xml], Method: [PostFile])
[2020-08-10 10:38:07] [Notice] Posting the Atom file to staging server for deposit 1 failed (Error: [500 - [

    <title>Welcome!</title>
            
            <link rel="stylesheet" type="text/css" media="screen" href="/css/fddb9b6.css">
    
            <link rel='stylesheet' href='/css/2c8c367.css'>
    
    <link rel="stylesheet" type="text/css" href="/bundles/bmatznerjqueryui/css/smoothness/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="/bundles/bmatznerjqueryui/css/smoothness/jquery.ui.theme.css" />

    <link rel="icon" type="image/x-icon" href="/favicon.ico">
</head>
<body>

    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/">PKP PLN</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="/">Home</a></li>

                    
                </ul>
                <ul class="nav navbar-nav navbar-right">
                                                <li>
                            <a href="/login">
                                Admin
                            </a>
                        </li>
                                        </ul>
            </div><!--/.nav-collapse -->
        </div>
    </nav>
    <div class="container">

                        <div class="page-header">
                    <h1>500 Internal Server Error</h1>

            </div>
        
        
    <p>500 - Internal Server Error. String could not be parsed as XML</p>

</div>

    <script type="text/javascript" src="/js/bfd2401.js"></script>
    <script type="text/javascript" src="/bundles/bmatznerjqueryui/js/minified/jquery-ui.min.js"></script>
]]) [2020-08-10 10:38:07] [Notice] PN server returned HTTP error 500 when sending the deposit. [2020-08-10 10:38:07] [Notice] Trying transfer deposit 2 (Issue: 2) (Local Status: [Packaged], Processing Status: [Unknown], Lockss Status: [Unknown]) [2020-08-10 10:38:07] [Notice] Posting the Atom file to staging server for deposit 2 (Local Status: [Packaged], Processing Status: [Unknown], Lockss Status: [Unknown]) - (Url: [http://pkp-pln.lib.sfu.ca/api/sword/2.0/col-iri/5C27606A-486B-40FC-91EC-46DFD735FBB1], AtomPath: [/home/seisense/ojsdata/journals/1/pln/D352786B-16D7-485A-B6B9-AE9C47CA71F6/D352786B-16D7-485A-B6B9-AE9C47CA71F6.xml], Method: [PostFile]) [2020-08-10 10:38:07] [Notice] Posting the Atom file to staging server for deposit 2 failed (Error: [500 - [
    <title>Welcome!</title>
            
            <link rel="stylesheet" type="text/css" media="screen" href="/css/fddb9b6.css">
    
            <link rel='stylesheet' href='/css/2c8c367.css'>
    
    <link rel="stylesheet" type="text/css" href="/bundles/bmatznerjqueryui/css/smoothness/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="/bundles/bmatznerjqueryui/css/smoothness/jquery.ui.theme.css" />

    <link rel="icon" type="image/x-icon" href="/favicon.ico">
</head>
<body>

    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/">PKP PLN</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="/">Home</a></li>

                    
                </ul>
                <ul class="nav navbar-nav navbar-right">
                                                <li>
                            <a href="/login">
                                Admin
                            </a>
                        </li>
                                        </ul>
            </div><!--/.nav-collapse -->
        </div>
    </nav>
    <div class="container">

                        <div class="page-header">
                    <h1>500 Internal Server Error</h1>

            </div>
        
        
    <p>500 - Internal Server Error. String could not be parsed as XML</p>

</div>

    <script type="text/javascript" src="/js/bfd2401.js"></script>
    <script type="text/javascript" src="/bundles/bmatznerjqueryui/js/minified/jquery-ui.min.js"></script>
]]) [2020-08-10 10:38:07] [Notice] PN server returned HTTP error 500 when sending the deposit. [2020-08-10 10:38:07] [Notice] Task process stopped.

I don’t know if it is normal and will be resolved automatically, please guide me if I need to do anything on my end.
Thanks

Hi @seisense,

It seems that there is a problem regarding the XML file that is produced by the PLN Plugin export process (which uses the Native Import/Export Export Process)

Can you share whether the folder /home/seisense/ojsdata/journals/1/pln/D352786B-16D7-485A-B6B9-AE9C47CA71F6 contains any XML files that may be for example empty?

You can also try to export the issue that is indicated with the error (id=1) from the Native Import/Export plugin, to check if the export process produces a file, and share possible errors?

Regards,
@Dimitris_Efstathiou

Issue is resolved by itself. I simply reset the two issues in PKP PN plugin.
Thanks