Fedora 36: PHP Fatal error: Uncaught ncc\ThirdParty\Symfony\Filesystem\Exception\IOException #3

Closed
opened 2022-08-15 15:24:25 +00:00 by hx · 5 comments
hx commented 2022-08-15 15:24:25 +00:00 (Migrated from git-old.n64.cc)

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:

  • OS: Fedora 36
  • Terminal: Gnome Terminal, Terminator, Konsole
  • PHP Version: 8.1

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

**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:** - OS: Fedora 36 - Terminal: Gnome Terminal, Terminator, Konsole - PHP Version: 8.1 **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
hx commented 2022-08-15 15:30:51 +00:00 (Migrated from git-old.n64.cc)

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 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+}**
hx commented 2022-08-15 15:30:51 +00:00 (Migrated from git-old.n64.cc)

changed the description

changed the description
netkas commented 2022-08-15 17:20:05 +00:00 (Migrated from git-old.n64.cc)

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.

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.
netkas commented 2022-08-15 17:21:44 +00:00 (Migrated from git-old.n64.cc)

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.

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.
netkas (Migrated from git-old.n64.cc) closed this issue 2022-09-22 20:11:20 +00:00
netkas commented 2022-09-22 20:11:27 +00:00 (Migrated from git-old.n64.cc)

assigned to @netkas

assigned to @netkas
Sign in to join this conversation.
No description provided.