arposandra icon indicating copy to clipboard operation
arposandra copied to clipboard

how can I fix this or teach me how to settimg.

Open TunglinInamin opened this issue 2 years ago • 37 comments

as title, my 80 port is used. and I don't know how to use docker-compose

where is put masterdata.db image

or give me full operate

TunglinInamin avatar Feb 04 '23 02:02 TunglinInamin

It is looking for database files in /usr/share/nginx/asplorer/external/astool_storage/jp. This is from the perspective of the docker container, which is probably not what you want.

I recommend resetting the path to its default of /external/astool_storage, and mapping a host directory to it using the compose file (https://github.com/summertriangle-dev/arposandra/blob/master/variants/config.staging.yml#L20)

The first path is the directory on the host (where you have a "jp" directory with databases in it). The second path is the directory in the container (which should be left as /external/astool_storage). The third part specifies that it should be read only.

summertriangle-dev avatar Feb 05 '23 20:02 summertriangle-dev

I change it default and show this: image it show my folder is ./jp and I put masterdata.db, it show can't opened again.

buy the why, I use this commend error: image

and masterdata.db encrypt version or not?

TunglinInamin avatar Feb 06 '23 01:02 TunglinInamin

it's can found but encode error image I think default is utf-8, but it can't run.

and use newest code show like this => ERROR [extension-builder 9/9] RUN (test -f /build/lib/setup.py && pip --no-cache-dir install --prefix=/install "./lib[async_pkg]")

TunglinInamin avatar Feb 11 '23 07:02 TunglinInamin

image

image

Service asset has neither an image nor a build context specified. At least one must be provided.

TunglinInamin avatar Apr 01 '23 13:04 TunglinInamin

Update to latest and comment out the failing Dockerfile line (26). It's not needed for the server but you won't be able to run maintenance tasks. Then pass all necessary compose files like so: docker-compose -f docker-compose.yml -f variants/config.dev.yml -f variants/config.postgres.yml ...

summertriangle-dev avatar Apr 01 '23 21:04 summertriangle-dev

Update to latest and comment out the failing Dockerfile line (26). It's not needed for the server but you won't be able to run maintenance tasks. Then pass all necessary compose files like so: docker-compose -f docker-compose.yml -f variants/config.dev.yml -f variants/config.postgres.yml ...

latest without variants/config.postgres.yml file, it's not need?

AND image

mkdir bin in maintenance image

imageand then?

TunglinInamin avatar Apr 02 '23 01:04 TunglinInamin

Both start.sh and maintenance/start.sh need to be chmod +x. None of the tools in the utils image will work for you so just don't run the utils container.

docker-compose ... up web asset db js-dev

summertriangle-dev avatar Apr 02 '23 10:04 summertriangle-dev

image

It's run, but I don't know what this error.

And I don't know about my port

TunglinInamin avatar Apr 02 '23 12:04 TunglinInamin

See my first comment for where to put database files: https://github.com/summertriangle-dev/arposandra/issues/30#issuecomment-1418257995 . Port mappings are defined in (for you) config.dev.yml, the default is 5000 for web and 5001 for asset.

summertriangle-dev avatar Apr 02 '23 20:04 summertriangle-dev

/> See my first comment for where to put database files: #30 (comment) . Port mappings are defined in (for you) config.dev.yml, the default is 5000 for web and 5001 for asset.

I have been put db files in /external/astool_storage/jp but it shows it's can open.

it's also show it read /external/astool_storage/jp/asset_i_ja.db image

image

image

TunglinInamin avatar Apr 03 '23 01:04 TunglinInamin

Where is masterdata.db on the host?

summertriangle-dev avatar Apr 03 '23 03:04 summertriangle-dev

Where is masterdata.db on the host?

I put it in /external/astool_storage/jp & /external/astool_storage

Is it need decrypt or encrypt one?

TunglinInamin avatar Apr 03 '23 03:04 TunglinInamin

Like I said in my first comment: https://github.com/summertriangle-dev/arposandra/issues/30#issuecomment-1418257995 , you need to map the host directory into the container by editing the entry in the volumes: section of the compose file.

volumes:
  - /somewhere_on_the_host:/external/astool_storage:ro

The first path is the directory on the host (where you have a "jp" directory with databases in it). The second path is the directory in the container (which should be left as /external/astool_storage). The third part specifies that it should be read only.

summertriangle-dev avatar Apr 03 '23 04:04 summertriangle-dev

Like I said in my first comment: #30 (comment) , you need to map the host directory into the container by editing the entry in the volumes: section of the compose file.

volumes:
  - /somewhere_on_the_host:/external/astool_storage:ro

The first path is the directory on the host (where you have a "jp" directory with databases in it). The second path is the directory in the container (which should be left as /external/astool_storage). The third part specifies that it should be read only.

which type volumes be added?

I added to asset/web/db still error. or add to compose like this: image

TunglinInamin avatar Apr 03 '23 04:04 TunglinInamin

229394843-1855d74b-db37-4a21-9374-21234e8542e2

It is erroring because /somewhere_on_the_host is an example path and not the real directory.

summertriangle-dev avatar Apr 03 '23 05:04 summertriangle-dev

229394843-1855d74b-db37-4a21-9374-21234e8542e2

It is erroring because /somewhere_on_the_host is an example path and not the real directory.

image

I try it, but it's error.

And I need change for db/asset/web?

config.dev.txt

TunglinInamin avatar Apr 03 '23 05:04 TunglinInamin

Remove /ja. The application will add it for you.

And I need change for db/asset/web?

Yes, but not for the db container.

summertriangle-dev avatar Apr 03 '23 05:04 summertriangle-dev

I think I need you help me edit something

asset still exit and has some error

config.dev.txt

TunglinInamin avatar Apr 03 '23 05:04 TunglinInamin

I will not write your config file for you. Post an error log and I'll tell you what to look at, though.

summertriangle-dev avatar Apr 03 '23 05:04 summertriangle-dev

I will not write your config file for you. Post an error log and I'll tell you what to look at, though.

image Now like this image image image

TunglinInamin avatar Apr 03 '23 05:04 TunglinInamin

Check whether the files in /external/astool_storage are world-readable. If not, do

chmod -R o+r /external/astool_storage
chmod o+x /external/astool_storage/jp

to fix it.

Also set the AS_EXTRA_DICTIONARIES and AS_EXTRA_REGIONS environment vars to empty strings, otherwise they will cause errors later.

summertriangle-dev avatar Apr 03 '23 05:04 summertriangle-dev

Check whether the files in /external/astool_storage are world-readable. If not, do

chmod -R o+r /external/astool_storage
chmod o+x /external/astool_storage/jp

to fix it.

Also set the AS_EXTRA_DICTIONARIES and AS_EXTRA_REGIONS environment vars to empty strings, otherwise they will cause errors later.

image image

it's just same.

And I think I also do en,zh,ko.

TunglinInamin avatar Apr 03 '23 06:04 TunglinInamin

What is the output of

stat /external
stat /external/astool_storage
stat /external/astool_storage/jp

?

If astool_store.json exists, remove it.

And I think I also do en,zh,ko.

This is currently not possible without an astool-managed data directory. You can try but it will cause errors, and I cannot help you fix them.

summertriangle-dev avatar Apr 03 '23 06:04 summertriangle-dev

What is the output of

stat /external
stat /external/astool_storage
stat /external/astool_storage/jp

?

If astool_store.json exists, remove it.

And I think I also do en,zh,ko.

This is currently not possible without an astool-managed data directory. You can try but it will cause errors, and I cannot help you fix them.

It's not exists.

TunglinInamin avatar Apr 03 '23 06:04 TunglinInamin

And the output of the stat commands?

summertriangle-dev avatar Apr 03 '23 09:04 summertriangle-dev

And the output of the stat commands?

image

TunglinInamin avatar Apr 03 '23 12:04 TunglinInamin

I change /external/astool_storage/jp/ to 777. It's running, but carddata/image is error. image

image image

And I have remove PostgreSQL 15, and install PostgreSQL 12, it said I have PostgreSQL 15 image

TunglinInamin avatar Apr 04 '23 06:04 TunglinInamin

You'll need to frankenstein together an astool-managed data directory to run the card indexer.

First set up your /external/astool_storage like this:

  • /external/
    • astool_storage/
      • jp/
        • masters/
          • 0000000000000000/
            • masterdata.db, etc.
        • cache/
          • All pkg* directories go here if you have them, otherwise leave empty. This will make images work if you have the files.

Then create /external/astool_storage/jp/astool_store.json with the content:

{"master_version": "0000000000000000",  "latest_complete_master": "0000000000000000"}

Then run the indexer:

docker-compose -f ... run --rm utils sh -c 'python3 mtrack/mtrack.py -X -x jp 0000000000000000'
docker-compose -f ... run --rm utils sh -c 'python3 mtrack/run_script.py -f mtrack/init-sets.sql'

If you're lucky that will fix the card pages.

summertriangle-dev avatar Apr 05 '23 02:04 summertriangle-dev

You'll need to frankenstein together an astool-managed data directory to run the card indexer.

First set up your /external/astool_storage like this:

  • /external/

    • astool_storage/

      • jp/

        • masters/

          • 0000000000000000/

            • masterdata.db, etc.
        • cache/

          • All pkg* directories go here if you have them, otherwise leave empty. This will make images work if you have the files.

Then create /external/astool_storage/jp/astool_store.json with the content:

{"master_version": "0000000000000000",  "latest_complete_master": "0000000000000000"}

Then run the indexer:

docker-compose -f ... run --rm utils sh -c 'python3 mtrack/mtrack.py -X -x jp 0000000000000000'
docker-compose -f ... run --rm utils sh -c 'python3 mtrack/run_script.py -f mtrack/init-sets.sql'

If you're lucky that will fix the card pages.

image

Use utils will error.

chmod +x start.sh is runed.

and what pkg directories, I only have pkg file.

TunglinInamin avatar Apr 05 '23 03:04 TunglinInamin

maintenance/start.sh also needs to be executable.

summertriangle-dev avatar Apr 05 '23 05:04 summertriangle-dev