Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download does not work #64

Open
jbarth-ubhd opened this issue Jan 20, 2022 · 13 comments
Open

Download does not work #64

jbarth-ubhd opened this issue Jan 20, 2022 · 13 comments
Assignees

Comments

@jbarth-ubhd
Copy link

in docker logs I've found tons of zip warning: No such file or directory messages.

Additional messages found:

terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
  what():  boost::filesystem::directory_iterator::construct: : "/project-data/oobzyltllleiaojy/oobzyltllleiaojy_Montfaucon_montfaucon1719bd2_1_1719/project-d
ata/oobzyltllleiaojy/line-images/0000000060"
zip I/O error: 
zip error: Could not create output file (was replacing the original zip file)
/apps/startup.sh: line 18:    10 Aborted                 (core dumped) /usr/local/bin/pcwd $@
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
  what():  boost::filesystem::remove: Directory not empty: "/project-data/sfbywmafgfwfmuaf/sfbywmafgfwfmuaf__mitmusverb1930_2018/project-data/sfbywmafgfwfmuaf/line-images"
/apps/startup.sh: line 18:     9 Aborted                 (core dumped) /usr/local/bin/pcwd $@

2022/01/20 10:51:22 http: proxy error: EOF
2022/01/20 10:51:22 http: proxy error: dial tcp 172.18.0.5:80: connect: connection refused

2022-01-20 10:51:22 49 [Warning] Aborted connection 49 to db: 'pocoweb' user: 'pocoweb' host: '172.18.0.5' (Got an error reading communication packets)
@jbarth-ubhd
Copy link
Author

ok found .zip files.

Additional found .xml files with actual date, but uncorrected content, but corrected content in .xml in .zip?

@jbarth-ubhd
Copy link
Author

jbarth-ubhd commented Jan 20, 2022

(core dumped) ??

@jbarth-ubhd
Copy link
Author

jbarth-ubhd commented Feb 9, 2022

Ok now I have a book with "Download" button working, but the path is https://xyz.ub.uni-heidelberg.de/project-data/sfbywmafgfwfmuaf/sfbywmafgfwfmuaf__mitmusverb1930_2018.zip instead of https://xyz.ub.uni-heidelberg.de/pocoweb/project-data/sfbywmafgfwfmuaf/sfbywmafgfwfmuaf__mitmusverb1930_2018.zip .

Alias'd this in webserver-config, but shouldn't be the path below /pocoweb/ (or similar)?

@jbarth-ubhd
Copy link
Author

jbarth-ubhd commented Feb 9, 2022

PS: the ocr from the download that worked is Abbyy-XML:

<document xmlns="http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml" version="1.0" producer="ABBYY FineReader Engine 11" languages="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml">

@finkf
Copy link
Contributor

finkf commented Feb 9, 2022

The download endpoint returns a relative download location to the archive:

{
"archive":"project-data/coatxqdtqlfhauar/coatxqdtqlfhauar_Goethe_Die_Wahlverwandtaften_1814.zip"
}

From this the download should work IMHO. I will look into this.

@jbarth-ubhd
Copy link
Author

image

@jbarth-ubhd
Copy link
Author

jbarth-ubhd commented Feb 10, 2022

exception: basic_string::insert: __pos (which is 33) > this->size() (which is 20)

80195b10a74b pocoweb_pocoweb ===================================================
(2022-02-10 12:06:05) [INFO    ] Request: 172.18.0.9:45874 0x7f52acb2c070 HTTP/1.1 GET /api-version
(2022-02-10 12:06:05) [INFO    ] /api-version: 0.9.20
(2022-02-10 12:06:05) [INFO    ] (CrtpRoute) Response CODE: 200
(2022-02-10 12:06:05) [INFO    ] Response: 0x7f52acb2c070 /api-version 200 0
(2022-02-10 12:07:22) [INFO    ] Request: 172.18.0.9:45892 0x7f52acb2d600 HTTP/1.1 GET /books
(2022-02-10 12:07:22) [INFO    ] (BookRoute) GET packages for user: 2
(2022-02-10 12:07:22) [INFO    ] (CrtpRoute) Response CODE: 200
(2022-02-10 12:07:22) [INFO    ] Response: 0x7f52acb2d600 /books?auth=XXX&userid=2 200 0
(2022-02-10 12:07:30) [INFO    ] Request: 172.18.0.9:45908 0x7f52acb2eb50 HTTP/1.1 GET /books/6
(2022-02-10 12:07:30) [INFO    ] (BookRoute) GET package: 6
(2022-02-10 12:07:30) [INFO    ] (CrtpRoute) Response CODE: 200
(2022-02-10 12:07:30) [INFO    ] Response: 0x7f52acb2eb50 /books/6?auth=XXX 200 0
(2022-02-10 12:07:30) [INFO    ] Request: 172.18.0.9:45908 0x7f52acb2eb50 HTTP/1.1 GET /books/6/statistics
(2022-02-10 12:07:30) [INFO    ] (StatisticsRoute) GET statistics: 6
(2022-02-10 12:07:30) [INFO    ] Request: 172.18.0.9:45926 0x7f52acb2c0a0 HTTP/1.1 GET /books
(2022-02-10 12:07:30) [INFO    ] (BookRoute) GET packages for user: 2
(2022-02-10 12:07:30) [INFO    ] (CrtpRoute) Response CODE: 200
(2022-02-10 12:07:30) [INFO    ] Response: 0x7f52acb2c0a0 /books?auth=XXX&userid=2 200 0
(2022-02-10 12:07:40) [INFO    ] (CrtpRoute) Response CODE: 200
(2022-02-10 12:07:40) [INFO    ] Response: 0x7f52acb2eb50 /books/6/statistics?auth=XXX 200 0
(2022-02-10 12:07:45) [INFO    ] Request: 172.18.0.9:45942 0x7f52acb2d610 HTTP/1.1 GET /books/6/download
(2022-02-10 12:07:46) [ERROR   ] exception: basic_string::insert: __pos (which is 33) > this->size() (which is 20)
(2022-02-10 12:07:46) [INFO    ] Response: 0x7f52acb2d610 /books/6/download?auth=XXX 500 0

@jbarth-ubhd
Copy link
Author

commit b8a7eb9

@finkf
Copy link
Contributor

finkf commented Feb 11, 2022

I finally could reproduce your error. Commit 0091ae4 should fix it

@finkf finkf self-assigned this Feb 11, 2022
@jbarth-ubhd
Copy link
Author

Hmm... still the same problem:

(2022-02-18 12:22:36) [ERROR   ] exception: basic_string::insert: __pos (which i
s 33) > this->size() (which is 20)

...

2022-02-18 12:17:11 0 [ERROR] Incorrect definition of table mysql.event: expecte
d column 'definer' at position 3 to have type varchar(, found type char(141).   
2022-02-18 12:17:11 0 [ERROR] mariadbd: Event Scheduler: An error occurred when 
initializing system tables. Disabling the Event Scheduler. 

@novacellus
Copy link

novacellus commented Jun 21, 2022

The same error seems to affect the hOCR export functionality:

Request: xxx.xx.x.x:xxxxx 0x7f781e72c080 HTTP/1.1 GET /books/31/download
Assertion failed: pos < chars_.size() (rest/src/parser/HocrParserLine.cpp: insert: 120)

@jbarth-ubhd
Copy link
Author

We've done a lot of work in pocoweb and want to export it. @finkf , could you clairfy this?

@jbarth-ubhd
Copy link
Author

Dear @finkf,
I've updated everything (apparently it updated submodules only) on 2022-09-30.
Still the same problem — we can't download our projects, still the same error.

Could you please look for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants