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.6k 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.
    • wirestyle22W
      wirestyle22 @JaredBusch
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch
        last edited by

        Still going.

        I have a feeling I have a user with a corrupted client install constantly trying to upload changes.

        0_1519960724392_010cae58-6ea9-492b-960c-52c9287c30b9-image.png

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

          10.202.1.16 is my Nginx Proxy.

          But if I shutdown Nextcloud the traffic dies.

          1 Reply Last reply Reply Quote 0
          • momurdaM
            momurda
            last edited by

            The User Management UI only shows last login, doesnt really let you know who is currently active.
            You could probably cat or tail your apache or nextcloud logs on the NC server to find out who it is.

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

              Any useful information from Nextcloud logs?
              https://domain.local/settings/admin/logging

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

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

                Any useful information from Nextcloud logs?
                https://domain.local/settings/admin/logging

                Doesn't exist.. also.. fuck... I thought they were on NC 11

                0_1520009659868_75d12b0c-d484-42b8-9fc0-8545a0026a48-image.png

                black3dynamiteB scottalanmillerS 2 Replies Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite @JaredBusch
                  last edited by

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

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

                  Any useful information from Nextcloud logs?
                  https://domain.local/settings/admin/logging

                  Doesn't exist.. also.. fuck... I thought they were on NC 11

                  0_1520009659868_75d12b0c-d484-42b8-9fc0-8545a0026a48-image.png

                  My bad, I assumed it was Nextcloud 13.

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

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

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

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

                    Any useful information from Nextcloud logs?
                    https://domain.local/settings/admin/logging

                    Doesn't exist.. also.. fuck... I thought they were on NC 11

                    0_1520009659868_75d12b0c-d484-42b8-9fc0-8545a0026a48-image.png

                    My bad, I assumed it was Nextcloud 13.

                    I had no idea it was this old... Guess what I am doing this weekend.......

                    black3dynamiteB 1 Reply Last reply Reply Quote 1
                    • scottalanmillerS
                      scottalanmiller @JaredBusch
                      last edited by

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

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

                      Any useful information from Nextcloud logs?
                      https://domain.local/settings/admin/logging

                      Doesn't exist.. also.. fuck... I thought they were on NC 11

                      0_1520009659868_75d12b0c-d484-42b8-9fc0-8545a0026a48-image.png

                      Wow

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

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

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

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

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

                        Any useful information from Nextcloud logs?
                        https://domain.local/settings/admin/logging

                        Doesn't exist.. also.. fuck... I thought they were on NC 11

                        0_1520009659868_75d12b0c-d484-42b8-9fc0-8545a0026a48-image.png

                        My bad, I assumed it was Nextcloud 13.

                        I had no idea it was this old... Guess what I am doing this weekend.......

                        Is your client using the latest version of Nextcloud Desktop client?

                        JaredBuschJ 1 Reply Last reply Reply Quote 0
                        • momurdaM
                          momurda
                          last edited by momurda

                          on my nc 12 server
                          cat /var/log/apache2/access.log
                          shows me all the web requests as well as username making them
                          0_1520010663714_1d3e49af-5e89-44e1-b15c-8e145e4bd0ab-image.png
                          edit: debian 9 NC server

                          black3dynamiteB JaredBuschJ 2 Replies Last reply Reply Quote 2
                          • black3dynamiteB
                            black3dynamite @momurda
                            last edited by

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

                            on my nc 12 server
                            cat /var/log/apache2/access.log
                            shows me all the web requests as well as username making them
                            0_1520010663714_1d3e49af-5e89-44e1-b15c-8e145e4bd0ab-image.png

                            And for those who are using Fedora, the location is /var/log/httpd/access_log .

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

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

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

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

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

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

                              Any useful information from Nextcloud logs?
                              https://domain.local/settings/admin/logging

                              Doesn't exist.. also.. fuck... I thought they were on NC 11

                              0_1520009659868_75d12b0c-d484-42b8-9fc0-8545a0026a48-image.png

                              My bad, I assumed it was Nextcloud 13.

                              I had no idea it was this old... Guess what I am doing this weekend.......

                              Is your client using the latest version of Nextcloud Desktop client?

                              Mostly latest ownCloud client. Some few are on the Nextcloud client.

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

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

                                on my nc 12 server
                                cat /var/log/apache2/access.log
                                shows me all the web requests as well as username making them
                                0_1520010663714_1d3e49af-5e89-44e1-b15c-8e145e4bd0ab-image.png
                                edit: debian 9 NC server

                                Have you ever seriously tried to monitor the log file for a site with ~80 users all using the sync client? Chatty is an understatement.

                                1 Reply Last reply Reply Quote 1
                                • momurdaM
                                  momurda
                                  last edited by

                                  Yea i know, but at night when you posted the log probably was less active. Someone might want to make a NC feature request if there isnt one already.

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

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

                                    Yea i know, but at night when you posted the log probably was less active. Someone might want to make an NC feature request if there isnt one already.

                                    How can one tell if the user is accessing from desktop/mobile app, WebDAV or web browser in the access logs?

                                    momurdaM 1 Reply Last reply Reply Quote 1
                                    • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post