Cannot delete circle or remove user from a circle Error 302
Steps to reproduce
- Create a circle and add users to it
- Remove user from the circle or delete the whole circle, which seems to be processed correctly on the user interface
- Reload the contacts page and see that the circle appears again or the recently removed users are back as members or a circle respectively.
- After that I checked circles with
.occ
sudo -u www-data php /var/www/nextcloud/occ circles:check
Result:
### Checking loopback address.
. The loopback setting is mandatory and can be checked locally.
. The address you need to define here must be a reachable url of your Nextcloud from the hosting server itself.
. By default, the App will use the entry 'overwrite.cli.url' from 'config/config.php'.
* testing current address: http://example.com
- GET request on http://example.com/index.php/csrftoken: 302
- You do not have a valid loopback address setup right now.
Expected behaviour
circle shall be removed, if the removal operation hat been performed, or the users shall be removed from the circle respectively Actual behaviour
circle and user's membership are retained and are visible again with the next page refresh
Server Configuration
Operating system: Ubuntu 20.04
Web server: Apache
Database: MySQL 10.5.12
PHP version: 8.0.10
Nextcloud version: 22.1.1
Where did you install Nextcloud from: tar-ball from download page
@mariusimi Have you already found a solution for this?
I have the same problem, and i don't find a solution. Strangely enough, everything works on a newly set up Nextcloud.
I found the Error: https://githubmemory.com/repo/nextcloud/circles/issues/725
I had the same problem, but it was resolved after setting proper overwrite.cli.url.
Are you sure, that your server is running on http://example.com? Should it be rather https://example.com?
Where you will be redirected if you enter http://example.com/index.php/csrftoken e.g. in your browser?
@OttoHollmann can you write up instructions on how to set up proper overwrite.cli.url like you did here? https://github.com/nextcloud/circles/issues/813#issuecomment-1083651804
Just add following line into your config file:
'overwrite.cli.url' => 'https://example.com',
this address must be resolvable and reachable from machine where your nextcloud is running. Theoretically it could be even localhost, but I'm not sure how it works SSL certificate.
Also I suggest to check output of occ circles:check.
@OttoHollmann This isn't working for me.
My NextCloud is running as a container. Does that affect anything?
If I curl the endpoint, or hit it in the browser I get a correct token back.
But the container can't.
EDIT: changed it to http://localhost:80 and now it works
My loopback address was outdated, even though config/config.cfg already contained the updated one. After running occ circles:check as @OttoHollmann suggested in https://github.com/nextcloud/circles/issues/813#issuecomment-1138942183, I realized that (so thanks 🙇) and it asked me to update the value with the correct one!
* testing current address: http://my.old.address
- GET request on http://my.old.address/index.php/csrftoken: 302
- You do not have a valid loopback address setup right now.
Please write down a new loopback address to test: https://the.correct.address
* testing address: https://the.correct.address
- GET request on https://the.correct.address/index.php/csrftoken: 200
- POST request on https://the.correct.address/index.php/apps/circles/async/test-dummy-token/: 200
- Creating async FederatedEvent some-hash (took 2381ms)
- Waiting for async process to finish (5s)
- Checking status on FederatedEvent verify=17 manage=42
- Do you want to save https://the.correct.address as your loopback address ? (y/N) y
- Address https://the.correct.address is now used as loopback
hi, i'm happy to finally find some info on this issue 😅
reading this thread, i've changed 'overwrite.cli.url' => 'http://localhost',
to my URL //'overwrite.cli.url' => 'https://sub.domain.net,
but circles:check returns the same message:
### Checking loopback address.
. The loopback setting is mandatory and can be checked locally.
. The address you need to define here must be a reachable url of your Nextcloud from the hosting server itself.
. By default, the App will use the entry 'overwrite.cli.url' from 'config/config.php'.
* testing current address: https://sub.domain.net
- GET request on https://sub.domain.net/index.php/csrftoken: fail
- You do not have a valid loopback address setup right now.
Please write down a new loopback address to test: https://sub.domain.net
* testing address: https://sub.domain.net
- GET request on https://sub.domain.net/index.php/csrftoken: fail
although, when i enter the URL in my browser, i get a token, don't i? https://sub.domain.net/index.php/csrftoken {"token":"12345="}
I've checked /etc/hosts and trusted domains in config.php
I've just discovered that my URL is somehow related to 123.0.0.53 on my server. I've read about issues about it, but I don't understand them yet 😅
could you share your thoughts on our situation please? Circles and Collectives are giving us a real hard time ^^
Hello there, I also had a circle the members of which (a group that was created in the "Users" admin panel) I could delete, but not the remaining circle with myself (as the owner) as the last member. Finally I found the following solution (for my special(?) case):
- The circle was still used in the Collectives App, though I had deleted all collectives.
- I found a button on the lower left above the "collectives settings" button, that offered me to delete the circle previously connected to a by then deleted collective.
- After that, the circle was gone in the contact app as well.
Hopefully helpful for someone else too :)
@mariusimi Did the above resolve this for you? Marking this for closure but feel free to respond if still experiencing this.
I have the same issue and nothing of your suggestions help. The error message from occ circles:check is:
* testing current address: https://mydomain.de
- GET request on https://mydomain.deArraycsrftoken: fail
The check talks about of a 'Arraycsrftoken' . This is a little bit different from your messages
Hello there, I also had a circle the members of which (a group that was created in the "Users" admin panel) I could delete, but not the remaining circle with myself (as the owner) as the last member. Finally I found the following solution (for my special(?) case):
* The circle was still used in the Collectives App, though I had deleted all collectives. * I found a button on the lower left above the "collectives settings" button, that offered me to delete the circle previously connected to a by then deleted collective. * After that, the circle was gone in the contact app as well.Hopefully helpful for someone else too :)
This was, also in my case, the best solution Thanks for sharing!
Hi nidamanx, sorry but this is not what I want to do. I like to keep the circle and change only some members.
Hi @hdruppert If I will find the time, I will try to replicate your issue. It could be good to find and share a solution. Probably, the easiest could be to recreate the circle with the right members. But seems strange to me that it is not possible to edit a circle. That's the reason I would like to try
Here some hints/questions: is it a difference, if the circle was created automatically by creating a collective? what does at the occ command "circles:check" the message mean: Arraycsrftoken? why does the correct loopback address not work: "https://wohnprojekt-konstanzzwei.de"
Hi @hdruppert I did some tests
In my NC, Collectives are already installed
Option 1 if I create a collective, a circle is automatically created. I can add more members to the circles as usual. If I want to remove a member I had to remove it from collectives. From contacts does not work
Option 2 if I create a team/circle in contacts, I can remove the full team, but not only one member. This seems to me quite strange. Maybe I missed something.
So, up to now, at least for me, seems more useful to create a circle from collectives
Hi @nidamanx, to option 1, if i remove a member, I get the message "member removed" but nothing happens. The user is still there. to option 2, if I remove to whole team, the team disappear but if I refresh the page, the team is still there. and I see no log entries.
Hi @nidamanx, to option 1, if i remove a member, I get the message "member removed" but nothing happens. The user is still there. to option 2, if I remove to whole team, the team disappear but if I refresh the page, the team is still there. and I see no log entries.
Oh, that's bad I cannot try to help you because I cannot reproduce the error I will come back if I will have an idea not yet mentioned in this topic