jonaswinkler / paperless-ng

A supercharged version of paperless: scan, index and archive all your physical documents
https://paperless-ng.readthedocs.io/en/latest/
GNU General Public License v3.0
5.37k stars 356 forks source link

[BUG] install-paperless-ng.sh fails #946

Open loyoan1 opened 3 years ago

loyoan1 commented 3 years ago

Describe the bug I tried to run the install script but it throws an error. I get following error:

Installing paperless...

--2021-04-23 10:27:45--  https://raw.githubusercontent.com/jonaswinkler/paperless-ng/master/docker/compose/docker-compose.sqlite.yml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1736 (1.7K) [text/plain]
Saving to: ‘docker-compose.yml’

docker-compose.yml                                   100%[=====================================================================================================================>]   1.70K  --.-KB/s    in 0s      

2021-04-23 10:27:46 (7.59 MB/s) - ‘docker-compose.yml’ saved [1736/1736]

--2021-04-23 10:27:46--  https://raw.githubusercontent.com/jonaswinkler/paperless-ng/master/docker/compose/.env
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30 [text/plain]
Saving to: ‘.env’

.env                                                 100%[=====================================================================================================================>]      30  --.-KB/s    in 0s      

2021-04-23 10:27:46 (1.24 MB/s) - ‘.env’ saved [30/30]

tr: Illegal byte sequence
sed: 1: "docker-compose.yml": extra characters at the end of d command

To Reproduce Steps to reproduce the behavior:

  1. Run install-paperless-ng.sh

Expected behavior Creating a functioning docker-compose.yml file.

Relevant information

cschulte commented 3 years ago

+1

I had exactly the same issue. Same setup, but Mac OS Catalina 10.15.7

jonaswinkler commented 3 years ago

Intersting. I've only tested this on Linux. What input parameters did you specify for the options?

loyoan1 commented 3 years ago

Here is my installation input.

I just noticed that the script throws an error in the first line: ./install-paperless-ng.sh: line 76: timedatectl: command not found

Maybe that's the reason.

./install-paperless-ng.sh: line 76: timedatectl: command not found

############################################
###   Paperless-ng docker installation   ###
############################################

This script will download, configure and start paperless-ng.

1. Folder configuration
=======================

The target folder is used to store the configuration files of 
paperless. You can move this folder around after installing paperless.
You will need this folder whenever you want to start, stop, update or 
maintain your paperless instance.

Target folder [/Users/xxx/paperless-ng-code/paperless-ng]: 

The consume folder is where paperles will search for new documents.
Point this to a folder where your scanner is able to put your scanned
documents.

CAUTION: You must specify an absolute path starting with / or a relative 
path starting with ./ here. Examples:
  /mnt/consume
  ./consume

Consume folder [/Users/xxx/paperless-ng-code/paperless-ng/consume]: 

The media folder is where paperless stores your documents.
Leave empty and docker will manage this folder for you.
Docker usually stores managed folders in /var/lib/docker/volumes.

CAUTION: If specified, you must specify an absolute path starting with /
or a relative path starting with ./ here.

Media folder []: 

The data folder is where paperless stores other data, such as your
SQLite database (if used), the search index and other data.
As with the media folder, leave empty to have this managed by docker.

CAUTION: If specified, you must specify an absolute path starting with /
or a relative path starting with ./ here.

Data folder []: 

2. Application configuration
============================

The port on which the paperless webserver will listen for incoming
connections.

Port [8000]: 

Paperless requires you to configure the current time zone correctly.
Otherwise, the dates of your documents may appear off by one day,
depending on where you are on earth.

Current time zone []: 

Database backend: PostgreSQL and SQLite are available. Use PostgreSQL
if unsure. If you're running on a low-power device such as Raspberry
Pi, use SQLite to save resources.

Database backend (postgres sqlite) [postgres]: sqlite

Paperless is able to use Apache Tika to support Office documents such as
Word, Excel, Powerpoint, and Libreoffice equivalents. This feature
requires more resources due to the required services.

Enable Apache Tika? (yes no) [no]: 

Specify the default language that most of your documents are written in.
Use ISO 639-2, (T) variant language codes: 
https://www.loc.gov/standards/iso639-2/php/code_list.php
Common values: eng (English) deu (German) nld (Dutch) fra (French)

OCR language [eng]: 

Specify the user id and group id you wish to run paperless as.
Paperless will also change ownership on the data, media and consume
folder to the specified values, so it's a good idea to supply the user id
and group id of your unix user account.
If unsure, leave default.

User ID [501]: 
Group ID [20]: 

3. Login credentials
====================

Specify initial login credentials. You can change these later.
A mail address is required, however it is not used in paperless. You don't
need to provide an actual mail address.

Paperless username [xxx]: 
Paperless password: 
Password cannot be empty.
Paperless password: 
Paperless password (again): 
Email [xxx@localhost]: 

Summary
=======

Target folder: /Users/xxx/paperless-ng-code/paperless-ng
Consume folder: /Users/xxx/paperless-ng-code/paperless-ng/consume
Media folder: Managed by docker
Data folder: Managed by docker

Port: 8000
Database: sqlite
Tika enabled: no
OCR language: eng
User id: 501
Group id: 20

Paperless username: xxx
Paperless email: xxx@localhost

Press any key to install.

Installing paperless...

--2021-04-23 16:38:34--  https://raw.githubusercontent.com/jonaswinkler/paperless-ng/master/docker/compose/docker-compose.sqlite.yml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1736 (1,7K) [text/plain]
Saving to: ‘docker-compose.yml’

docker-compose.yml  100%[===================>]   1,70K  --.-KB/s    in 0s      

2021-04-23 16:38:35 (6,79 MB/s) - ‘docker-compose.yml’ saved [1736/1736]

--2021-04-23 16:38:35--  https://raw.githubusercontent.com/jonaswinkler/paperless-ng/master/docker/compose/.env
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30 [text/plain]
Saving to: ‘.env’

.env                100%[===================>]      30  --.-KB/s    in 0s      

2021-04-23 16:38:35 (2,20 MB/s) - ‘.env’ saved [30/30]

tr: Illegal byte sequence
sed: 1: "docker-compose.yml": extra characters at the end of d command
23tux commented 2 years ago

I've run in the exact same issue as @loyoan1, did you find a solution?