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

Import from Pocket fails #2408

Closed
Suncatcher opened this issue Oct 9, 2016 · 3 comments
Closed

Import from Pocket fails #2408

Suncatcher opened this issue Oct 9, 2016 · 3 comments

Comments

@Suncatcher
Copy link

Suncatcher commented Oct 9, 2016

Issue details

Wallabag fails with Internal Server error when I try to import articles from Pocket

Environment

  • wallabag version: 2.1.1
  • Install type: via git clone
  • Last wallabag version that did not exhibit the issue (if applicable): none
  • php version: 5.6.26
  • OS: Amazon Linux
  • type of hosting: dedicated AWS EC2
  • which storage system you choose at install: SQLite

Steps to reproduce/test case

I am trying to import items via "Migrate from Pocket" menu located on Quick Start page. Pocket consumer key is valid and has "Retrieve" permission.
First time it failed to import any and threw this error, the second time it imported 420 items out of 500 and threw the error again.
The third time it duplicated (#2407) 100+ entries and threw the error third time.

2

Host at issue: http://52.57.95.146/ (default credentials)

@j0k3r
Copy link
Member

j0k3r commented Oct 9, 2016

This is because the import fetch content as soon as it import them.
That's why it took too long to handle the import (event for 500 articles).

The recommended way to go is to use async import (which comes in 2.1). This way, you won't have a time out.

An other option is to increase the maximum time exception of your PHP instance.

@j0k3r j0k3r closed this as completed Oct 9, 2016
@Suncatcher
Copy link
Author

When I try

 # for Pocket import
 bin/console wallabag:import:redis-worker -e=prod pocket -vv >> ./wallabag/var/logs/redis-pocket.log

it gives me ./wallabag/var/logs/redis-pocket.log: Permission denied, even when I run it via sudo.

When I try without logs

  bin/console wallabag:import:redis-worker -e=prod pocket -vv

it throws me

  [InvalidArgumentException]
  The directory "/var/www/html/wallabag/var/cache/prod/annotations is not writeable.

It works only under root. Maybe the guide should be updated.

@tcitworld
Copy link
Member

If the wallabag directory is not owned by your own user, you must prefix all commands with sudo -u www-data or whatever your webserver user is named.

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