Can not create a new jhipster project - spring-boot

I created a new file and when I create a new jhipster project I got this error. How can I fix it?
error An unexpected error occurred: "EACCES: permission denied, mkdir '/home/chebbi/node_modules/#angular-cli'".
info If you think this is a bug, please open a bug report with the information provided in "/home/chebbi/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error jhipster
ERROR! yarn install failed.

It's look like a permission problem. You can try
sudo chmod -R 777 /home/chebbi/node_modules/

Related

Permission Denied when executing liquibase command in Jenkins

I'm getting this permission denied error when I'm trying to execute a liquibase command as a shell command.
/tmp/jenkins976.sh: line 3: /home/ec2-user/liquibase/liquibase: Permission denied
I've given the necessary permissions to the liquibase executable.
This worked fine with a previous version of jenkins and started getting this error after upgrading jenkins.
Current Jenkins version: 2.168
Appreciate any help to resolve this issue.

Failed to initialize central HHBC repository: Failed to initialize schema

The complete error is:
Failed to initialize central HHBC repository:
Failed to initialize schema in /home/shreeram/.hhvm.hhbc:
I am trying to configure hhvm ana apache2.
For that i am following this link how-to-setup-hhvm-on-ubuntu-14-04-server-with-apache-2-4-part-1/
In above link i am stuck in the step when i put this command in the terminal:
curl -sS https://getcomposer.org/installer | php
The result of that command is the error mentioned above.
The shreeram directory has both read and write permission.
Could anyone help me to understand what i am missing there?
Are you sure permissions are correct on /home/shreeram, and that /home/shreeram/.hhvm.hhbc is readable and writable by the user running php? This issue really does sound like a permissions problem.
As the same user that was running php, does touch /home/shreeram/.hhvm.hhbc work? What about echo > /home/shreeram/.hhvm.hhbc?
If that's all fine, try rm /home/shreeram/.hhvm.hhbc and then try to install Composer again. Although it's typically a permission error, there are cases when the repo can become corrupt (particularly if the enclosing directory is on NFS or some other network filesystem) and you can just remove it and start over.

Persistent Permission Denied Error

I have seen a few posts on this (and tried the recommended solutions) but they are regarding Laravel 4 - And I am on Laravel 5.
For example;
'Failed to open stream: Permission denied' error - Laravel
I get the Command "dump-autoload" is not defined error and the reason for that is explained here;
http://laravel.io/forum/12-08-2014-command-dump-autoload-is-not-defined
In the above post, composer dump-autoload was suggested. I tried it, and again this morning the same error is back;
ErrorException in Filesystem.php line
74:file_put_contents(/vagrant/source/laravel- excel/storage/
framework/sessions/8338f386fc3de7bdc8d1b6dc7ee6790f71516d98): failed
to open stream: Permission denied`
Any suggestions?
Also, try the above comments and do a
composer self update
You Have to set the permission to Read & Write
In Mac We do this by using
**sudo chmod -R o+w storage**
Storage is the name of file U want to change permission
And currently my terminal is in the same folder where my storage folder is present therefore I did not specify its address

Laravel and AWS Elastic Beanstalk - File Permissions

I've created a Laravel app and deployed it to an EC2 instance using Elastic Beanstalk. Everything seems to work except that PHP can't write to the storage directory so I get this error:
Error in exception handler: The stream or file "/var/app/current/site/app/storage/logs/laravel.log"
could not be opened: failed to open stream:
No such file or directory in /var/app/current/site/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:84
This looks like a permissions problem to me, so I've tried using the instructions at http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html to set the permissions.
I have one file 01permissions.config in the .ebextensions directory:
commands:
storage_permissions:
command: chmod -R 755 $EB_CONFIG_APP_ONDECK/site/app/storage
I get the following errors in server logs:
[ERROR] Command storage_permissions (chmod -R 755 $EB_CONFIG_APP_ONDECK/site/app/storage) failed
[DEBUG] Command storage_permissions output: chmod: cannot access ‘/site/app/storage’: No such file or directory
Any ideas what's going on here?
The issue was that I had ignored the logs directory so it wasn't on the server at all. It's not that the server couldn't write to it, it's that it didn't exist.
The default permissions for an instance created by Elastic Beanstalk are:
File 664
Dir 775
They are deployed and owned by the Apache user.
For anyone else with this problem... this would have worked:
container_commands:
01storage_permissions:
command: "chmod -fR 755 /var/app/ondeck/app/storage"

Oracle .oui Install Error

When I'm trying to install Oracle on Linux Redhat 5 I get the error of .oui at line 54 file permission denied.
I gave permission to the .runInstaller file up to 777 but that did not help me.
I created the dir like /u01/app/oracle
Check out the forum post below. It goes through a series of steps regarding permissions, prerequisites, and user level to resolve the error you are getting:
http://forums.oracle.com/forums/thread.jspa?threadID=1102139
The best solution is:
Copy oracle installation in /home/oracle/database with oracle user
Change mod for all structure under database folder
chmod -R 777 /home/oracle/ndatabase/
Call install script from database folder
sh ./runInstaller

Resources