Hi 卢志颖,
On Tue, Jul 23, 2019 at 09:00:22PM -0700, 卢志颖 wrote:
>I want to import some data into CATMAID, but I have encountered some
>problems.
>
>I used the Importer in Django front-end and my project.yaml is the
>following one.
>
>[image: 1.png]
This project.yaml file looks okay to me.
>And the following picture is my folder structure.
>
>[image: 2.png]
You seem to store your image tiles in a subfolder of your home
directory, make sure the webserver can actually access these files in
terms of read permissions for the webserver user (likely www-data). What
webserver are you using? If it is Nginx, make sure that every path from
root (/) to /home/catmaid/httpdocs/data/project1/stack1 has its
executable flag set. You can check this by running.
namei -l /home/catmaid/httpdocs/data/project1/stack1
If there is an "x" flag missing for the webserver-user, add it to the
respective folder using the chmod tool.
>But the importer had an error that it could not recognize the path.
>
>[image: 3.png]
The importer makes an HTTP request to the canary tile of the stack and
apparently isn't able to do that successfully. You should be able to
save the imported stack regardless and then try to fix the tile access
problem separately.
>Is there anything I've done wrong?
It doesn't look like it. Make sure the permissions are correct
>
>I've read about a previous email from someone who also had this problem.
>And I read about the *Tile Source Conventions* of CATMAID so I changed my
>folder structure like that.
>
>[image: 4.png] <about:invalid#zClosurez>
>
>[image: 2.png]
>
>
>Will this format be suitable for CATMAID? Do I have to use the script to
>tile my data , or I can just simply change the path like above?
Yes, this format should be suitable for CATMAID, assuming you have
already generated the tiles. You don't have to use any particular tiling
method (the scripts/tiles/ tools should work and so should TrakEM 2 or
others). What did you use to tile your image data?
In the picture you show, there is only a single tile available. Where
are the others?
>What's more, I use the developer tools in Chrome to see the URL and it
>looks like this.
>
>[image: 5.png]
>I don't know what's the problem about this URL.
The request looks correct, it is just that either the webserver can't
find/access the file or your webserver isn't running in the first place.
Like written above, I would first try to get your webserver server the
file correctly if you use th URL
http://localhost/data/project1/stack1/0_0_0.png
directly in your browser. To help more with respect to your webserver
configuration, please send your configuration of Nginx/Apache/etc.
along.
Best,
Tom