Skip to content

Commit 02d1bc7

Browse files
authored
Merge pull request #428 from Paraphraser/20211014-nextcloud-documentation-master
20211014 NextCloud documentation
2 parents 87b4ae2 + a5968ee commit 02d1bc7

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

docs/Containers/NextCloud.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ The passwords need to be set before you bring up the Nextcloud service for the f
6363
```
6464
$ cd ~/IOTstack
6565
```
66-
66+
6767
2. If the stack is running, take it down:
6868

6969
```
7070
$ docker-compose down
7171
```
72-
72+
7373
3. Erase the persistent storage area for Nextcloud (double-check the command *before* you hit return):
7474

7575
```
7676
$ sudo rm -rf ./volumes/nextcloud
7777
```
78-
78+
7979
This is done to force re-initialisation. In particular, it gives you assurance that the passwords in your `docker-compose.yml` are the ones that are actually in effect.
8080

8181
4. Bring up the stack:
@@ -87,17 +87,17 @@ The passwords need to be set before you bring up the Nextcloud service for the f
8787
5. Check for errors:
8888

8989
Repeat the following command two or three times at 10-second intervals:
90-
90+
9191
```
9292
$ docker ps
9393
```
9494

9595
You are looking for evidence that the `nextcloud` and `nextcloud_db` containers are up, stable, and not restarting. If you see any evidence of restarts, try to figure out why using:
96-
96+
9797
```
9898
$ docker logs nextcloud
9999
```
100-
100+
101101
6. If you want to be sure Nextcloud gets set up correctly, it is best to perform the remaining steps from a **different** computer.
102102

103103
That means you need to decide how that **other** computer will refer to your Raspberry Pi running Nextcloud. Your choices are:
@@ -107,7 +107,7 @@ The passwords need to be set before you bring up the Nextcloud service for the f
107107
* your Raspberry Pi's host name – eg `myrpi`
108108

109109
Key points:
110-
110+
111111
* You **can't** use a multicast domain name (eg `myrpi.local`). An mDNS name will not work until Nextcloud has been initialised!
112112
* Once you have picked a connection method, **STICK TO IT**.
113113
* You are only stuck with this restriction until Nextcloud has been initialised. You **can** (and should) fix it later by completing the steps in ["Access through untrusted domain"](#untrustedDomain).
@@ -131,38 +131,39 @@ The passwords need to be set before you bring up the Nextcloud service for the f
131131
```
132132
http://myrpi:9321
133133
```
134-
134+
135135
The expected result is:
136-
136+
137137
![Create Administrator Account](./images/nextcloud-createadminaccount.png)
138138

139139
8. Create an administrator account and then click "Finish Setup".
140140

141141
9. There is a long delay. And then you get an error:
142142

143143
![Mal-formed URL](./images/nextcloud-malformedurl.png)
144-
144+
145145
If you examine the contents of your browser's URL bar, you will find:
146-
146+
147147
```
148148
http://localhost/index.php/core/apps/recommended
149149
```
150-
151-
That is **clearly** wrong and it is probably a bug in Nextcloud.
150+
151+
That is **clearly** wrong and it is probably a bug in Nextcloud.
152+
152153
10. Edit the URL to replace `localhost` with what it *should* be, which will be **one** of the following patterns, depending on which method you chose to access Nextcloud:
153154

154155
* `http://192.168.203.200:9321/index.php/core/apps/recommended`
155156
* `http://myrpi.mydomain.com:9321/index.php/core/apps/recommended`
156157
* `http://myrpi:9321/index.php/core/apps/recommended`
157-
158+
158159
Note:
159-
160+
160161
* This seems to be the only time Nextcloud misbehaves and forces `localhost` into a URL.
161-
162+
162163
11. After a delay, you will see the "Recommended apps" screen with a spinner moving down the list of apps as they are loaded:
163164

164165
![Recommended Apps](./images/nextcloud-recommendedapps.png)
165-
166+
166167
Wait for the loading to complete.
167168

168169
12. Eventually, the dashboard will appear. Then the dashboard will be obscured by the "Nextcloud Hub" floating window:

0 commit comments

Comments
 (0)