I have one folder in amazon s3 on which i restricted the permission of deleting any folder. But, now what happened is i am not able create any folder using hive script. This hive query create one temporary folder under the name of _tmp.customerlevel. Which it tries to delete once it finishes the map reduce job. But, due to restriction of delete hive query gets failed. Can anyone tell me the workaround for this so that i can maintain the delete protected permission as well as i can write the data using hive script?
Insert overwrite directory 's3://logs/customerlevel' select * from customer;
REST.DELETE.OBJECT logs/_tmp.customer "DELETE /logs%2F_tmp.customerlevel HTTP/1.1" 403 AccessDenied
you could try to create the temp folder into another bucket to which your user have access to remove.
Related
I followed the steps in this tutorial to duplicate a cPanel account containing our live Magento 2 site. I had to do this to retroactively create a staging site, as it would take months to set up a copy of our production site.
Tutorial: https://bobcares.com/blog/cpanel-duplicate-account/
This process involved renaming the cPanel account which changed the database name and usernames, it changed the directory name, and I assume it changed the name in tons of other places as well. However somewhere I believe it forgot to change the username from the old ABC username, to the new ABCSTAGING username, and so it is still trying to access files from within our production account, which of course results in a permission denied error.
The solution would be to find what is causing this, instead of actually giving it permission, as of course we don't want the staging site to do anything with our production site.
Here's the full exception code:
Warning: SessionHandler::read(): open(/home/abc/tmp/sess_n8ii2c5ek61s7icaogcjckl087, O_RDWR) failed: Permission denied (13) in /home/abcstaging/public_html/vendor/magento/framework/Session/SaveHandler/Native.php on line 22
Any advice or help will be greatly appreciated.
I have successfully generated a temporary link in laravel which works correctly locally but when I try to generate a link via Storage::temporaryUrl for the production environment, it does not work. The error message is this "This driver does not support creating temporary URLs."
The link works only with Storage::URL, but when I try to access it I get an Access Denied because it does not have a temporary key.
I was wondering if there is a way to generate a temporary URL for the link with temporary key.
I am using laravel 5.5 and my API URL is http://127.0.0.1:8000/api/getService/ for GET method.
what will be the URL if I put my files on the server in folder role.
I am trying this URL http://xx.xxx.xx.xxx/role/api/public/api/roles/ but getting the 404 error
Your files are only public accessible if they are in the public folder. Everything else, unless you set it chmod 777 (don't.) you won't be able to reach it.
My advice would be: write a function that returns your files and keep your files in your storage directory.
Otherwise, if you want to access the folder images in your public folder for example, you can access it by going to http://127.0.0.1:8000/images/
I have an apex application which will upload .CSV file
I have 2 users both having same db access rights
One user able to upload .CSV file where second user is getting no data found error.
I m trying with same data .CSV file.
Any thoughts ?
-M Kani
Resolution: removing users uploaded file from www_flow_file_objects$
Issue: user uploaded csv files with incorrect data's. this caused the issue. So removed those csv file data and it worked
Example incorrect data: REF# etc.
The DB password was recently change for a website I'm working on (for reasons I won't get into). As such, Joomla is no longer able to connect to the DB, prompting the error message: Database connection error (2): Could not connect to MySQL.
Fortunately, I do know that I need to simply update the password in the configuration.php file to use the new password, but all of my attempts at making the change have failed. For security reasons I'm sure, I am completely unable to upload my modified configuration.php file. Normally I'd be happy to hear that the configuration file can't be modified, but in this one instance I need to modify it.
How would I go about modifying the file?
You options would be:
Upload new configuration.php via FTP file with new DB password value, however as you mentioned, you're unable to upload it.
Login to your hosting control panel and upload the configuration.php file via the built-in File Manager
Login to and change the password back to it's original value
Get in contact with your hosting provider and find out as to why you're unable to upload the config file.
One of the above options should work, however if all else fails, your last resort will be to contact the person who changed the DB password and ask them to change it back.
Being unable to upload / modify the configuration file, smells like a permissions issue. Maybe the file has permissions set to 444. Many FTP clients allow manipulation of the file permissions. You can set them to 644 for the config. file and then save it. If you can't do this through the FTP client, then try it within the cPanel.