Menu
  • HOME
  • TAGS

RepositoryException while restoring snapshot of Elastic Search in ubuntu machine

ubuntu,permissions,elasticsearch,repository,permission-denied

This is working for me. Please check it. Before Restore and Backup operation can be create a repository. 1. mkdir ~/backup 2. chmod 777 ~/backup 3.Create a repository (Repository is represent you path) curl -XPUT http://xx.xx.xx.xx:9200/_snapshot/es_snap -d '{ "type": "fs", "settings": { "location": "/home/user/backup" } Snapshot curl -XPUT "http://xx.xx.xx.xx:9200/_snapshot/en_snap/snapshot_1" -d...

Pyserial: weird permission denied

python,permission-denied,pyserial,tty

Continuously trying to open the port finally succeeds after a while actually. So hiding the errors makes it work for the moment: while(1): port = get_serial_port() if port: print('Will open port %s' % port) try: ser = serial.Serial(port, 9600) print(ser.readline()) except: pass This ofcourse is just a hack. The behaviour...

Google Api Client Php - mkdir():Permission denied

php,mkdir,google-api-php-client,permission-denied

solved the problem by replacing $this->path with storage_path()

403 Forbidden ONLY on javascript folder

web-services,file-permissions,server,permission-denied

I found the issue, and it's a known problem: Ubuntu BUG. The problem was that the folder's name was "javascript", and the fix was simply renaming my /javascript folder to /java-script (or anything OTHER than /javascript). Basically if you have the javascript-common package installed, it generates the following alias: Alias...

GhostScript on IIS6 causing Permission Denied error

vbscript,ghostscript,permission-denied,wscript

To solve this issue... Go to IIS Manager --> Local Computer -->Application Pools. Then, right click on DefaultAppPool then select Properties Under the Identity Tab, check how your system is running them An update evidently changed mine from "Configurable" so I can list what I want and set it to...

Node.js EACCES error when listening on http 80 port (permission denied) [duplicate]

javascript,node.js,http,express,permission-denied

FYI: You cannot run socket on ports < 1024 with normal user permission. You need to have root access for it. There are total 3 ways to solve the error:- 1. Give root access and run it (which is usual one) 2. Redirect to other port sudo iptables -t nat...

Jenkins Linux file access or group issue

linux,jenkins,file-permissions,permission-denied,master-slave

OK, the issue was someone added dbgroup user recently but it got added after the node was created/configured/started i.e. for node to read the new settings, it had to be restarted. That's why on the machine itself, everything was working fine at $ prompt but in Jenkins job, it was...

How do I resolve Django AllAuth - 'Connection aborted.', error(13, 'Permission denied') Error?

python,django,google-app-engine,permission-denied,django-allauth

After doing some research, it seems AppEngine's problems were related to my installed version of requests. I resolved this by pip uninstall requests (2.5.1), then pip install requests==2.3. Source...

How to change read write execute permission of a log file using logging module in Jython

logging,jython,permission-denied,ioerror,logfile

Found out the following solution: Use stat module on os.chmod to set permissions. The following code sets the permissions to RWX for User, Group and Others. The OR condition takes care of setting it for User, Group and Others individually. Code: LOG_FILENAME = str(propertyFile.getProperty("log_file_path")); logging.basicConfig(filename=LOG_FILENAME, level=logging.DEBUG); os.chmod(LOG_FILENAME, stat.S_IRWXU | stat.S_IRWXG...

How to access root packages through php?

php,shell,root,permission-denied

Added the following line in the /etc/sudoer file #Defaults requiretty //commented this line usergroup ALL=(ALL) ALL PHP code, shell_exec("cd /home/quotequadsco/public_html/pandoc_jats ;echo password | sudo -S command"); //added a password for sudo command to run as a root user. ...

move_uploaded_file gives “failed to open stream: Permission denied in /var/www/html”

php,apache,redhat,permission-denied

O_o wowow be quiet, no 777 !!! Others write no!! Protect your folder first with deny from all, require valid user... Or if your folder is public, understand how do it with no 777 perms: Show which user or group uses apache to run itself, in environment variables of apache...

Android Studio 1.2.2 - Gradle Build Permission Denied

android,osx,android-studio,gradle,permission-denied

I have managed to solve it. Just remove the .gradle directory rm -fr .gradle in /Users/YOUR_NAME/.gradle. Then, execute the android studio in root mode. ...

Permission denied error on CSV export Laravel

csv,laravel,laravel-4,permission-denied

Finally I found the problem. The file.csv is created inside the current working directory. Which is the root directory that don't have the write permission. To fix this permission I give write permission to the folder....

Android: EACCES Permission denied to save a file in the ringtones folder

java,android,stream,permission-denied,ringtone

Solved it. It appears that the uses-permission is case sensitive It should have been: I have no idea why it managed to save it on the emulator....

Permisssion denied while attaching apk file with GMail app android

android,gmail,android-contentprovider,permission-denied,android-permissions

When sharing files between applications, you should use a FileProvider as per the setting up file sharing training as this ensures that the receiving app can read the file without requiring any permissions. You'd declare a FileProvider in your manifest: <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.example.myapp.fileprovider" android:grantUriPermissions="true" android:exported="false"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/filepaths" />...

Is possible not allow user access the specify folder?

android,local-storage,file-permissions,permission-denied,android-permissions

You can store file in internal storage like this try { URL url = new URL(strUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoInput(true); conn.connect(); InputStream is = conn.getInputStream(); Bitmap bm = BitmapFactory.decodeStream(is); ContextWrapper cw = new ContextWrapper(getApplicationContext()); File directory = cw.getDir("imageDir", Context.MODE_PRIVATE); File file = new File(directory, System.currentTimeMillis() + ".png"); FileOutputStream...

Does EVERYTHING require sudo? Setting up an ubuntu machine

ubuntu,permissions,virtualenv,sudo,permission-denied

The ubuntu user does not have root permissions without sudo, no. This is the way ubuntu recommends it. As you've observed using sudo in a virtualenv does not work the way you'd expect it to. If you're creating a virtualenv somewhere that requires root access to modify, use su when...

shutil.move(scr, dst) gets me IOError: [Errno 13] Permission denied and 3 more errors

python,permission-denied,shutil

You're attempting to write files to the /home directory. You should not be doing that. Linux is a multiuser operating system. /home is where all of your users home directories live. Each user should have their own directory under /home. For example yours could be /home/Joao. Change the last parameter...

Wget WordPress Permission denied

wordpress,centos,permission-denied

Well it seems I needed to make the folder owner equal to the owner doing the wgetting. This does make sense. It was just that I initially thought that being part of the group apache would suffice. But the latter would require chmod 777 or at least 775 and that...

fopen() failed to open stream: Permission denied in

php,linux,apache,file-permissions,permission-denied

It was SELinux. It blocked all file changes, so I was able to read, but not write.

Asterisk Failed to execute '/usr/share/asterisk/agi-bin/call_handle.php': Permission denied

php,linux,asterisk,permission-denied,agi

I got answer myself: Set PHP Envirement in my php script and it will run by asterisk. I have set following in my php file at first line: #!/usr/bin/env php Reff: PHPAGI: Exec format error...

code blocks not compiling empty c file in linux lite

c,linux,gcc,codeblocks,permission-denied

It would be happen due to root access. run code-blocks as root user and try it would be work.

PHP unlink() Permission Denied

php,permission-denied

Server side issue. Full description of issue was not given. Now resolved.

Orchard 1.8 Getting 404 Not Found Error - Deployed via Web Matrix

orchardcms,webmatrix,permission-denied,file-not-found

Solved it myself. It seems I had to add full permissions to every single folder in Orchard Root (even Core, Config, bin etc...) not only the mentioned 4 ones. If you googled yourself and you stumble accross this try that out. I'm currently removing some of the permissions again step-by-step...

PHP Warning: mkdir(): Permission denied in Seperate filesystem

php,apache,permission-denied,user-permissions

Edit your apache -> conf -> httpd.conf file & change User and Group from daemon to your machine owner name. (in your case: a-linux-user) See if that works.

Cannot reconnect to serial port that was previously opened in the same TCL script

serial-port,tcl,expect,permission-denied,reconnect

The problem here stems from using proc to deal with a spawned connection. If a connection is spawned in a procedure (call it foo1), than another procedure (call if foo2) cannot immediately interact with it. For this to work, the spawn_id must be returned from foo1 and passed in as...

Android Studio Adb Transfer Protocol Error

android-studio,adb,permission-denied

Well, I solved it. The folder \data\local\tmp did not have full read write execute permissions. Once I did a quick chmod 777 on it Android Studio allowed the installation and run of the app. You can also do this procedure through a file explorer that has root capabilities.

FTP Client keeps getting denied permission to upload by Server

java,ftp,permission-denied,ftp-client,ftp-server

I ended up finding out what was missing. I just needed to add the following lines of code in the Server class. List<Authority> authorities = new ArrayList<Authority>(); authorities.add(new WritePermission()); user.setAuthorities(authorities); ...

How to allow perl cgi-bin script to run system commands?

apache,perl,permission-denied,cgi-bin

Ok, Found the problem and fixed. Steps I followed: apt-get install apache2-suexec-custom a2enmod suexec /etc/init.d/apache2 reload Then go to website apache config and added SuexecUserGroup asterisk asterisk in here asterisk is the use that I didn't have the permission to run commands. Then go to /etc/apache2/suexec/www-data and you will see...

Permission deined when attempting to copy file with ugo read permissions

linux,permission-denied,ext4

McAfee VSE for linux 1.9 is not officially supported for RHEL 6.5. dmesg shows: linuxshield module is older than RHEL 6.2 ... applying fixups The McAfee 'linuxshield' kernel module is causing this issue. Curiously, it cannot be unloaded with modprobe, because attempting to do so results in modprobe being unable...