wintercms / web-installer

Web-based installer for Winter CMS
https://wintercms.com/
MIT License
30 stars 4 forks source link

Fresh installation fails at cleanup. #34

Closed qroft closed 8 months ago

qroft commented 8 months ago

SUMMARY I downloaded the latest WebInstaller from the Winter CMS Website, unpacked it and moved all files to my webhost. In the last installation step i get this:

Sorry, but an error has occurred while trying to install Winter CMS. DirectoryIterator::__construct(/mnt/xxxxxxx/htdocs/myfancysite/2024/.wintercms/.github): Failed to open directory: No such file or directory

Installed build and plugins Latest WinterCMS, fresh install.

Reproduce steps

  1. Visit www.wintercms.com
  2. Go to the download section at https://wintercms.com/install
  3. Click on "Download Web Installer"
  4. Unpack the download zip file.
  5. Upload all files to your webserver
  6. Visit www.myfancywebsite.com/installer.html and fill out all data until you hit the last button.
  7. Error appears

Actual beahviour As far as i can i guess, the created folders should be moved and removed.

INFO: At this point, my server stops the installation and i find in it a folder ".wintercms" and an "install.log" file. I downloaded the install.log file and at its end lines i find this:

[2024-03-23 17:04:52+01:00] NOTICE: Removing installation files
[2024-03-23 17:04:52+01:00] NOTICE: Removing temporary installation folders
[2024-03-23 17:05:00+01:00] NOTICE: Removing core development files
[2024-03-23 17:05:00+01:00] ERROR: DirectoryIterator::construct(/mnt/xxxxxxx/htdocs/myfancysite/2024/.wintercms/.github): Failed to open directory: No such file or directory {"exception":"[object] (UnexpectedValueException(code: 0): DirectoryIterator::construct(/mnt/xxxxxxx/htdocs/myfancysite/2024/.wintercms/.github): Failed to open directory: No such file or directory at /mnt/xxxxxxx/htdocs/myfancysite/2024/install/api/src/Api.php:1127)"} [2024-03-23 17:05:00+01:00] ERROR: DirectoryIterator::__construct(/mnt/xxxxxxx/htdocs/myfancysite/2024/.wintercms/.github): Failed to open directory: No such file or directory {"code":500,"exception":null}

What i am able to do then is this:

  1. move the whole content from the above mentioned ".wintercms" folder to my root.
  2. delete the ".wintercms" folder
  3. via php artisan start an install as my backend was missing
  4. Call my website frontend and backend and everything works.

ADDITIONAL INFO: i tried this with php 8.3, 8.2. and 8.1. on my shared webhost.

bennothommo commented 8 months ago

@qroft just checking, you're certain you have the latest Web Installer version? The most recent release of the Installer fixed that particular issue:

https://github.com/wintercms/web-installer/releases/tag/v1.2.4

qroft commented 8 months ago

Can confirm that it works now! While trying out the several PHP version there might be some kind of problem with my downloaded versions. Thanks a lot and sorry for the inconvenience.