-
Notifications
You must be signed in to change notification settings - Fork 6
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
Local files error? #7
Comments
@jeremy-schweitzer thanks for the report. If I had to hazard a guess, the plugin is getting a bad response from the web service. I need to add better troubleshooting; could you try adding this statement (or something similar) immediately after line 69 in
|
Hi all, |
Hola, ese error fue hace mucho, si recuerdo bien, es porque un moodle no puede verse con el otro, o acceder a la carpeta del otro. |
Hi, But this shouldn't be a problem if I call the backup function via web services with the right user (rights), should it? |
The backup is created in a directory outside of www, so you can not access it. |
In the WS query the username was provided by the client based on connected user ($USER). This could lead to inconsistency with token if the username does not match the WS account on the provider.
Steps to reproduceOn the provider
On the client
ExplanationClient send current user's username (foo) to the provider and try to use it to do the backup instead of wsaccount user. But this account may be inexistant or do not have required permission on the provider. FixSee PR #13 it remove username param to directly use |
When I add on the client the same username and I log in with that username: the error is gone. |
Exactly, username on client and provider must be equal. That's what #13 intend to fix. |
I've been testing this plugin because I think it's exactly what we need, but I'm running into an issue. I think it's a bug, but it's always possible user error. I just don't see an obvious problem.
I've setup the plugin on two sites and enabled it. I can search the remote site for courses, but when I click on a course title to import it. I've tested on 3.1, 3.2, and 3.3dev. I get the following exception on each version:
Unknown exception related to local files (Can not fetch file form URL)
More information about this error
Debug info:
Error code: storedfileproblem
Stack trace:
line 1371 of /lib/filestorage/file_storage.php: file_exception thrown
line 83 of /local/remote_backup_provider/index.php: call to file_storage->create_file_from_url()
Output buffer:
Notice: Undefined property: stdClass::$url in /var/www/html/moodle/local/remote_backup_provider/index.php on line 83
The text was updated successfully, but these errors were encountered: