Hi Keith,

If PM2 is throwing an odd error, I'd recommend starting basic first..  Try and 
simply run "yarn start" from the commandline for the UI.  This will build the 
UI for production and start it on port 4000 (by default).  This also will often 
provide you with a more useful error if the UI setup is incorrect.  Once you 
get it working via "yarn start", then go back to using PM2 (as PM2 helps ensure 
the app stays up and provides better monitoring/logging).

If you hit errors when running "yarn start", we have a number of common errors 
listed in the install guide & how to usually fix them: 
https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-CommonInstallationIssues

If you have further questions let us know on this list.

Tim
________________________________
From: [email protected] <[email protected]> on behalf of 
Keith Jones <[email protected]>
Sent: Friday, September 10, 2021 2:07 PM
To: DSpace Technical Support <[email protected]>
Subject: [dspace-tech] Dspace 7 Front end error

Hi,

I'm in the process of installing and running Dspace 7. I've installed
the backend and frontend on a Centos 8 machine. When I start the front
end, I get the following error:


[PM2] Spawning PM2 daemon with pm2_home=/home/dspace/.pm2
[PM2] PM2 Successfully daemonized
[PM2][WARN] Applications dspace-angular not running, starting...
[PM2] App [dspace-angular] launched (1 instances)
┌─────┬───────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬────────
                           ──┐
│ id  │ name              │ namespace   │ version │ mode    │ pid
│ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watchin
                           g │
├─────┼───────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼────────
                           ──┤
│ 0   │ dspace-angular    │ default     │ N/A     │ fork    │ N/A
│ 0      │ 0    │ errored   │ 0%       │ 0b       │ dspace   │ disable
                           d │
└─────┴───────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──

I checked the log file using this command: pm2 logs
Here is the output:

[TAILING] Tailing last 15 lines for [all] processes (change the value
with --lines option)
/home/dspace/.pm2/pm2.log last 15 lines:
PM2        | 2021-09-10T14:56:18: PM2 log: RPC socket file      :
/home/dspace/.pm2/rpc.sock
PM2        | 2021-09-10T14:56:18: PM2 log: BUS socket file      :
/home/dspace/.pm2/pub.sock
PM2        | 2021-09-10T14:56:18: PM2 log: Application log path :
/home/dspace/.pm2/logs
PM2        | 2021-09-10T14:56:18: PM2 log: Worker Interval      : 30000
PM2        | 2021-09-10T14:56:18: PM2 log: Process dump file    :
/home/dspace/.pm2/dump.pm2
PM2        | 2021-09-10T14:56:18: PM2 log: Concurrent actions   : 2
PM2        | 2021-09-10T14:56:18: PM2 log: SIGTERM timeout      : 1600
PM2        | 2021-09-10T14:56:18: PM2 log:
===============================================================================
PM2        | 2021-09-10T14:56:18: PM2 log: App [dspace-angular:0]
starting in -fork mode-
PM2        | 2021-09-10T14:56:18: PM2 log: App [dspace-angular:0] online
PM2        | 2021-09-10T14:56:18: PM2 error: Error: spawn /usr/bin/yarn ENOENT
PM2        |     at Process.ChildProcess._handle.onexit
(internal/child_process.js:269:19)
PM2        |     at onErrorNT (internal/child_process.js:467:16)
PM2        |     at processTicksAndRejections
(internal/process/task_queues.js:82:21)
PM2        | 2021-09-10T14:56:18: PM2 error: Cancelling versioning data parsing


I'm new to 7 and not sure what is causing the error and where to start
troubleshooting, any help will be appreciated.

Thanks
Keith

--
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAJ6iCzOgS9LR%2BxCU%3DE7f0GLZFXcQn7tzHRUZ%3DQ-0saBXYWCoLw%40mail.gmail.com.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/DM5PR2201MB1148352870B0CF1C94DDC5CFEDD99%40DM5PR2201MB1148.namprd22.prod.outlook.com.

Reply via email to