Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Cloudron shows domain setup page after a possible crash

Cloudron shows domain setup page after a possible crash

Scheduled Pinned Locked Moved Solved Support
sftpupdate
6 Posts 3 Posters 639 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    opensourced
    wrote on last edited by girish
    #1

    I am facing the situation, where a before configured and running Cloudron instance is now showing the DNS setup window (on the previous running my.xy.com dashboard site).

    When I then enter the domain again and choose wildcard for certificate configuration, I see the error msg "Already activated". In the box logs I see this:

    2023-09-25T12:51:47.742Z box:platform BoxError: ER_BAD_FIELD_ERROR: Unknown column 'apps.enableTurn' in 'field list'
        at Query.queryCallback (/home/yellowtent/box/src/database.js:91:38)
        at Query.<anonymous> (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:526:10)
        at Query._callback (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:488:16)
        at Sequence.end (/home/yellowtent/box/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
        at Query.ErrorPacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
        at Protocol._parsePacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/Protocol.js:291:23)
        at Parser._parsePacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/Parser.js:433:10)
        at Parser.write (/home/yellowtent/box/node_modules/mysql/lib/protocol/Parser.js:43:10)
        at Protocol.write (/home/yellowtent/box/node_modules/mysql/lib/protocol/Protocol.js:38:16)
        at Socket.<anonymous> (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:88:28)
    

    This situation happened after a scheduled reboot was executed. After the reboot succeeded, I ended up like this. What might have happened? Thanks in advance!

    girishG 1 Reply Last reply
    1
    • O opensourced

      I am facing the situation, where a before configured and running Cloudron instance is now showing the DNS setup window (on the previous running my.xy.com dashboard site).

      When I then enter the domain again and choose wildcard for certificate configuration, I see the error msg "Already activated". In the box logs I see this:

      2023-09-25T12:51:47.742Z box:platform BoxError: ER_BAD_FIELD_ERROR: Unknown column 'apps.enableTurn' in 'field list'
          at Query.queryCallback (/home/yellowtent/box/src/database.js:91:38)
          at Query.<anonymous> (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:526:10)
          at Query._callback (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:488:16)
          at Sequence.end (/home/yellowtent/box/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
          at Query.ErrorPacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
          at Protocol._parsePacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/Protocol.js:291:23)
          at Parser._parsePacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/Parser.js:433:10)
          at Parser.write (/home/yellowtent/box/node_modules/mysql/lib/protocol/Parser.js:43:10)
          at Protocol.write (/home/yellowtent/box/node_modules/mysql/lib/protocol/Protocol.js:38:16)
          at Socket.<anonymous> (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:88:28)
      

      This situation happened after a scheduled reboot was executed. After the reboot succeeded, I ended up like this. What might have happened? Thanks in advance!

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @opensourced looks like the migrations did not complete after update.

      Please follow - https://docs.cloudron.io/troubleshooting/#failed-upgrade

      1 Reply Last reply
      0
      • O Offline
        O Offline
        opensourced
        wrote on last edited by
        #3

        There is the following error occuring when i run

        /home/yellowtent/box/setup/start.sh
        
        mysqladmin: [Warning] Using a password on the command line interface can be insecure.
        Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
        mysql: [Warning] Using a password on the command line interface can be insecure.
        mysql: [Warning] Using a password on the command line interface can be insecure.
        2023-09-26T17:40:40 ==> start: Migrating data
        Ignoring invalid configuration option passed to Connection: driver. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection
        [ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Duplicate entry 'sftp_rsa_private_key' for key 'blobs.PRIMARY'
            at /home/yellowtent/box/node_modules/db-migrate/lib/commands/on-complete.js:15:14
            at tryCatcher (/home/yellowtent/box/node_modules/bluebird/js/release/util.js:16:23)
            at Promise.successAdapter (/home/yellowtent/box/node_modules/bluebird/js/release/nodeify.js:22:30)
            at Promise._settlePromise (/home/yellowtent/box/node_modules/bluebird/js/release/promise.js:601:21)
            at Promise._settlePromiseCtx (/home/yellowtent/box/node_modules/bluebird/js/release/promise.js:641:10)
            at _drainQueueStep (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:97:12)
            at _drainQueue (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:86:9)
            at Async._drainQueues (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:102:5)
            at Async.drainQueues [as _onImmediate] (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:15:14)
            at process.processImmediate (node:internal/timers:476:21)
            at Packet.asError (/home/yellowtent/box/node_modules/mysql2/lib/packets/packet.js:728:17)
            at Query.execute (/home/yellowtent/box/node_modules/mysql2/lib/commands/command.js:29:26)
            at Connection.handlePacket (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:456:32)
            at PacketParser.onPacket (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:85:12)
            at PacketParser.executeStart (/home/yellowtent/box/node_modules/mysql2/lib/packet_parser.js:75:16)
            at Socket.<anonymous> (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:92:25)
            at Socket.emit (node:events:513:28)
            at addChunk (node:internal/streams/readable:324:12)
            at readableAddChunk (node:internal/streams/readable:297:9)
            at Readable.push (node:internal/streams/readable:234:10)
            at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
        2023-09-26T17:40:41 ==> start: DB migration failed
        
        girishG 1 Reply Last reply
        0
        • O opensourced

          There is the following error occuring when i run

          /home/yellowtent/box/setup/start.sh
          
          mysqladmin: [Warning] Using a password on the command line interface can be insecure.
          Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
          mysql: [Warning] Using a password on the command line interface can be insecure.
          mysql: [Warning] Using a password on the command line interface can be insecure.
          2023-09-26T17:40:40 ==> start: Migrating data
          Ignoring invalid configuration option passed to Connection: driver. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection
          [ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Duplicate entry 'sftp_rsa_private_key' for key 'blobs.PRIMARY'
              at /home/yellowtent/box/node_modules/db-migrate/lib/commands/on-complete.js:15:14
              at tryCatcher (/home/yellowtent/box/node_modules/bluebird/js/release/util.js:16:23)
              at Promise.successAdapter (/home/yellowtent/box/node_modules/bluebird/js/release/nodeify.js:22:30)
              at Promise._settlePromise (/home/yellowtent/box/node_modules/bluebird/js/release/promise.js:601:21)
              at Promise._settlePromiseCtx (/home/yellowtent/box/node_modules/bluebird/js/release/promise.js:641:10)
              at _drainQueueStep (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:97:12)
              at _drainQueue (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:86:9)
              at Async._drainQueues (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:102:5)
              at Async.drainQueues [as _onImmediate] (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:15:14)
              at process.processImmediate (node:internal/timers:476:21)
              at Packet.asError (/home/yellowtent/box/node_modules/mysql2/lib/packets/packet.js:728:17)
              at Query.execute (/home/yellowtent/box/node_modules/mysql2/lib/commands/command.js:29:26)
              at Connection.handlePacket (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:456:32)
              at PacketParser.onPacket (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:85:12)
              at PacketParser.executeStart (/home/yellowtent/box/node_modules/mysql2/lib/packet_parser.js:75:16)
              at Socket.<anonymous> (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:92:25)
              at Socket.emit (node:events:513:28)
              at addChunk (node:internal/streams/readable:324:12)
              at readableAddChunk (node:internal/streams/readable:297:9)
              at Readable.push (node:internal/streams/readable:234:10)
              at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
          2023-09-26T17:40:41 ==> start: DB migration failed
          
          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @opensourced OK some migration issue indeed. It's hard to tell why , can you write to support@cloudron.io ?

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            The issue was a clash in sftp keys in the blobs table. Solution here was to purge those blobs from the database to let the migration succeed. The consecutive box restart will ensure keys again and puts them into the database correctly.

            For reference, to purge those keys, the following command can be run via SSH (of course use with caution or better contact us about it first):

            mysql -uroot -ppassword box -e "delete from blobs where id='sftp_private_key' OR id='sftp_public_key'" 
            
            1 Reply Last reply
            2
            • nebulonN nebulon marked this topic as a question on
            • nebulonN nebulon has marked this topic as solved on
            • girishG girish referenced this topic on
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              The full solution is :

              • First run (as-is): mysql -uroot -ppassword box -e "delete from blobs where id='sftp_private_key' OR id='sftp_public_key'"
              • Then, /home/yellowtent/box/setup/start.sh to complete the migrations
              • Then, systemctl restart box
              1 Reply Last reply
              1
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search