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

Error on backup #17

Closed
peptoniet opened this issue Jul 6, 2021 · 7 comments
Closed

Error on backup #17

peptoniet opened this issue Jul 6, 2021 · 7 comments

Comments

@peptoniet
Copy link

On versions later than 2.1.1-3 running the backup job gives me this error in the log:

ERROR: can't read '/opt/calcardbackup/calcardbackup'. Check given path!

Running the backup command on the docker image console gives me the same error.

Version 2.1.1-3 works correctly.
3.0.0-1 fails.

@waja
Copy link
Owner

waja commented Jul 6, 2021

On versions later than 2.1.1-3 running the backup job gives me this error in the log:

ERROR: can't read '/opt/calcardbackup/calcardbackup'. Check given path!

Running the backup command on the docker image console gives me the same error.

when running /opt/calcardbackup/calcardbackup inside of the container:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+  Tue Jul  6 19:17:39 CEST 2021 --> START calcardbackup ver. 3.0.0 (01.07.2021), AGPL-3.0
+  Checking dependencies and preparing...
-- calcardbackup: ERROR --
-- ERROR: can't read '/opt/calcardbackup/calcardbackup.conf'. Check given path!
-- I need to be able to read the full path!
-- calcardbackup: Exiting.

-- calcardbackup: ERROR --
-- Error in command: "config_file="$(get_absolute_path_ng "${config_file}")""
-- calcardbackup: Exiting.

When running /opt/calcardbackup/calcardbackup /nextcloud/ --output /backup/ -i which is the default:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+  Tue Jul  6 19:24:59 CEST 2021 --> START calcardbackup ver. 3.0.0 (01.07.2021), AGPL-3.0
+  Checking dependencies and preparing...
+  no usersfile given:
+     - will fetch all available items from database
+     - will not backup shared items additionally
[...]

So I can't reproduce the reported issue.

@peptoniet
Copy link
Author

Hello,
Thank you for checking.
I tried the same exact command and I get this error:

bash-5.1# /opt/calcardbackup/calcardbackup /nextcloud --output /backup/ -i
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+  Tue Jul  6 22:31:02 CEST 2021 --> START calcardbackup ver. 3.0.0 (01.07.2021), AGPL-3.0
-- calcardbackup: ERROR --
-- ERROR: can't read '/opt/calcardbackup/calcardbackup'. Check given path!
-- I need to be able to read the full path!
-- calcardbackup: Exiting.

-- calcardbackup: ERROR --
-- Error in command: "script_dir="$(get_absolute_path_ng "${BASH_SOURCE[0]}")""
-- calcardbackup: Exiting.

The relevant part of the docker-compose.yaml is:

  nextcloud-nc-backup:
    image: waja/calcardbackup
    links:
      - db:nextcloud-db
      - nextcloud:nextcloud
    environment:
      - CRON_TIME=0 14,20 * * *
      - CALCARD_OPTS=-i -x -r 10 -d -%Y-%m-%d-%H-%M
      - NC_DIR=/nextcloud
      - NC_HOST=nextcloud
      - NC_PORT=80
      - DB_HOST=db
    depends_on:
      - db
      - nextcloud
    restart: unless-stopped
    volumes:
      - /data/OwnCloudData/calcardbackup:/backup
      - ./nextcloud/config:/nextcloud/config
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
    networks:
      static-network:
        ipv4_address: 172.91.91.95

@waja
Copy link
Owner

waja commented Sep 17, 2021

Hi @peptoniet,

is this still relevant?

@peptoniet
Copy link
Author

Good morning,
Thank you for the follow up.
I just tested with latest version. Unfortunately, I get the same result:

bash-5.1# /opt/calcardbackup/calcardbackup /nextcloud --output /backup/ -i

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+  Fri Sep 17 09:44:25 CEST 2021 --> START calcardbackup ver. 3.0.0 (01.07.2021), AGPL-3.0
-- calcardbackup: ERROR --
-- ERROR: can't read '/opt/calcardbackup/calcardbackup'. Check given path!
-- I need to be able to read the full path!
-- calcardbackup: Exiting.

-- calcardbackup: ERROR --
-- Error in command: "script_dir="$(get_absolute_path_ng "${BASH_SOURCE[0]}")""
-- calcardbackup: Exiting.

docker-compose file is unchanged from my last post.

@peptoniet
Copy link
Author

If I go back to version 2.1.1 of the docker image, all works well.

bash-5.1# /opt/calcardbackup/calcardbackup /nextcloud --output /backup/ -i

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+  Fri Sep 17 09:49:39 CEST 2021 --> START calcardbackup ver. 2.1.1 (27.05.2021), AGPL-3.0
+  Checking dependencies and preparing...
+  no usersfile given:
+     - will fetch all available items from database
+     - will not backup shared items additionally
+  Using URL: https://cloud.edificam.com
+  Nextcloud 21.0.3 detected.
+  Database of chosen Nextcloud installation is MySQL/MariaDB.
+  Looking for calendars in your Nextcloud:
+  Saving calendar XXXXXXXXXX (from db)......success!
REMOVED FOR PRIVACY
+  Looking for calendarsubscriptions in your Nextcloud:
+  No calendarsubscriptions found.
+  Looking for addressbooks in your Nextcloud:
+  Saving addressbook XXXXXXXXX (from db)......empty addressbook!
REMOVED FOR PRIVACY
+  removing temporary files...
+  Compressing backup as *.tar.gz file. Be patient - this may take a while.
+  Backup successfully compressed!
+  Find your compressed backup here: /backup/calcardbackup-2021-09-17.tar.gz
+  Fri Sep 17 09:51:19 CEST 2021 --> END calcardbackup

@holly79
Copy link

holly79 commented Jan 2, 2022

maybe it is related to alpinelinux/docker-alpine#156 and https://about.gitlab.com/blog/2021/08/26/its-time-to-upgrade-docker-engine/

I had the same problems and I updated Docker from version 18.09.1 to 20.10.12 and the problem was solved on my Raspi

@peptoniet
Copy link
Author

maybe it is related to alpinelinux/docker-alpine#156 and https://about.gitlab.com/blog/2021/08/26/its-time-to-upgrade-docker-engine/

I had the same problems and I updated Docker from version 18.09.1 to 20.10.12 and the problem was solved on my Raspi

Yes, it could have been the docker version. I cannot know for sure.
I locked container image version to 2.1.1-3 for two years and it has worked flawlessly.
Today, I revisited this issue, and make sure I was on the latest version for docker. Unlocked container version for calcardbackup to "latest" and tested. All worked perfect!
Thanks to @waja for such an excellent work!

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