ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Errors Updating NextCloud

    IT Discussion
    nextcloud
    7
    28
    1.8k
    Loading More Posts
    • 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.
    • scottalanmillerS
      scottalanmiller @JaredBusch
      last edited by

      @jaredbusch said in Errors Updating NextCloud:

      @black3dynamite said in Errors Updating NextCloud:

      Enable setsebool -P httpd_unified on to update from gui and then disable setsebool -P httpd_unified off

      I never have this problem, I assume, because I turn off SELinux for the update. I do that instead of giving all the directories and shit HTTP_RW perms.

      I tried that, still got the error. I normally keep it on, though, so it might be part of my historical issues.

      1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite
        last edited by

        Updating to 13.0.4 was a success.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          Now with 13.0.4...

          0_1528734680250_Screenshot from 2018-06-11 11-30-24.png

          black3dynamiteB B 2 Replies Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite @scottalanmiller
            last edited by

            @scottalanmiller said in Errors Updating NextCloud:

            Now with 13.0.4...

            0_1528734680250_Screenshot from 2018-06-11 11-30-24.png

            Do you have any of these setup in your nginx conf for nextcloud?

            proxy_connect_timeout 
            proxy_send_timeout
            proxy_read_timeout
            send_timeout
            
            1 Reply Last reply Reply Quote 0
            • NerdyDadN
              NerdyDad
              last edited by

              Went from 13.0.2 to 13.0.4 on Vultr and had no problems at all.

              1 Reply Last reply Reply Quote 0
              • B
                bnrstnr @scottalanmiller
                last edited by

                @scottalanmiller said in Errors Updating NextCloud:

                Now with 13.0.4...

                0_1528734680250_Screenshot from 2018-06-11 11-30-24.png

                I got this on one of my instances, too. Took it out of maintenance mode with the CLI and then continued the update via the web interface and it finished without any further issues.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @bnrstnr
                  last edited by

                  @bnrstnr said in Errors Updating NextCloud:

                  @scottalanmiller said in Errors Updating NextCloud:

                  Now with 13.0.4...

                  0_1528734680250_Screenshot from 2018-06-11 11-30-24.png

                  I got this on one of my instances, too. Took it out of maintenance mode with the CLI and then continued the update via the web interface and it finished without any further issues.

                  Yeah, that's what I normally do. But... why is that always necessarily, like almost every time.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    Update done, just had to run it a couple of times.

                    1 Reply Last reply Reply Quote 0
                    • zachary715Z
                      zachary715
                      last edited by

                      I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...

                      [root@nextcloud updater]# sudo -u apache php updater.phar
                      Nextcloud Updater - version: v13.0.0beta1
                      
                      Current version is 13.0.2.
                      PHP Fatal error:  Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453
                      Stack trace:
                      #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse()
                      #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate()
                      #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                      #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                      #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
                      

                      Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed dnf install php-json and re-ran the update. Worked like a charm.

                      I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.

                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch @zachary715
                        last edited by

                        @zachary715 said in Errors Updating NextCloud:

                        I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...

                        [root@nextcloud updater]# sudo -u apache php updater.phar
                        Nextcloud Updater - version: v13.0.0beta1
                        
                        Current version is 13.0.2.
                        PHP Fatal error:  Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453
                        Stack trace:
                        #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse()
                        #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate()
                        #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                        #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                        #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
                        

                        Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed dnf install php-json and re-ran the update. Worked like a charm.

                        I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.

                        Might be a new dependency to account for. I have not ran a new in stall in a couple years.

                        zachary715Z 1 Reply Last reply Reply Quote 0
                        • zachary715Z
                          zachary715 @JaredBusch
                          last edited by

                          @jaredbusch said in Errors Updating NextCloud:

                          @zachary715 said in Errors Updating NextCloud:

                          I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...

                          [root@nextcloud updater]# sudo -u apache php updater.phar
                          Nextcloud Updater - version: v13.0.0beta1
                          
                          Current version is 13.0.2.
                          PHP Fatal error:  Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453
                          Stack trace:
                          #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse()
                          #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate()
                          #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                          #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                          #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
                          

                          Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed dnf install php-json and re-ran the update. Worked like a charm.

                          I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.

                          Might be a new dependency to account for. I have not ran a new in stall in a couple years.

                          This was originally a Nextcloud 12 install on Fedora 27. Have upgraded to versions 13 and 28 respectively. Upgrades up to this point have not required this module.

                          Be curious for others who are running latest Nextcloud on Fedora 28, if you run php -m if the php-json module is installed or if you were able to upgrade to the latest without it. @scottalanmiller @NerdyDad @bnrstnr @black3dynamite

                          I didn't find any searches related to Nextcloud for this error but if I searched for the PHP Fatal error with json_encode() that's what led me to the result.

                          JaredBuschJ black3dynamiteB 2 Replies Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch @zachary715
                            last edited by

                            @zachary715 said in Errors Updating NextCloud:

                            @jaredbusch said in Errors Updating NextCloud:

                            @zachary715 said in Errors Updating NextCloud:

                            I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...

                            [root@nextcloud updater]# sudo -u apache php updater.phar
                            Nextcloud Updater - version: v13.0.0beta1
                            
                            Current version is 13.0.2.
                            PHP Fatal error:  Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453
                            Stack trace:
                            #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse()
                            #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate()
                            #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                            #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                            #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
                            

                            Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed dnf install php-json and re-ran the update. Worked like a charm.

                            I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.

                            Might be a new dependency to account for. I have not ran a new in stall in a couple years.

                            This was originally a Nextcloud 12 install on Fedora 27. Have upgraded to versions 13 and 28 respectively. Upgrades up to this point have not required this module.

                            Be curious for others who are running latest Nextcloud on Fedora 28, if you run php -m if the php-json module is installed or if you were able to upgrade to the latest without it. @scottalanmiller @NerdyDad @bnrstnr @black3dynamite

                            I didn't find any searches related to Nextcloud for this error but if I searched for the PHP Fatal error with json_encode() that's what led me to the result.

                            Both of my systems have it. I do not recall doing anything not posted in one of my guides.

                            1 Reply Last reply Reply Quote 1
                            • black3dynamiteB
                              black3dynamite @zachary715
                              last edited by

                              @zachary715 said in Errors Updating NextCloud:

                              @jaredbusch said in Errors Updating NextCloud:

                              @zachary715 said in Errors Updating NextCloud:

                              I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...

                              [root@nextcloud updater]# sudo -u apache php updater.phar
                              Nextcloud Updater - version: v13.0.0beta1
                              
                              Current version is 13.0.2.
                              PHP Fatal error:  Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453
                              Stack trace:
                              #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse()
                              #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate()
                              #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                              #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                              #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
                              

                              Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed dnf install php-json and re-ran the update. Worked like a charm.

                              I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.

                              Might be a new dependency to account for. I have not ran a new in stall in a couple years.

                              This was originally a Nextcloud 12 install on Fedora 27. Have upgraded to versions 13 and 28 respectively. Upgrades up to this point have not required this module.

                              Be curious for others who are running latest Nextcloud on Fedora 28, if you run php -m if the php-json module is installed or if you were able to upgrade to the latest without it. @scottalanmiller @NerdyDad @bnrstnr @black3dynamite

                              I didn't find any searches related to Nextcloud for this error but if I searched for the PHP Fatal error with json_encode() that's what led me to the result.

                              None of my notes ever included php-json unless its a dependency of something else that I installed.

                              JaredBuschJ 1 Reply Last reply Reply Quote 1
                              • JaredBuschJ
                                JaredBusch @black3dynamite
                                last edited by

                                @black3dynamite said in Errors Updating NextCloud:

                                @zachary715 said in Errors Updating NextCloud:

                                @jaredbusch said in Errors Updating NextCloud:

                                @zachary715 said in Errors Updating NextCloud:

                                I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...

                                [root@nextcloud updater]# sudo -u apache php updater.phar
                                Nextcloud Updater - version: v13.0.0beta1
                                
                                Current version is 13.0.2.
                                PHP Fatal error:  Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453
                                Stack trace:
                                #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse()
                                #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate()
                                #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                                #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                                #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
                                

                                Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed dnf install php-json and re-ran the update. Worked like a charm.

                                I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.

                                Might be a new dependency to account for. I have not ran a new in stall in a couple years.

                                This was originally a Nextcloud 12 install on Fedora 27. Have upgraded to versions 13 and 28 respectively. Upgrades up to this point have not required this module.

                                Be curious for others who are running latest Nextcloud on Fedora 28, if you run php -m if the php-json module is installed or if you were able to upgrade to the latest without it. @scottalanmiller @NerdyDad @bnrstnr @black3dynamite

                                I didn't find any searches related to Nextcloud for this error but if I searched for the PHP Fatal error with json_encode() that's what led me to the result.

                                None of my notes ever included php-json unless its a dependency of something else that I installed.

                                It is not in my guide here.
                                https://mangolassi.it/topic/16380/install-nextcloud-13-0-0-on-fedora-27

                                SO it must be a dependency or something. I would have to spin up a test system to check.

                                black3dynamiteB 1 Reply Last reply Reply Quote 0
                                • black3dynamiteB
                                  black3dynamite @JaredBusch
                                  last edited by black3dynamite

                                  @jaredbusch said in Errors Updating NextCloud:

                                  @black3dynamite said in Errors Updating NextCloud:

                                  @zachary715 said in Errors Updating NextCloud:

                                  @jaredbusch said in Errors Updating NextCloud:

                                  @zachary715 said in Errors Updating NextCloud:

                                  I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...

                                  [root@nextcloud updater]# sudo -u apache php updater.phar
                                  Nextcloud Updater - version: v13.0.0beta1
                                  
                                  Current version is 13.0.2.
                                  PHP Fatal error:  Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453
                                  Stack trace:
                                  #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse()
                                  #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate()
                                  #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                                  #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
                                  #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
                                  

                                  Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed dnf install php-json and re-ran the update. Worked like a charm.

                                  I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.

                                  Might be a new dependency to account for. I have not ran a new in stall in a couple years.

                                  This was originally a Nextcloud 12 install on Fedora 27. Have upgraded to versions 13 and 28 respectively. Upgrades up to this point have not required this module.

                                  Be curious for others who are running latest Nextcloud on Fedora 28, if you run php -m if the php-json module is installed or if you were able to upgrade to the latest without it. @scottalanmiller @NerdyDad @bnrstnr @black3dynamite

                                  I didn't find any searches related to Nextcloud for this error but if I searched for the PHP Fatal error with json_encode() that's what led me to the result.

                                  None of my notes ever included php-json unless its a dependency of something else that I installed.

                                  It is not in my guide here.
                                  https://mangolassi.it/topic/16380/install-nextcloud-13-0-0-on-fedora-27

                                  SO it must be a dependency or something. I would have to spin up a test system to check.

                                  I think cockpit is the reason I have php-json installed.

                                  Edit: Nevermind

                                  1 Reply Last reply Reply Quote 0
                                  • black3dynamiteB
                                    black3dynamite
                                    last edited by

                                    @zachary715 Looking at my history log, I did install php-json after upgrading from Fedora 27 to 28. So I might have run into the same issue you were having and forgot to update my notes.

                                    1 Reply Last reply Reply Quote 1
                                    • zachary715Z
                                      zachary715
                                      last edited by

                                      @JaredBusch So I just installed a fresh Vultr instance and followed your guide to a T. I did download the 13.0.2 file to see if it would install correctly and then if it did, I wanted to see if it would update without issues or require the json module.

                                      When I got to the part about going to the web GUI to setup the admin password, I kept getting an "Internal Server Error" page. Tried rebooting the server but same result. I installed php-json and then systemctl restart httpd and the page came up fine. So it appears for whatever reason Fedora 28 wants php-json module to work properly. Which is odd because my instance has been working fine on Fedora 28 until last night when I did a dnf upgrade, so maybe something else got installed that created this dependency.

                                      JaredBuschJ 1 Reply Last reply Reply Quote 1
                                      • JaredBuschJ
                                        JaredBusch @zachary715
                                        last edited by

                                        @zachary715 said in Errors Updating NextCloud:

                                        @JaredBusch So I just installed a fresh Vultr instance and followed your guide to a T. I did download the 13.0.2 file to see if it would install correctly and then if it did, I wanted to see if it would update without issues or require the json module.

                                        When I got to the part about going to the web GUI to setup the admin password, I kept getting an "Internal Server Error" page. Tried rebooting the server but same result. I installed php-json and then systemctl restart httpd and the page came up fine. So it appears for whatever reason Fedora 28 wants php-json module to work properly. Which is odd because my instance has been working fine on Fedora 28 until last night when I did a dnf upgrade, so maybe something else got installed that created this dependency.

                                        Thanks for doing it. I've been busy working on PBX systems all evening.

                                        I'll just add it to the existing guide.

                                        1 Reply Last reply Reply Quote 0
                                        • 1
                                        • 2
                                        • 1 / 2
                                        • First post
                                          Last post