@ -146,12 +146,12 @@ To apply the change permanently depends on your host operating system:
- On any other platform look up in the documentation on how to pass kernel parameters.
- On any other platform look up in the documentation on how to pass kernel parameters.
### Permissions for elasticsearch
### Permissions for elasticsearch
If you see a message similar to `AccessDeniedException[/usr/share/elasticsearch/data/nodes]` when initially starting elasticsearch, that means the container is not allowed to write files to the volume.
If you see a message similar to `failed to obtain node locks, tried [/usr/share/elasticsearch/data]` and `maybe these locations are not writable` when initially starting elasticsearch, that probably means the container is not allowed to write files to the volume.
That's most likely the case when you run `docker-compose` as an unprivileged user. To fix that issue, shutdown the container and on your host machine run:
To fix that issue, shutdown the container and on your host machine run:
```
```
chown 1000:0 /path/to/mount/point
chown 1000:0 -R /path/to/mount/point
```
```
This will match the permissions with the **UID** and **GID** of elasticsearch within the container and should fix the issue.
This will match the permissions with the **UID** and **GID** of elasticsearch process within the container and should fix the issue.
### Disk usage
### Disk usage
The Elasticsearch index will turn to *read only* if the disk usage of the container goes above 95% until the usage drops below 90% again, you will see error messages like `disk usage exceeded flood-stage watermark`, [link](https://github.com/tubearchivist/tubearchivist#disk-usage).
The Elasticsearch index will turn to *read only* if the disk usage of the container goes above 95% until the usage drops below 90% again, you will see error messages like `disk usage exceeded flood-stage watermark`, [link](https://github.com/tubearchivist/tubearchivist#disk-usage).
API token will get automatically created, accessible on the settings page. Token needs to be passed as an authorization header with every request. Additionally session based authentication is enabled too: When you are logged into your TubeArchivist instance, you'll have access to the api in the browser for testing.
API token will get automatically created, accessible on the settings page. Token needs to be passed as an authorization header with every request. Additionally session based authentication is enabled too: When you are logged into your TubeArchivist instance, you'll have access to the api in the browser for testing.
The list views return a paginate object with the following keys:
The list views return a paginate object with the following keys:
- page_size: int current page size set in config
- page_size: *int* current page size set in config
- page_from: int first result idx
- page_from: *int* first result idx
- prev_pages: array of ints of previous pages, if available
- prev_pages: *array of ints* of previous pages, if available
- current_page: int current page from query
- current_page: *int* current page from query
- max_hits: reached: bool if max of 10k results is reached
- max_hits: *bool* if max of 10k results is reached
- last_page: int of last page link
- last_page: *int* of last page link
- next_pages: array of ints of next pages
- next_pages: *array of ints* of next pages
- total_hits: int total results
- total_hits: *int* total results
Pass page number as a query parameter: `page=2`. Defaults to *0*, `page=1` is redundant and falls back to *0*. If a page query doesn't return any results, you'll get `HTTP 404 Not Found`.
Pass page number as a query parameter: `page=2`. Defaults to *0*, `page=1` is redundant and falls back to *0*. If a page query doesn't return any results, you'll get `HTTP 404 Not Found`.
## Login View
Return token and user ID for username and password:
receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,// Use built in reciver app on cast device, see https://developers.google.com/cast/docs/styled_receiver if you want to be able to add a theme, splash screen or watermark. Has a $5 one time fee.
receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,// Use built in receiver app on cast device, see https://developers.google.com/cast/docs/styled_receiver if you want to be able to add a theme, splash screen or watermark. Has a $5 one time fee.