Hello,
I am finally trying to migrate from Pydio 8.2.5 (running on Debian/stretch) to Cells 2.2.12 (running on Docker on Debian/bullseye).
After hours of debugging I think I need help. I’ve ran out of ideas how to solve the problem.
In Step 3 (Pydio 8 Connection) of the Data Import I always get the error: “Cannot connect to https://mypydio8.example.com/api/v2/admin/workspaces”.
I’ve read: Migrate Pydio 8 to Cells | Pydio
I can confirm that I have done the following:
- Enabled
AllowEncodedSlashes On
in my Pydio 8 apache config - Created dedicated admin user for the import on Pydio 8
- Downloaded and installed the migration plugin on Pydio 8.
(See: Migrating from Pydio 8.2.5 -> Cells 2.0.5 - #2 by zayn)
In the Firefox Developer Tools Console I came across the following error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote source at https://mypydio8.example.com/api/v2/admin/workspaces. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote source at https://mypydio8.example.com/api/v2/admin/workspaces. (Reason: CORS request did not succeed).
Which lead me to play around with something like this in my Pydio 8 apache config:
Header always set Access-Control-Allow-Origin "https://pydio-cells.intern.example.com:8080"
Header always set Access-Control-Allow-Methods "GET, POST, PUT, OPTIONS"
Header always set Access-Control-Allow-Headers "Authorization, Content-Type, X-Requested-With"
Header always set Access-Control-Allow-Credentials "true"
(Please note, that there is a Cross-Origin resource sharing section in the Pydio 8 Main Options (Application Parameters → Application Core), but changing these settings somehow had no effect).
I found no documentation and/or hint in the forums about this. Is this really needed?
The Cross-Origin Request Blocked error vanished, but now I am stuck with the following error (in the Developer Console):
XHR GET https://mypydio8.example.com/api/v2/admin/workspaces [HTTP/1.1 401 Unauthorized 98ms]
Can you please help me on this? Thank you!