I was trying to upgrade from version 3.something (sorry I didn’t grab the version I was on) to 4.4.0. I did receive error messages but thought I had worked through them based on feedback wihin the upgrade error messages. However, now my ghost server won’t start up. Error message below.
- https://infosec.theos-blog.com/
- What version of Ghost are you using?
4.4.0 - What configuration?
OS: Ubuntu, v20.04.2 LTS
Node Version: v14.16.1
Ghost Version: 4.4.0
Ghost-CLI Version: 1.17.1 - What browser?
Firefox 88.0 on Mac OS X - What errors or information do you see in the console?
not-ghost@ghost-new-s-1vcpu-2gb-nyc1-01:/var/www/ghost$ cat /home/not-ghost/.ghost/logs/ghost-cli-debug-2021-05-09T21_47_03_717Z.log
Debug Information:
OS: Ubuntu, v20.04.2 LTS
Node Version: v14.16.1
Ghost Version: 4.4.0
Ghost-CLI Version: 1.17.1
Environment: production
Command: ‘ghost restart’
Message: Ghost was able to start, but errored during boot with: alter tablemembers_products
add constraintmembers_products_member_id_foreign
foreign key (member_id
) referencesmembers
(id
) on delete CASCADE - UNKNOWN_CODE_PLEASE_REPORT: Referencing column ‘member_id’ and referenced column ‘id’ in foreign key constraint ‘members_products_member_id_foreign’ are incompatible.
Help: Error occurred while executing the following migration: 02-add-members-products-table.js
Suggestion: journalctl -u ghost_infosec-theos-blog-com -n 50
Stack: Error: Ghost was able to start, but errored during boot with: alter tablemembers_products
add constraintmembers_products_member_id_foreign
foreign key (member_id
) referencesmembers
(id
) on delete CASCADE - UNKNOWN_CODE_PLEASE_REPORT: Referencing column ‘member_id’ and referenced column ‘id’ in foreign key constraint ‘members_products_member_id_foreign’ are incompatible.
at Server. (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:73:28)
at Object.onceWrapper (events.js:421:28)
at Server.emit (events.js:315:20)
at emitCloseNT (net.js:1659:8)
at processTicksAndRejections (internal/process/task_queues.js:79:21) - What steps could someone else take to reproduce the issue you’re having?
Attempt to upgrade from 3.something to 4.3.3.
ghost doctor output:
not-ghost@ghost-new-s-1vcpu-2gb-nyc1-01:/var/www/ghost$ ghost doctor
Checking system Node.js version - found v14.16.1
Checking logged in user
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Checking system compatibility
Checking for a MySQL installation
- sudo systemctl is-active ghost_infosec-theos-blog-com
? Sudo Password [hidden] - sudo systemctl reset-failed ghost_infosec-theos-blog-com
Validating config
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
Checking binary dependencies
Checking free space
Checking systemd unit file
Checking systemd node version - found v14.16.1