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

Can't access federated share #9257

Closed
schiessle opened this issue Apr 20, 2018 · 3 comments
Closed

Can't access federated share #9257

schiessle opened this issue Apr 20, 2018 · 3 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage feature: federation

Comments

@schiessle
Copy link
Member

schiessle commented Apr 20, 2018

I just created a federated share with current master. Creating the share works successfully but if the recipient tries to open it I get this error message:

````{"reqId":"7dAHGLsXkNHT4BtIXTNH","level":3,"time":"2018-04-20T14:06:05+00:00","remoteAddr":"127.0.0.1","user":"admin1","app":"index","method":"GET","url":"/server/index.php/core/preview?fileId=169&c=169&x=32&y=32&forceIcon=0","message":{"Exception":"GuzzleHttp\Exception\ServerException","Message":"Server error: GET http:\/\/localhost\/server2\/public.php\/webdav\/ resulted in a `500 Internal Server Error` response","Code":500,"Trace":[{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":65,"function":"create","class":"GuzzleHttp\Exception\RequestException","type":"::","args":[{},"*** sensitive parameter replaced ---"]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/promises/src/Promise.php","line":203,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":["*** sensitive parameters replaced ---"]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/promises/src/Promise.php","line":156,"function":"callHandler","class":"GuzzleHttp\Promise\Promise","type":"::","args":[1,"*** sensitive parameter replaced ---",[{},{},null]]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":47,"function":"GuzzleHttp\Promise\{closure}","class":"GuzzleHttp\Promise\Promise","type":"::","args":["*** sensitive parameters replaced ---"]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/promises/src/Promise.php","line":246,"function":"run","class":"GuzzleHttp\Promise\TaskQueue","type":"->","args":[true]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/promises/src/Promise.php","line":223,"function":"invokeWaitFn","class":"GuzzleHttp\Promise\Promise","type":"->","args":[]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/promises/src/Promise.php","line":267,"function":"waitIfPending","class":"GuzzleHttp\Promise\Promise","type":"->","args":[]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/promises/src/Promise.php","line":225,"function":"invokeWaitList","class":"GuzzleHttp\Promise\Promise","type":"->","args":[]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\Promise\Promise","type":"->","args":[]},{"file":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/guzzle/src/Client.php","line":131,"function":"wait","class":"GuzzleHttp\Promise\Promise","type":"->","args":[]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Http/Client/Client.php","line":161,"function":"request","class":"GuzzleHttp\Client","type":"->","args":["get","http://localhost/server2/public.php/webdav/",{"auth":["IhnIDOG8BEmTOyJ",""],"stream":true,"verify":"/home/schiesbn/Repos/nextcloud/server/data/files_external/rootcerts.crt","synchronous":true}]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Files/Storage/DAV.php","line":344,"function":"get","class":"OC\Http\Client\Client","type":"->","args":["http://localhost/server2/public.php/webdav/",{"auth":["IhnIDOG8BEmTOyJ",""],"stream":true}]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Files/Storage/Wrapper/Wrapper.php","line":298,"function":"fopen","class":"OC\Files\Storage\DAV","type":"->","args":["","r"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Files/Storage/Wrapper/Availability.php","line":321,"function":"fopen","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":["","r"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Files/Storage/Wrapper/Wrapper.php","line":298,"function":"fopen","class":"OC\Files\Storage\Wrapper\Availability","type":"->","args":["","r"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Files/View.php","line":1143,"function":"fopen","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":["","r"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Files/View.php","line":985,"function":"basicOperation","class":"OC\Files\View","type":"->","args":["fopen","/files/welcome (2).txt",["read"],"r"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Preview/TXT.php","line":48,"function":"fopen","class":"OC\Files\View","type":"->","args":["/files/welcome (2).txt","r"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Preview/GeneratorHelper.php","line":54,"function":"getThumbnail","class":"OC\Preview\TXT","type":"->","args":["/files/welcome (2).txt",4096,4096,false,{}]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Preview/Generator.php","line":184,"function":"getThumbnail","class":"OC\Preview\GeneratorHelper","type":"->","args":[{},{},4096,4096]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Preview/Generator.php","line":112,"function":"getMaxPreview","class":"OC\Preview\Generator","type":"->","args":[{},{},"text/plain"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/PreviewManager.php","line":204,"function":"getPreview","class":"OC\Preview\Generator","type":"->","args":[{},32,32,true,"fill","text/plain"]},{"file":"/home/schiesbn/Repos/nextcloud/server/core/Controller/PreviewController.php","line":175,"function":"getPreview","class":"OC\PreviewManager","type":"->","args":[{},32,32,true,"fill"]},{"file":"/home/schiesbn/Repos/nextcloud/server/core/Controller/PreviewController.php","line":147,"function":"fetchPreview","class":"OC\Core\Controller\PreviewController","type":"->","args":[{},32,32,false,false,"fill"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/AppFramework/Http/Dispatcher.php","line":166,"function":"getPreviewByFileId","class":"OC\Core\Controller\PreviewController","type":"->","args":[169,32,32,false,false,"fill"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{},"getPreviewByFileId"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/AppFramework/App.php","line":118,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{},"getPreviewByFileId"]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Core\Controller\PreviewController","getPreviewByFileId",{},{"_route":"core.Preview.getPreviewByFileId"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"core.Preview.getPreviewByFileId"}]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{},{"_route":"core.Preview.getPreviewByFileId"}]},{"file":"/home/schiesbn/Repos/nextcloud/server/lib/base.php","line":982,"function":"match","class":"OC\Route\Router","type":"->","args":["/core/preview"]},{"file":"/home/schiesbn/Repos/nextcloud/server/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/schiesbn/Repos/nextcloud/server/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":113,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0","version":"14.0.0.2"}

@rullzer
Copy link
Member

rullzer commented Apr 23, 2018

Mmmm so.

  1. If the remote server returns a 500 we should handle it a bit more graceful I guess
  2. We need the other logfile to figure out why it threw the 500 ;)

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@jcklpe
Copy link

jcklpe commented Oct 30, 2018

@rullzer I'm having a similar problem though I can tell you why the other server returns a 500 in my case. It's because the other server has been decommissioned. Which seems to have been a common problem that has cropped up but there's no solution I can find aside from erasing it from the database:

#3766

Or maybe I'm misunderstanding the issue?

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Oct 30, 2018
@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@szaimen
Copy link
Contributor

szaimen commented May 21, 2021

I'm closing this issue due to inactivity. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

@szaimen szaimen closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage feature: federation
Projects
None yet
Development

No branches or pull requests

6 participants