Update from 3.9.6 to 3.9.8 - Cannot open LICENSE.txt for writing

This forum is for issues with installing Joomla! 3.x on IIS webservers.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
VMSystems
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Aug 20, 2019 5:03 am

Update from 3.9.6 to 3.9.8 - Cannot open LICENSE.txt for writing

Post by VMSystems » Tue Aug 20, 2019 5:47 am

I got this dropped in my lap and am totally new to Joomla.

I was able to install a plugin but not perform the update. The error "Error: Could not open (path)/LICENSE.txt for writing." stops in the beginning. The root directory has no such file.

I see the root directory has some restrictions on one user which MAY be the joomla account but I'm not sure due to lack of documentation. It IS the only non-admin user in the security tab. I don't want to just add modify and write permissions and risk opening up a huge security hole.

Thanks in advance for the feedback. This seems like a great forum.

Here is the post assistant output:
Forum Post Assistant (v1.4.9 (lambrusca) : 19th August 2019 wrote:
Last PHP Error(s) Reported :: wrote: in Unknown on line 0
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.9.6-Stable (Amani) 7-May-2019
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (444) | Owner: --protected-- . (uid: /gid: ) | Group: --protected-- (gid: ) | Valid For: 3.9
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: maximum | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.9.6: Yes | Database Supports J! 3.9.6: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Windows NT | OS Version: 6.3 | Technology: AMD64 | Web Server: Microsoft-IIS/8.5 | Encoding: gzip, deflate | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 4614.35 GiB |

PHP Configuration :: Version: 7.1.1 | PHP API: cgi-fcgi | Session Path Writable: Yes | Display Errors: | Error Reporting: 22527 | Log Errors To: C:\Windows\temp\PHP71x64_errors.log | Last Known Error: 19th August 2019 23:19:55. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 10M | Max. POST Size: 10M | Max. Input Time: 60 | Max. Execution Time: 300 | Memory Limit: 128M

Database Configuration :: Version: 5.7.18-log (Client:mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $) | Host: --protected-- (--protected--) | default Collation: utf8_general_ci (default Character Set: utf8) | Database Size: 12.31 MiB | #of Tables:  83
Detailed Environment :: wrote:PHP Extensions :: Core (7.1.1) | bcmath (7.1.1) | calendar (7.1.1) | ctype (7.1.1) | date (7.1.1) | filter (7.1.1) | hash (1.0) | iconv (7.1.1) | json (1.5.0) | mcrypt (7.1.1) | SPL (7.1.1) | pcre (7.1.1) | readline (7.1.1) | Reflection (7.1.1) | session (7.1.1) | standard (7.1.1) | mysqlnd (mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $) | tokenizer (7.1.1) | zip (1.13.5) | zlib (7.1.1) | libxml (7.1.1) | dom (20031129) | PDO (7.1.1) | openssl (7.1.1) | SimpleXML (7.1.1) | xml (7.1.1) | wddx (7.1.1) | xmlreader (7.1.1) | xmlwriter (7.1.1) | cgi-fcgi () | mysqli (7.1.1) | mbstring (7.1.1) | gd (7.1.1) | gettext (7.1.1) | curl (7.1.1) | exif (1.4 $Id: 8bdc0c8f27c2c9dd1f7551f1f9fe3ab57a06a4b1 $) | xmlrpc (7.1.1) | Phar (2.0.2) | soap (7.1.1) | pdo_mysql (7.1.1) | pdo_sqlite (7.1.1) | imap (7.1.1) | tidy (7.1.1) | wincache (2.0.0.8) | Zend Engine (3.1.0) |
Potential Missing Extensions ::

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: No | PHP SU: Yes | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (777) | components/ (777) | modules/ (777) | plugins/ (777) | language/ (777) | templates/ (777) | cache/ (777) | logs/ (---) | tmp/ (777) | administrator/components/ (777) | administrator/modules/ (777) | administrator/language/ (777) | administrator/templates/ (777) | administrator/logs/ (777) |

Elevated Permissions (First 10) :: administrator/ (777) | administrator/cache/ (777) | administrator/components/ (777) | administrator/components/com_actionlogs/ (777) | administrator/components/com_actionlogs/controllers/ (777) | administrator/components/com_actionlogs/helpers/ (777) | administrator/components/com_actionlogs/layouts/ (777) | administrator/components/com_actionlogs/libraries/ (777) | administrator/components/com_actionlogs/models/ (777) | administrator/components/com_actionlogs/models/fields/ (777) |
Database Information :: wrote:Database statistics :: Uptime: 1576247 | Threads: 1 | Questions: 1169551 | Slow queries: 0 | Opens: 3873 | Flush tables: 1 | Open tables: 1741 | Queries per second avg: 0.741 |
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party:: WF_AGGREGATOR_DAILYMOTION_TITLE (2.7.16) ? | WF_AGGREGATOR_VIMEO_TITLE (2.7.16) ? | WF_AGGREGATOR_[youtube]_TITLE (2.7.16) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.7.16) ? | WF_LINKS_JOOMLALINKS_TITLE (2.7.16) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.7.16) ? | WF_LINK_SEARCH_TITLE (2.7.16) ? | WF_ANCHOR_TITLE (2.7.16) ? | WF_ARTICLE_TITLE (2.7.16) ? | WF_AUTOSAVE_TITLE (2.7.16) ? | WF_BROWSER_TITLE (2.7.16) ? | WF_CHARMAP_TITLE (2.7.16) ? | WF_CLEANUP_TITLE (2.7.16) ? | WF_CLIPBOARD_TITLE (2.7.16) ? | WF_CONTEXTMENU_TITLE (2.7.16) ? | WF_DIRECTIONALITY_TITLE (2.7.16) ? | WF_EMOTIONS_TITLE (2.7.16) ? | WF_FONTCOLOR_TITLE (2.7.16) ? | WF_FONTSELECT_TITLE (2.7.16) ? | WF_FONTSIZESELECT_TITLE (2.7.16) ? | WF_FORMATSELECT_TITLE (2.7.16) ? | WF_FULLSCREEN_TITLE (2.7.16) ? | WF_HR_TITLE (2.7.16) ? | WF_IMGMANAGER_TITLE (2.7.16) ? | WF_INLINEPOPUPS_TITLE (2.7.13) ? | WF_KITCHENSINK_TITLE (2.7.16) ? | WF_LAYER_TITLE (2.7.16) ? | WF_LINK_TITLE (2.7.16) ? | WF_LISTS_TITLE (2.7.16) ? | WF_MEDIA_TITLE (2.7.16) ? | WF_NONBREAKING_TITLE (2.7.16) ? | WF_PREVIEW_TITLE (2.7.16) ? | WF_PRINT_TITLE (2.7.16) ? | WF_SEARCHREPLACE_TITLE (2.7.16) ? | WF_SOURCE_TITLE (2.7.16) ? | WF_SPELLCHECKER_TITLE (2.7.16) ? | WF_STYLE_TITLE (2.7.16) ? | WF_STYLESELECT_TITLE (2.7.16) ? | WF_TABLE_TITLE (2.7.16) ? | WF_TEXTCASE_TITLE (2.7.16) ? | WF_VISUALBLOCKS_TITLE (2.7.16) ? | WF_VISUALCHARS_TITLE (2.7.16) ? | WF_WORDCOUNT_TITLE (2.7.16) ? | WF_XHTMLXTRAS_TITLE (2.7.16) ? |

Components :: ADMIN ::
Core :: com_actionlogs (3.9.0) 0 | com_admin (3.0.0) 1 | com_ajax (3.2.0) 1 | com_associations (3.7.0) 1 | com_banners (3.0.0) 1 | com_cache (3.0.0) 1 | com_categories (3.0.0) 1 | com_checkin (3.0.0) 1 | com_config (3.0.0) 1 | com_content (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_cpanel (3.0.0) 1 | com_fields (3.7.0) 1 | com_finder (3.0.0) 1 | com_installer (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_languages (3.0.0) 1 | com_login (3.0.0) 1 | com_media (3.0.0) 1 | com_menus (3.0.0) 1 | com_messages (3.0.0) 1 | com_modules (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_plugins (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_privacy (3.9.0) 0 | com_redirect (3.0.0) 1 | com_search (3.0.0) 1 | com_tags (3.1.0) 1 | com_templates (3.0.0) 1 | com_users (3.0.0) 1 |
3rd Party:: Akeeba (6.6.0) 1 | COM_JCE (2.7.16) 1 |

Modules :: SITE ::
Core :: mod_articles_archive (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_search (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_tags_similar (3.1.0) 1 | mod_users_latest (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_wrapper (3.0.0) 1 |
3rd Party::

Modules :: ADMIN ::
Core :: mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_latestactions (3.9.0) 0 | mod_logged (3.0.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 0 | mod_quickicon (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_stats_admin (3.0.0) 1 | mod_status (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_title (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_version (3.0.0) 1 |
3rd Party::

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: PLG_ACTIONLOG_JOOMLA (3.9.0) 0 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_captcha_recaptcha (3.4.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_content_confirmconsent (3.9.0) 0 | plg_content_emailcloak (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_joomla (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_repeatable (3.9.0) 0 | plg_fields_sql (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_installer_webinstaller (2.0.1) 1 | plg_privacy_actionlogs (3.9.0) 0 | plg_privacy_consents (3.9.0) 0 | plg_privacy_content (3.9.0) 0 | plg_privacy_message (3.9.0) 0 | plg_privacy_user (3.9.0) 0 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_privacycheck (3.9.0) 0 | plg_search_categories (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_tags (3.0.0) 1 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 0 | plg_system_cache (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_logrotation (3.9.0) 0 | plg_system_p3p (3.0.0) 0 | plg_system_privacyconsent (3.9.0) 0 | plg_system_redirect (3.0.0) 0 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_sessiongc (3.8.6) 0 | plg_system_stats (3.5.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_twofactorauth_totp (3.2.0) 1 | plg_twofactorauth_yubikey (3.2.0) 1 | plg_user_contactcreator (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 | plg_user_terms (3.9.0) 0 |
3rd Party:: PLG_ACTIONLOG_AKEEBABACKUP (6.6.0) 0 | plg_content_jce (2.7.16) 1 | plg_editors_codemirror (5.40.0) 1 | plg_editors_jce (2.7.16) 1 | plg_editors_tinymce (4.5.9) 1 | plg_extension_jce (2.7.16) 1 | plg_fields_mediajce (2.7.16) 1 | plg_installer_jce (2.7.16) 1 | plg_quickicon_akeebabackup (6.6.0) 1 | plg_quickicon_jce (2.7.16) 1 | PLG_SYSTEM_AKEEBAUPDATECHECK (6.6.0) 0 | PLG_SYSTEM_BACKUPONUPDATE (6.6.0) 0 | plg_system_jce (2.7.16) 1 | plg_system_osmylicensesmanager (1.3.1) 1 | plg_system_ossystem (1.3.0) 1 |
Templates Discovered :: wrote:Templates :: SITE :: beez3 (3.1.0) 1 | protostar (1.0) 1 |
Templates :: ADMIN :: hathor (3.0.0) 1 | isis (1.0) 1 |
Last edited by imanickam on Thu Aug 22, 2019 1:57 pm, edited 1 time in total.
Reason: Moved topic » from Migrating and Upgrading to Joomla! 3.x to Joomla! 3.x on IIS webserver

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9747
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Update from 3.9.6 to 3.9.8 - Cannot open LICENSE.txt for writing

Post by AMurray » Thu Aug 22, 2019 9:38 am

It is clearly expecting the file to be there - maybe to overwrite, with a new (updated) copy for the Joomla update you're trying to do.....it's not an essential file, but you could try making a blank license.txt file in Windows Notepad, put it in the folder it should be and try the update again.

The file should be read/writable according to Windows file/folder settings, and the root folder should be read/writable.

If this was Linux we'd just advise the default settings 755 for folders, 644 for files. I'd assume you need to check the Windows OS server (IIS) for similar permissions settings to ensure they're readable and writable (both folder and files) as required. (I don't use Windows server so not familiar with it to make a informed answer and therefore this is only general advice), don't know anything beyond "ensure Joomla can read and write the file and the folder(s)."
I see the root directory has some restrictions on one user which MAY be the joomla account but I'm not sure due to lack of documentation. It IS the only non-admin user in the security tab. I don't want to just add modify and write permissions and risk opening up a huge security hole.
Not sure what "only non-admin user in the security tab" you're talking about here ??? The default settings for Joomla user levels out of the box are correctly set. The Super User doesn't usually have to have anything adjusted to perform either extension installation or joomla core updates. It sounds like this permission setting is at the server (IIS) level external to Joomla.
I was able to install a plugin but not perform the update. The error "Error: Could not open (path)/LICENSE.txt for writing." stops in the beginning. The root directory has no such file
By "not able to perform the update", assume you mean the Joomla update (to 3.9.11)
Suggest reviewing some of those PHP settings such as Max post size and Max file upload size; increase 10M to 64M.

Hoping I've addressed some issues of the question, but I'm sure others will pipe in with their answers. We all learn something from others contributions ;).
Regards - A Murray
General Support Moderator


Locked

Return to “Joomla! 3.x on IIS webserver”