I updated our cryoSPARC v3.3.2 to 4.1.1 this morning. It said it was successful. However, when I start cryoSPARC and then look at the ‘status’, for “app” it says “EXITED”. Looking at the logs for “app” (‘cryosparcm log app’) it is saying port 39000 is already in use:
------------------8<—Begin-Cut-Here—8<------------------
2022-12-22 11:40:26,127 INFO | DDP port: 39006
2022-12-22 11:40:26,130 INFO | /websocket proxy target: http://hostname.redacted.emory.edu:39006
[HPM] Proxy created: /websocket → http://hostname.redacted.emory.edu:39006
2022-12-22 11:40:26,208 INFO | [MongoDB] Connected
2022-12-22 11:40:26,210 INFO | [StatsManager:initialized]
2022-12-22 11:40:26,210 INFO | [StatsManager:start]
2022-12-22 11:40:26,211 INFO | [StatsManager:getJobTypesBySection]
2022-12-22 11:40:26,213 INFO | [ReportsManager:initialized]
2022-12-22 11:40:26,213 INFO | [MigrationManager:initialized]
2022-12-22 11:40:26,213 INFO | [MigrationManager:start]
2022-12-22 11:40:26,214 INFO | [MigrationManager:migrateNotes]
2022-12-22 11:40:26,294 INFO | [StatsManager:allProjects]
2022-12-22 11:40:26,298 INFO | [StatsManager:allWorkspaces]
2022-12-22 11:40:26,378 ERROR | uncaughtException: listen EADDRINUSE: address already in use :::39000
2022-12-22 11:40:26,378 ERROR | Error: listen EADDRINUSE: address already in use :::39000
2022-12-22 11:40:26,378 ERROR | at Server.setupListenHandle [as _listen2] (node:net:1432:16)
2022-12-22 11:40:26,378 ERROR | at listenInCluster (node:net:1480:12)
2022-12-22 11:40:26,378 ERROR | at Server.listen (node:net:1568:7)
2022-12-22 11:40:26,378 ERROR | at pb.listen (/data/home/cryosparcuser/cryosparc/cryosparc_master/cryosparc_app/custom-server/dist/server/index.js:890:2244)
2022-12-22 11:40:26,378 ERROR | at RSr (/data/home/cryosparcuser/cryosparc/cryosparc_master/cryosparc_app/custom-server/dist/server/index.js:908:2735)
2022-12-22 11:40:26,378 ERROR | at processTicksAndRejections (node:internal/process/task_queues:96:5)
-------------------8<—End-Cut-Here—8<-------------------
However, I can find nothing using that port:
------------------8<—Begin-Cut-Here—8<------------------
(base) lsof -i tcp:39000
(base) lsof -i :39000
(base) fuser 39000/tcp
-------------------8<—End-Cut-Here—8<-------------------
Searching, I found this topic ‘Web app startup error: listen EADDRINUSE’ in the forums which suggested looking for stray processes, and deleting the “socket” file in /tmp but I do not have any:
------------------8<—Begin-Cut-Here—8<------------------
(base) ps -ax | grep “supervisord”
29450 pts/0 S+ 0:00 grep --color=auto supervisord
(base) ps -ax | grep “crysosparc”
29475 pts/0 S+ 0:00 grep --color=auto crysosparc
(base) ps -ax | grep “mongod”
29506 pts/0 S+ 0:00 grep --color=auto mongod
(base) ls -l /tmp/cryo*
ls: cannot access /tmp/cryo*: No such file or directory
-------------------8<—End-Cut-Here—8<-------------------
I WILL say that before I did the update, I checked the status (‘cryosparcm status’) and it said it was NOT running. I took it at face value that it wasn’t lying to me, and tried to do a backup of the database before the upgrade. I got an error ‘Database: ERROR (spawn error)’ and in searching for that, it was again suggested that there were stray processes running – which there was 1 at that time (found with ‘ps -ax | grep supervisord’) that I killed. From there, the database backup and upgrade said they completed successfully.
I’m kind of at a loss where to go from here. Help!