zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

Crashed, brand new deployment, SSL 500, #1165

Closed eugle closed 4 years ago

eugle commented 4 years ago

A brand new server, Ubuntu 18.04, did nothing, started to deploy mup Setup && Mup Deploy, waited for over an hour, found the result like this

image

Does this look like SSL certificates were not issued successfully? What should I do

The mentality is broken, Ask the boss for help

eugle commented 4 years ago

image

If I redo the mup reconfig, it goes well, but the result is the same, 500 How can I do that

eugle commented 4 years ago

Again mup reconfig, mup proxy nginx-config, found that it was still 500, What should I do?

image

eugle commented 4 years ago

Complete configuration file

module.exports = {
    servers: {
        one: {
            host: '81.68.95.205',
            username: 'root',
            password: '',
        },
    },
    app: {
        name: 'admin.bitcalf.com', //meteor项目名称,会在docker的容器列表中显示
        path: '../../', //项目源代码相对于当前文件对应的相对路径
        type: 'meteor',
        volumes: {
            '/etc/localtime': '/etc/localtime', //配置docker容器时间为当前服务器时间(解决中国地区主机的UTC问题)
            '/home/wwwroot/meteor/domain/admin.bitcalf.com/data': '/data',
        },
        docker: {
            image: 'abernix/meteord:node-12.16.1-base',
            prepareBundle: true,
            useBuildKit: true,
        },
        servers: {
            one: {
                env: {
                    METEOR_SETTINGS: '{"public":{"apollo_uri":"https://admin.bitcalf.com/graphql"},"databaseId": "id7bDnyTizK4r5fsh"}',
                    ROOT_URL: 'https://admin.bitcalf.com/',
                    MAIL_URL: '',
                    VIRTUAL_HOST: 'admin.bitcalf.com,,img.bitcalf.com',
                    LETSENCRYPT_HOST: 'admin.bitcalf.com,img.bitcalf.com',
                },
            },
        },
        deployCheckPort: 80,
        buildOptions: {
            serverOnly: true,
            debug: false,
            allowIncompatibleUpdates: true,
        },
        env: {
            PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1,
            HTTP_FORWARDED_COUNT: 1, //服务器前面的代理数量,用于meteor status获取客户端ip
            testMode: 1,
            enumCordova: 1,
            PORT: 4200,
            ROOT_URL: 'https://admin.bitcalf.com/',
            MONGO_URL: 'mongodb://xx/adminboot?replicaSet=mongo', //连接mongo数据库地址
            MONGO_OPLOG_URL: 'mongodb://oplogger:xx/local?authSource=admin&replicaSet=mongo', //oplog
        },
        enableUploadProgressBar: true,
        deployCheckWaitTime: 600, //default 10部署完成后检查的等待时间(如果网络不是很好需要加大)
    },
    proxy: {
        domains: 'admin.bitcalf.com,img.bitcalf.com',
        loadBalancing: true,
        ssl: {
            letsEncryptEmail: 'services@bitcalf.com',
        },
    },
};
eugle commented 4 years ago

Delete, deploy, and repeat the above method over and over again. I've been doing it all day.Help me, any reminders and replies, thank you