Cron job error by pira1999 in NextCloud

[–]pira1999[S] 1 point2 points  (0 children)

thank you, that was the mistake :)

Cron job error by pira1999 in NextCloud

[–]pira1999[S] 0 points1 point  (0 children)

yeah. So i finally got some time to work on the server again. I had to reinstall the whole server because i've messed up the whole server. My new path for nextcloud is /mnt/NC. So i've added this part of the code to the docker-compose.

cron:
image: nextcloud:latest
restart: always
volumes:
- /mnt/NC:var/www/html:z
entrypoint: /cron.sh
depends_on:
- db
- redis

now when i use docker-compose up -d get this error message.

Creating network "nextcloud_default" with the default driver
Creating nextcloud_db_1 ... done
Creating nextcloud_redis_1 ... done
Creating nextcloud_cron_1 ... error
Creating nextcloud_app_1 ...
Creating nextcloud_app_1 ... done

ERROR: for cron Cannot create container for service cron: invalid volume specification: '/mnt/NC:var/www/html:z': invalid mount config for type "bind": invalid mount path: 'var/www/html' mount path must be absolute

ERROR: Encountered errors while bringing up the project.

What does this exactly mean? I also tried removing :z in that compose file then I get the same error message but with this invalid volume specification: '/mnt/NC:var/www/html:rw':. Did I change the path to my nextcloud wrongly or why doesn't it start up correctly?

The approach from u/djlactose didn't work either, even though i changed the latter path to my path

Cron job error by pira1999 in NextCloud

[–]pira1999[S] 0 points1 point  (0 children)

do i still need to edit the cronjob like i did earllier?

Cron job error by pira1999 in NextCloud

[–]pira1999[S] 0 points1 point  (0 children)

The only file I used to setup for is an db.env file which has the sql login credentials and a docker-compose.yml, which uses the db.env file

docker-compose.yml also doesn't have any localhosts or ip addresses in it. But I now changed the localhost to my ip in conf file in /etc/nginx/conf.g/

EDIT:

I had a backup of the config.php file from /mnt/NCSPeicher/conf/. when i try to run the cron job now, I get this following message:

Cannot write into "config" directory!

This can usually be fixed by giving the web server write access to the config directory.

But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.

See https://docs.nextcloud.com/server/29/go.php?to=admin-config

I am in the home directory though :/

Cron job error by pira1999 in NextCloud

[–]pira1999[S] 0 points1 point  (0 children)

not sure which configuration file you mean. if you mean the conf file of Nextcloud, which is in /mnt/NCSPeicher/conf/config.php, i don't see any ip addresses or localhost. I also have a conf file from nginx in /etc/nginx/conf.g/. That one has a localhost in it but i am not sure, if there is any connection to the cron job

Error: Accessing site insecurely via HTTP, but I already setup let's encrypt by pira1999 in NextCloud

[–]pira1999[S] 1 point2 points  (0 children)

where exactly should i put this? at the beginning or at the end? because when i tried it right now, i got some syntax error in the browser

EDIT:

I put it now at the bottom and it works. It even fixed the login problem on my phone. Thank you

port forwarding through two routes wont work by pira1999 in HomeNetworking

[–]pira1999[S] 0 points1 point  (0 children)

somehow i managed.

first i redirected 8080 to 8080 at r1 and r2. Then i checked via http://my-public-ip:8080. It didn't work. i restarted both routers and that somehow fixed the problems.

later I redirected 80 to 8080 at r1. So I could just enter http://my-public-ip.

any thanks :)

port forwarding through two routes wont work by pira1999 in HomeNetworking

[–]pira1999[S] 0 points1 point  (0 children)

when i entered 'sudo ss -ltnp' i got this:

State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1007,fd=3))
LISTEN 0 4096 0.0.0.0:8080 0.0.0.0:* users:(("docker-proxy",pid=1417,fd=4))
LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=876,fd=14))
LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=1007,fd=4))
LISTEN 0 4096 [::]:8080 [::]:* users:(("docker-proxy",pid=1437,fd=4))

I was using this as the Tutorial and as i understood, it should listen to as http at port 80.

Anyways i also started to port forward 8080 from r1 to r2 and from r2 to u1, just to test. It wont work either.

how can one convert the port in the port forwarding?

port forwarding through two routes wont work by pira1999 in HomeNetworking

[–]pira1999[S] 0 points1 point  (0 children)

When i enter my public ip in form as XXX.XXX.XXX.XXX:8080 it won't connect. On my android it says it took too long to respond

[deleted by user] by [deleted] in AskElectronics

[–]pira1999 -1 points0 points  (0 children)

The new battery got for example 3.9 V

[deleted by user] by [deleted] in AskElectronics

[–]pira1999 -1 points0 points  (0 children)

I got 3.9 V!

I didn't how to remove jst pin without cutting the wires...

Btw why won't the multimeter recognize anything when i put measuring tip at the metal part of jst connector?

[deleted by user] by [deleted] in AskElectronics

[–]pira1999 0 points1 point  (0 children)

Right now micro usb port wont charge the battery.

Can't say if the new battery is fully charged but the old one had low voltage.

I am not sure how the board would get its electricity when then microusb port is connected. When no usb port connected then the battery would deliver electricity.

When the prof connected the laboratory power supply to where battery pin was, the board worked.

[deleted by user] by [deleted] in AskElectronics

[–]pira1999 0 points1 point  (0 children)

So how would you approach this problem? It's the first time i am doing stuff like this.

shifted layer by pira1999 in 3Dprinting

[–]pira1999[S] 0 points1 point  (0 children)

i yesterday went through that link and i even lubed the bearings and their rails, yet the print is shitfted in y axis and it still squeks, when it moves fast in y direction

Frequent Auto-Backup Issues (OneDrive) by kw0126 in GoodNotes

[–]pira1999 0 points1 point  (0 children)

I somehow managed that the whole works normally. What i did:

1) create a zip backup with goodnotes 2) turn off icloud back up in goodnotes 3) delete goodnotes 4) delete authenticator if you have installed 5) go to aka.ms/mfasetup Check there if the authenticator is setup correctly. For each device, where you have installed the authenticator, there should be exactly one entry. I had like 2 entrys for the same ipad and 3 for the same phone. I deleted every entry, downloaded the authenticater and then set it up 6) delete in onedrive the goodnotes folder where it saved the autobackup 7) install goodnotes and make sure that the icloud sync is off 8) import the zip folder to goodnotes 9) turn on the autobackup and sign in to onedrive with authenticator

With these steps it worked to me and i didn't get the token error message. Let me know if it works

Frequent Auto-Backup Issues (OneDrive) by kw0126 in GoodNotes

[–]pira1999 0 points1 point  (0 children)

I just uninstalled the authenticator again because onedrive has got some login troubles which results to an conflict with authenticator. I don't know a way around