Admin: Create site from archive zip fails
Description
Attachments
- 18 Dec 2021, 03:04 PM
- 18 Dec 2021, 03:04 PM
- 20 Feb 2021, 10:00 AM
Activity
Jacob Cira March 31, 2023 at 10:11 PM
Figured I’d provide an update that this fix has persisted, and that this test plan works in 23x and 24x.
Tested:
24x https://trunk-mysql.nightly.sakaiproject.org build 0e0552aa
23x https://qa23-maria.nightly.sakaiproject.org build 061e1639
22x https://qa22-mysql.nightly.sakaiproject.org build 77d4ed42
21x https://qa21-mysql.nightly.sakaiproject.org build fca175a0
Andrea Schmidt May 4, 2022 at 10:19 PM
Verified on 20x: https://qa20-mysql.nightly.sakaiproject.org/, build: 0219c268
heather.valli April 8, 2022 at 5:24 PM
OK, this time the archive was zipped and exported and I was able to create a new site with it using the test plan above. The announcement was turned into a draft, but that’s probably for the best and expected. The Lesson text and Resource came through exactly the same. (Mac/Chrome, https://qa21-mysql.nightly.sakaiproject.org/ )
heather.valli March 31, 2022 at 6:56 PM
I tried this (Mac/Chrome) for 21.x. I got the message that the site had been archived, but it was not on the list of archived sites when I looked for it. So I couldn’t download it to continue the test.
Ramana Reddy Battula March 30, 2022 at 10:19 PM
Tested on 21.3 server and new site is created as expected with text in lessons, a drafted announcement and a file in resources.
Server: https://qa21-mysql.nightly.sakaiproject.org/
Build: 71f8c685
Not sure if I have the components correct.
With a valid archive file (worked for https://sakaiproject.atlassian.net/browse/SAK-45063#icft=SAK-45063 Site Archive > Import), as an admin trying to create a new site from an archive zip fails. It may be the same issue SAK-45062, except for the admin there is a server error and for https://sakaiproject.atlassian.net/browse/SAK-45062#icft=SAK-45062 I did not see any server errors.
20-Feb-2021 10:49:44.588 ERROR [http-nio-20021-exec-45] org.sakaiproject.archive.impl.ArchiveService2Impl.mergeFromZip Error merging from zip: class java.io.IOException:Failed to create directory /var/sakai21-mysql/sakai/archive-unzip/a3f46593-0657-4800-bafd-605a9b953a8c-archive