I've been trying to get Akeneo CE up an running to give it a try. It's pretty much all functioning except I can't use the import feature. If I use the upload file box on the frontend I just get "File not found at path..." error. If I upload the file manually and specify path, I just get "Unable to read the file..." error.
Installed on WHM cPanel server.
I'm using the minimal DB to start from scratch.
I've checked all permissions and they seem right.
I can export fine.
I enabled the exec function as indicated by the sys reqs regarding import/export.
Anyone got an idea?
Related
I am attempting to import numerous posts (around 3,500) from a GoDaddy site to a Squarespace site, but keep encountering the following error message: "Import file appears to be incomplete. Please check the file and try again." I have tried both XML and SQL files. I have also verified the content in question still exists and is accessible through the post-specific URL. Is this an issue between the two hosts?
When creating a import-profile in Akeneo i.e. XLSX, and then trying to upload and import a file Akeneo shows the spinner for infinite time. When I use the inspector window i see that the POST request to /launch that is apparently part of the rest API ( baseURL /job-instance/rest/import/product_variant_import/launch ) is returning this 500 error preventing Akeneo from proceeding.
First i thought it might had something to do with upload permissions but uploading media works fine. Unfortunately because of the 500 error there is nothing in the apache logs.
I'm using the basic apache configuration that is suggested in the set-up guide ( https://docs.akeneo.com/3.1/install_pim/manual/system_requirements/manual_system_installation_debian9.html ) under Apache.
I can't find anything on this subject online (Akeneo import + 500 error), so hopefully any of you have suggestions on what might cause this.
Best,
Seb
You should check the log and to have more information. And know what is happening exactly. If you can't check it, try to use xdebug to debug akeneo and stop it here:
/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
Line 225:
private function handleException(\Exception $e, $request, $type)
And you will know what error you have.
EDIT:
We were talking via slack, and he sent me the error. He had problems due permissions
The error that he sent me:
“Impossible to create the root directory “/tmp/pim/file_storage/13_Product_variant_import_CSV”.
when I try to access phpmyadmin on localhost from MAMP I get an error.
It says
"Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
session_start(): open(SESSION_FILE, O_RDWR)) failed: No such file or directory (2)"
This is an error coming out of nowhere. Suddenly it has just stopped working. I can still access the database from other applications like Sequel Pro.
I have tried to search Google to see if other has experinced this error, but I cannot find anything helpful. Hope you can help .
Thanks in advance:)
The error message is reporting that the directory where PHP is trying to store sessions does not exist. This is defined in your PHP configuration by the session.save_path directive. Create the directory if necessary and ensure that it has proper permissions so that the webserver process can read and write to it.
I’m running CKAN 2.2 on Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64).
I have uploaded a dataset to the CKAN instance. It has been uploaded successfully and can be downloaded as well. But when I try to preview the database I end up with below error.
This resource can not be previewed at the moment.
When I click on the “Click here for more information”, It says
Could not load preview: DataProxy returned an error (Request Error:
Backend did not respond after 10 seconds)
How can I fix this error?
The problem is that the data proxy (which is used to transform csv to
something that the data preview can understand) is a server on the
internet. Consequently the files you want to preview have to publicly
accessible from the internet as well. localhost is your own computer
which means that the dataproxy cannot access it. To solve this, wither put the file in the datastore using the datastorer or put the file on a server and provide the correct url.
.
This happens because the data proxy which is used to transform the
data into something we can preview with recline needs the files to be
accessible from the internet. The best solution is to store the data
in the datastore and then the preview will work.
Extracted from here & here
Sometimes you get the same message as the title question:
This resource can not be previewed at the moment.
But when you click on the “Click here for more information”, It says:
Could not load preview: DataProxy returned an error (Data transformation failed. error: An error occured while connecting to the server: DNS lookup failed for URL: http:///dataset/c3ce226b-73bd-4b06-9d1b-ffea13d5f770/resource/580fb05f-6d86-4748-aac7-560b904a208f/download/foo.csv)
In this case, probably the datapusher plugin is not working. First follow the instructions for datapusher in CKAN manual. If you already did this or you installed CKAN from a package, check the CKAN configuration in production.ini (development.ini) file. A small check list to solve the problem:
add datapusher in "ckan.plugins"
set "ckan.site_url"
set "ckan.datapusher.url"
check Apache/nginx server logs (/var/log/apache2/datapusher.*.log, /var/log/apache2/ckan_default*.log)
In my case, the issue was in my development.ini (or production.ini for you maybe) file where the lines for DataPusher's configuration were commented out with a # in the start of the line. Also, the ckan storage config line was also commented.
I uncommented those lines and it was solved.
When creating a data source that pulls from any of my sections and pressing "create data source", I get the following error:
Forbidden
You don't have permission to access /symph-page/symphony/blueprints/datasources/new/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Strangely, if I pull from the system or provide custom xml, the data source is created fine and I don't get the previous message. Running symphony 2.3 on server that should be meeting the technical requirements. I have run Symphony before and never encountered this sort of issue.
It sounds like you need to change the workspace/data-sources directory file permissions so that the web server user can write files into it.
For example, on a Linux server (777 may not be necessary and depends on your webserver's configuration):
chmod 777 /symph-page/symphony/blueprints/datasources
If you access the server via FTP, your FTP client will probably let you do this.
Edit: Re-reading your question, I think I was mistaken in saying this is a workspace writing permissions issue. I don't recognise the "blueprints" directory path. Does this directory exist within your installation, and does your webserver have read permissions?
You might also want to make sure that you .htaccess file is present.