Comments (9)
Hi, I suspect this is due to a problem with the mounted config files. Please make sure the files ./data/remarkable-pocket
and the two others exist on the host before running docker compose.
I added a section to the readme to clarify this.
from remarkablepocket.
Hi, thanks for the tip. I figured out that I was missing an importent point: remarkable-pocket
and rmapi
are files, whereas rmapi-cache
is a directory (I thought it was all dir).
That said, I have another issue that make it crash right avec authorization:
Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nl.carosi.remarkablepocket.MetadataProvider':
Unsatisfied dependency expressed through constructor parameter 0;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'pocket' defined in nl.carosi.remarkablepocket.SyncApplication:
Bean instantiation via factory method failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [pl.codeset.pocket.Pocket]:
Factory method 'pocket' threw exception;
nested exception is java.lang.NullPointerException:
Cannot invoke "java.io.InputStream.read(byte[], int, int)" because "is" is null
from remarkablepocket.
I will need a bit more info to help you. Can you rerun with verbose enabled and paste the output?
from remarkablepocket.
Sorry for the delay. I just get this error with verbose on, a lot of times per seconds:
[2022-11-05 00:45:18] Created temporary storage directory: /tmp/16381811871600645528.
[2022-11-05 00:45:18] Created temporary working directory: /tmp/6750401861237256101.
[2022-11-05 00:45:18] ERROR
[2022-11-05 00:45:18] 2022/11/05 00:45:18 auth.go:73
[2022-11-05 00:45:18] Code has the wrong length, it should be 8
[2022-11-05 00:45:18] Enter one-time code (go to https://my.remarkable.com/device/desktop/connect)
The remarkable-pocket file looks kind of like this:
pocket.access.token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxx
from remarkablepocket.
I have found the problem: the program waits to stdin, which docker compose doesn't set up by default. It works with docker CLI because in your example, you use the -it
options
Because you use a webserver to handle the pocket connection, would it be possible to do the same for the reMarkable one-time password?
from remarkablepocket.
Thanks for debugging this one. I didn't consider the auth flow for docker-compose.
It seems something like dc up -d && docker attach $(docker-compose ps -q remarkable-pocket)
if you set stdin_open: true
in the docker-compose.yml
could work, but when exiting the process with Ctrl-C the container will actually stop so that's not ideal.
Wrt to your suggestion: the Pocket auth flow uses oath, making a browser a necessity. I'd rather not change the Remarkable auth flow to accommodate the docker-compose usecase.
I think the easiest solution is to use the docker run
command the first time in order to complete authentication. As this only needs to happen once, it shouldn't be too much effort, and I can explain this in the readme. Would that work for you?
from remarkablepocket.
Your solution should work for docker compose.
However, the constraint of having to copy and paste the code is breaking every tentative to automate the start-up.
If not with the webserver, maybe provide an alternative way with a environment variable? If it's set, no need to ask it via stdin :)
from remarkablepocket.
It's not possible to automate the Pocket oauth flow, regardless of how the Remarkable cloud code is provided. I don't see how providing the code through an env var would solve this.
What would you like to automate? The way I see it you authenticate once manually to create the config files, and then you can automate the start-up any way you like.
from remarkablepocket.
I'll close this as a solution now exists.
from remarkablepocket.
Related Issues (20)
- Archiving not working HOT 2
- Sync stopped working HOT 22
- Running into this HOT 2
- Please use PocketItem.getItemId() to reference Pocket articles. HOT 3
- Error occurred during sync: A valid access token is required to access the requested API endpoint HOT 2
- Error during sync: entry HOT 13
- Error when running command: HOT 13
- Error on M1 chip Macbook HOT 4
- README specifies use of 0.2.1 but 0.2.2 appears released HOT 1
- UnsatisfiedDependencyException: Cannot run program "/usr/local/bin/rmapi": error=2, No such file or directory HOT 10
- How to add the command-line arguments, e.g. interval en article limit HOT 2
- Error on start-up HOT 3
- failed to create a new device token HOT 2
- "Could not authenticate to Remarkable API" HOT 1
- Unread articles marked as read and deleted HOT 12
- Feature suggestion: sync more frequently when things are changing HOT 3
- Invalid article with code block HOT 2
- Add SSH tunnel instructions to README.md HOT 1
- Error occurred during sync: Bad request HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remarkablepocket.