I am having a terrible time trying to locate the files that are populating a select drop down in the "Import All Products" dataflow profile in Magento. Inside of the "Run Profile" tab there is a Select Dropdown that contains all of the files I have ever uploaded. I want to remove these as I have already uploaded about 15 .csv files.
I have tried searching in PHPMyAdmin for the file name. Also have tried sudo locate import-20140320221637-1_export_all_products.csv and sudo grep "import-20140320221637-1_export_all_products.csv" /var/www/ but I come up with empty results. Where are these being stored at?
Check in your magento_root/var/import folder. This is where usually all the import csv files are stored.
Related
I am trying to copy an existing CSV file in a SQL table in pgAdmin4 1.5.
I am running the following query to copy the data from the CSV file:
COPY console_games FROM '/users/user1/Desktop/ConsoleGames.csv' DELIMITER ',' CSV HEADER;
And I get this result:
********** Error **********
ERROR: could not open file "/Users/user1/Desktop/ConsoleGames.csv" for reading: Permission denied
SQL state: 42501
I have changed the permissions of this file for all users to be read and write, but I still get the error.
I faced the same problem and here is how I solved
On Mac-
Open 'System Preferences'
Select 'Security and Privacy' option
Select 'Full Disk Access' from the list
Give access to PgAdmin AND postgres
Then, close and reopen your pgadmin
Use PgAdmin4's bulk-load features to import the CSV. This will do a COPY ... FROM STDIN behind the scenes. PgAdmin4 will access the file with your user's permissions, not those of the postgres server like a direct COPY from file will.
I solved this problem by creating a folder named Database in the PostgreSQL bin where I save all the data files that I want to work on. I use pgAdmin4 on both Mac and Windows. Whereas it is rather straightforward to find the bin on Windows, it is a bit tricky to find it on Mac because the Library where the bin is kept is hidden. Try to save your files on C:\ProgramFiles\PostgreSQL\10\bin\Database if you are using Windows and /Library/PostgreSQL/10/bin/Database/if you are using Mac. The Library can be found by pressing command+shift+g and type ~/Library on the go to folder. Your Mac will require your password to make changes in the Library. After saving your data files here, your code on pgAdmin4 should be like this:
COPY console_games FROM 'C:\ProgramFiles\PostgreSQL\10\bin\Database\ConsoleGames.csv' DELIMITER ',' CSV HEADER;
or
COPY console_games FROM '/Library/PostgreSQL/10/bin/Database/ConsoleGames.csv' DELIMITER ',' CSV HEADER;
On a Mac
Close PGAdmin
Open 'System Preferences'
Select 'Security and Privacy' option
Select 'Privacy'
Select 'Files and folders' from the list
Grant PgAdmin access for Documents-folder
Reopen PGAdmin
I am trying to remove the other html/xml elements for the page where you can restore or delete database. Does anyone know the location from the local files so i can edit the file?
C:\Program Files (x86)\Odoo 9.0-20161004\server\openerp\addons\web\views\database_manager.html
File path on local servers.
I am trying to update a module to a newer version. In the past I have manually uploaded each file carefully into the new directory and overwritten older files using FTP. However I wanted to use SSH to try and do this more easily and without any file permission problems.
I have:
Uploaded the .tgz file to the root folder (/http) on the server
Logged into the server via SSH
Changed the directory to the correct directory
Run the following command: tar -zxvf fishpig_splash.tgz
In the command line I was then given a list of all the files that had been extracted. However if I use FTP to go to any of these files I can see that they are still the older version and have not been overwritten.
I was expecting that the files would extract into the correct directories and overwrite any that already existed. I have tested the extraction by creating a temporary directory and extracting into that and everything worked fine.
Is there another part to this script I need to use to overwrite the files?
Thanks
Glynn
Sorry this was just me being stupid! When extracting the tar file there was a subfolder within it for the extension, I completely missed it. I just went down a level in the file and zipped up the contents only then extracted them at the root and everything worked fine. Thanks for the help though!
I want to import simple products by magmi, installed already and the csv created with one sample product, magmi can read it but not inserting it, the csv is the default but with media_gallery column i don't know what to check for plugins and what configuration should i use, the categories not created so i checked (On the fly category creator/importer v0.2.3) and (Image attributes processor v1.0.25), is there any way i can know more details about the reason the importing not working like a error log ? and simply how i can import via magmi ?
First of all, you can get most of the information on their website.
After that you can run magmi with the command from your magento root directory:
$ php magmi/magmi.cli.php -mode=xcreate -SKUF:matchfield=sku
All the configuration should be in /magmi/config. The logs you're gonna find in /magmi/state
That is the basic information you need to get started.
Magmi v0.7.15b installation with magento 1.9.1.0 and ubuntu package 14.04
Copy magmi to your root directory and unzip it as(http://website.com/magmi)
Give permission 705 or 777 to this directory (sudo chmod 705 -R /var/www/html/magmi)
Browse to http://website.com/magmi/web/magmi.php
configure Global parameters as
host localhost
port 3306
version of magento 1.9.x
DB name yourDB name
Username Yourusername & password
Current profile Default
Data sources
CSV Datasource v1.3.1
CSV import mode local
CSV base directory var/import
CSV header at line Array
and enter all option as per requirement and save profile
Restart apache2 sudo service apache2 restart
Refresh your magento admin panel
Could you explain me where the csv files are stored allready imported and how can I delete the old ones? I guess this will not affect the datebase.
Many thanks!
You can delete them via ssh. They are located under the var/imports folder. From the root of your magneto folder execute rm var/imports/*.csv