Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Etherpad-lite integration crashes after working breafly #43

Open
KepaUrzelai opened this issue May 11, 2021 · 2 comments
Open

Etherpad-lite integration crashes after working breafly #43

KepaUrzelai opened this issue May 11, 2021 · 2 comments

Comments

@KepaUrzelai
Copy link

Hello,

I'm experiencing the following behaviour with the Etherpad-lite integration I configured for my Moodle:

After configuring the needed settings for the integration, it works as expected. Users with permissions can create new Etherpad activities and access to the resulting pads, but after few minutes (normally less than two hours) the result of creating a new module or accessing one previously created is a pad with the message: "You don't have permission to access this pad".
After that, I can't access the old pads through the Etherpad-lite service admin page either (using the adminpads2 plugin).

I use NGINX, and Etherpad-lite (1.8.6 v) is accessed via HTTPS, which results in a correct functioning of the service; with the following non-default settings:

"requireSession": true,

"editOnly": true,

"abiword": "/usr/bin/abiword",

"trustProxy": true,

"cookie": {
  "sameSite": "None"
 },

In Moodle (3.10 v) settings, using example data for the explanation, I set the Cookie Domain to .example.com as my etherpad runs on the domain etherpad.example.com and my Moodle site on moodle.example.com/<instance_name>.

Once the integration crashes, there are not visible errors, not in the etherpad service logs nor in the nginx logs.
The only weird thing is that in the nginx access log the first GET requests the /p/0 pad insted of the one with the name formed by: groupID$Padname for all instances.

Do you have any clue on where the error can be?

Thanks a lot.

Kepa

@KepaUrzelai KepaUrzelai changed the title Etherpad integration crashes after working breafly Etherpad-lite integration crashes after working breafly May 11, 2021
@grabs
Copy link
Collaborator

grabs commented May 12, 2021

@KepaUrzelai thank you for reporting this.
Once a etherpad instance is built in moodle a pad-id is created and stored in the database in _etherpadlite in the field "uri".
Could you do the following steps?

  1. Create a new etherpadlite instance
  2. If this is working have a look in the database table and check whether or not a record exists and a uri is set.
  3. Wait till the etherpad isn't working anymore like your description.
  4. Check the database table again whether or not the record exists and a uri is set.

Best regards
Andreas

@KepaUrzelai
Copy link
Author

KepaUrzelai commented May 17, 2021

Good morning @grabs, and thanks for your fast reply!

When the integration is working, a record is generated by every new Etherpad instance that I create (with the correct uri).

After, when the integration crashes, every new instance that I try to create is recorded in the database also, but with value "0" in the uri. The resulting pad shows the "You don't have permission to access this pad" message.

I have noticed that changing the following setting I don't get that error, but the resulting pad is always the same (id: 0):
"editOnly": false

I am very thankfull for your help.
Kepa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants