Fedora 36: PHP Fatal error: Uncaught ncc\ThirdParty\Symfony\Filesystem\Exception\IOException #3
Labels
No labels
Bug
Cannot Resolve
Completed
Enhancement
Important
Question
Resolved
Security Issue
Suggestion
Todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Nosial/ncc#3
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug:
Install ncc as followed in ncc/docs/INSTALL.md
To Reproduce:
git clone ncc
make redist
Expected behavior:
Run successfully trough the installer.
System:
Additional Logs:
Warning: Your terminal may have some issues rendering the output of this installer
Running checksum
Checksum passed
Started NCC installer
NCC Version: 1.0.0 (master)
Build Flags: UNSTABLE
defuse/php-encryption Version: 2.3.1
Symfony/polyfill-ctype Version: 1.26.0
Symfony/polyfill-mbstring Version: 1.26.0
Symfony/Process Version: 6.1.3
Symfony/Uid Version: 6.1.3
Symfony/Filesystem Version: 6.1.3
Symfony/Yaml Version: 6.1.3
Installation Path (Default: /etc/ncc):
Data Path (Default: /var/ncc):
Note: This doesn't affect your current install of composer (if you have composer installed)
Do you want to install composer for NCC? (Recommended) (Y/N): y
Do you want install NCC? (Y/N): y
Installing composer for NCC
Running composer installer
All settings correct for using Composer
Downloading...
Composer (version 2.3.10) successfully installed to: /etc/ncc/composer.phar
Use it: php /etc/ncc/composer.phar
Installed composer successfully
Copying files to '/etc/ncc'
[ ======================================= ] 100% 237/237 remaining: 0 sec. elapsed: 1 sec.
Processing Credential Store
Creating shortcut
Registering extension
PHP Warning: file_put_contents(/usr/share/pear/ncc): Failed to open stream: No such file or directory in /home/hax/GitHub/ncc/build/src/INSTALL on line 604
PHP Fatal error: Uncaught ncc\ThirdParty\Symfony\Filesystem\Exception\IOException: Failed to chmod file "/usr/share/pear/ncc": chmod(): No such file or directory in /home/hax/GitHub/ncc/build/src/ThirdParty/Symfony/Filesystem/Filesystem.php:212
Stack trace:
#0 /home/hax/GitHub/ncc/build/src/INSTALL(605): ncc\ThirdParty\Symfony\Filesystem\Filesystem->chmod()
#1 {main}
thrown in /home/hax/GitHub/ncc/build/src/ThirdParty/Symfony/Filesystem/Filesystem.php on line 212
changed title from Fedora 36: PHP Fatal error: Uncaught {-Error: Call to undefined function posix_getuid()-} to Fedora 36: PHP Fatal error: Uncaught {+ncc\ThirdParty\Symfony\Filesystem\Exception\IOException+}
changed the description
Hello Hx, thanks for opening the issue,
A possible fix to this would be to modify the installer to check if the files were actually created before applying permissions to them
Will implement this when i get the chance.
Actually putting more than one autoloading shortcut in multiple include paths may run into issues itself.
A better fix would be to choose the most appropriate location for this.
assigned to @netkas