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

    How can I check what Nextcloud user is active

    Scheduled Pinned Locked Moved IT Discussion
    nextcloud
    69 Posts 10 Posters 15.9k Views
    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.
    • momurdaM
      momurda @black3dynamite
      last edited by momurda

      @black3dynamite I am working on that now
      I think something like
      grep ncusername /var/log/apache2/access.log | grep PUT
      ^This one shows up when using NC sync client and editing/saving a file
      grep ncusername /var/log/apache2/access.log | grep DELETE
      ^This one shows up when deleting things from Windows Explorer and then the sync client sync the change to NC.

      edit, these arent quite right yet but a good starting point i think.
      You dont know the username in this case so
      grep dav /var/log/apache2/access.log | grep PUT
      This will return all log entries of all users who have made changes with the sync client. It makes a log entries every file change, so the result list will be quite long.
      You would need to glance at the results and look at the users that shows up the most i think. After hours this would lead you to the culprit.

      edit: PUT is the function used when saving a changed/edited file.
      grep dav /var/log/apache2/access.log | grep PUT
      This gives you a list of user and files edited in current access.log using the NC sync client. With this you can change your next query to use a specific username that shows up a lot, like my first examples.

      If you want to find the # of edited files in access log add | wc -l to the end which will give the number of files changed. change the username based on results from previous query. When you see a huge number returned that would probably be the person.
      grep ncusername /var/log/apache2/access.log | grep PUT | wc -l

      But all this seems like much work(and still not quite right) compared to getting NC to put this info in the Web UI.

      1 Reply Last reply Reply Quote 2
      • JaredBuschJ
        JaredBusch
        last edited by

        So, upgrading....

        Nextcloud (and ownCloud before) always say to upgrade without skiping anything, but never to skip a major version.

        As I am on the last version of 9 with this instance, Should I upgrade to 10.0.1 or straight to 10.0.6?
        https://nextcloud.com/changelog/#latest10

        And then subsequently? Point releases and then majors?
        Or should I just do the latest 10, latest, 11, latest 12, and finally current 13?

        A dbeatoD 2 Replies Last reply Reply Quote 0
        • A
          Alex Sage @JaredBusch
          last edited by

          @jaredbusch build a new VM, and move the config and data over

          https://docs.nextcloud.com/server/12/admin_manual/maintenance/migrating.html

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

            @aaronstuder said in How can I check what Nextcloud user is active:

            @jaredbusch build a new VM, and move the config and data over

            https://docs.nextcloud.com/server/12/admin_manual/maintenance/migrating.html

            Was what I posted hard to understand?

            You obviously have no idea how many sync issues that type of thing causes.

            A 1 Reply Last reply Reply Quote 0
            • dbeatoD
              dbeato @JaredBusch
              last edited by

              @jaredbusch said in How can I check what Nextcloud user is active:

              So, upgrading....

              Nextcloud (and ownCloud before) always say to upgrade without skiping anything, but never to skip a major version.

              As I am on the last version of 9 with this instance, Should I upgrade to 10.0.1 or straight to 10.0.6?
              https://nextcloud.com/changelog/#latest10

              And then subsequently? Point releases and then majors?
              Or should I just do the latest 10, latest, 11, latest 12, and finally current 13?

              I would do point releases and then majors as outlined here:

              https://nextcloud.com/migration

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

                Well looking closer, there are no minor Nextcloud releases. Only bug fix releases..

                So that means upgrade to 10.0.x, then 11.0.x, then 12.0.x, and finally 13.0.x.

                1 Reply Last reply Reply Quote 2
                • JaredBuschJ
                  JaredBusch
                  last edited by

                  No problem upgrading to 10.0.6.

                  Now I even have the option to use the built in updater.
                  0_1520109285413_c83d79e1-9b6f-4af2-916b-d1a09f43f1fa-image.png

                  1 Reply Last reply Reply Quote 1
                  • A
                    Alex Sage @JaredBusch
                    last edited by Alex Sage

                    @jaredbusch from step 4 The data files should keep their original timestamp (can be done by using rsync with -t option) otherwise the clients will re-download all the files after the migration. Depending on the original installation

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

                      @aaronstuder said in How can I check what Nextcloud user is active:

                      @jaredbusch from step 4 The data files should keep their original timestamp (can be done by using rsync with -t option) otherwise the clients will re-download all the files after the migration. Depending on the original installation

                      Would you stop already because that is not the supported upgrade method.

                      FFS.

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

                        11.0.7 looking good.
                        0_1520109835598_5c411acb-4579-4fa8-8ce1-aa42d7d37612-image.png

                        success
                        0_1520109969177_5e5c05fd-0749-4ec7-bda9-69fc9456dba2-image.png

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

                          At least I am up to a supported version now.

                          0_1520110414094_538bcb43-de5b-45ac-9759-95be402ae9c3-image.png

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

                            To do the 9 to 10upgrade, I renamed the owncloud directory, downloaded the Nextcloud bz2 and extracted it as owncloud.
                            My data is in a different folder.
                            I copied the config back in and reset ownership and permissions, as well as reset SELinux permissions.

                            This system started life as ownCloud 7 or something like that. So it couldn’t hurt to clean the root folder up totally.

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

                              That's a lot of updates over the years!

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

                                @scottalanmiller said in How can I check what Nextcloud user is active:

                                That's a lot of updates over the years!

                                Yup, one more to go now. as I just finished the upgrade 12.0.5

                                0_1520118851948_ac8829ce-93ef-4069-bfd4-19f111c28eb0-image.png

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

                                  and done..
                                  0_1520119627222_2b8ef5ed-0a11-4d20-a531-5d27e5ade130-image.png

                                  PHP 7later tonight..

                                  1 Reply Last reply Reply Quote 2
                                  • JaredBuschJ
                                    JaredBusch
                                    last edited by

                                    And PHP 7.1 set.

                                    0_1520132180823_269c60d3-b26b-468a-b1e7-3cd661fa636e-image.png

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

                                      0_1520132225149_2cb173ab-3f85-46b3-ac41-6844baca5aca-image.png

                                      dbeatoD 1 Reply Last reply Reply Quote 2
                                      • DanpD
                                        Danp
                                        last edited by

                                        Has the original issue reappeared?

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

                                          @danp said in How can I check what Nextcloud user is active:

                                          Has the original issue reappeared?

                                          Not yet.

                                          At least not yet while I have been checking.

                                          That transmit spike is offsite replication.
                                          0_1520182065725_3c35d1ce-1b29-44c8-8d4d-01b57f24842b-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • dbeatoD
                                            dbeato @JaredBusch
                                            last edited by

                                            @jaredbusch said in How can I check what Nextcloud user is active:

                                            0_1520132225149_2cb173ab-3f85-46b3-ac41-6844baca5aca-image.png

                                            Is this one of your largest deployments?

                                            JaredBuschJ 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post