Das Ausführen des Befehls php bin/console assets:install --symlink
macht nichts. Um klar zu sein: die folder /bundle
s ist erstellt, aber es ist leer.Symfony 3 - Asset: Installation - Permission error
Mit der ausführlichen, bekomme ich diese:
Trying to install assets as absolute symbolic links.
13:54:13 DEBUG [php] Warning: unlink(web/bundles/main): No such file or directory
[
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext {
+count: 1,
-severity: E_WARNING,
trace: {
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:178: {
: },
: } elseif ([email protected]($file) && file_exists($file)) {,
: $error = error_get_last();
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand.php:133: {
: try {,
: $this->filesystem->remove($targetDir);,
:
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:887: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:223: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {
},
***\Symfony\bin\console:28: {
: $application = new Application($kernel);,
: $application->run($input);,
:
}
}
}
]
[]
13:54:13 DEBUG [php] Warning: unlink(web/bundles/coresphereconsole): No such file or directory
[
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext {
+count: 1,
-severity: E_WARNING,
trace: {
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:178: {
: },
: } elseif ([email protected]($file) && file_exists($file)) {,
: $error = error_get_last();
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand.php:133: {
: try {,
: $this->filesystem->remove($targetDir);,
:
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:887: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:223: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {
},
***\Symfony\bin\console:28: {
: $application = new Application($kernel);,
: $application->run($input);,
:
}
}
}
]
[]
13:54:13 DEBUG [php] Warning: unlink(web/bundles\coresphereconsole): Permission denied
[
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext {
+count: 1,
-severity: E_WARNING,
trace: {
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:167: {
: // See https://bugs.php.net/52176,
: if ([email protected](unlink($file) || '\\' !== DIRECTORY_SEPARATOR || rmdir($file)) && file_exists($file)) {,
: $error = error_get_last();
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand.php:161: {
: if (!in_array($dir, $validAssetDirs)) {,
: $this->filesystem->remove($dir);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:887: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:223: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {
},
***\Symfony\bin\console:28: {
: $application = new Application($kernel);,
: $application->run($input);,
:
}
}
}
]
[]
13:54:13 DEBUG [php] Warning: unlink(web/bundles\main): Permission denied
[
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext {
+count: 1,
-severity: E_WARNING,
trace: {
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:167: {
: // See https://bugs.php.net/52176,
: if ([email protected](unlink($file) || '\\' !== DIRECTORY_SEPARATOR || rmdir($file)) && file_exists($file)) {,
: $error = error_get_last();
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand.php:161: {
: if (!in_array($dir, $validAssetDirs)) {,
: $this->filesystem->remove($dir);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:887: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:223: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {
},
***\Symfony\bin\console:28: {
: $application = new Application($kernel);,
: $application->run($input);,
:
}
}
}
]
[]
---- ---------------------------------- ------------------
Bundle Method/Error
---- ---------------------------------- ------------------
OK MainBundle absolute symlink
-> web/bundles/main
OK CoreSphereConsoleBundle absolute symlink
-> web/bundles/coresphereconsole
---- ---------------------------------- ------------------
[OK] All assets were successfully installed.
startete ich die Konsole als Administrator, reinigte den Cache ... Es ist wirklich seltsam.
Ich benutze Windows.
Ich denke dabei php composer.phar update
brach etwas, weil es symfony 3.3.2
-3.3.3
und installiert twig/extensions
aktualisiert hat.
Es funktionierte vor, dass ...
Danke für die Hilfe!
wenn Sie tun einen Komponisten Update, es ist normal, bezogen zu sein, dass es die symfony-Version ändern ... –
Ja Es ist kein Problem für mich, das Problem ist, dass ich seit diesem Update, kann ich nicht installieren mein Asset ... Ich weiß nicht, ob es verwandt ist oder nicht, nur geben Sie alles, was ich weiß :) –