Vm: "Error updating .htaccess file"

Created on 6 Sep 2018  路  33Comments  路  Source: nextcloud/vm

Steps to reproduce

  1. Set up an Ubuntu Server 18.04
  2. Install Nextcloud VM using the provided script (nextcloud_install_production.sh)
  3. Choose to install "Calendar", "Contacts", "CanIUpdate", "IssueTemplate" and "Passman" as additional apps

Expected behaviour

Finish the installation without errors

Actual behaviour

It shows those errors:
image
image

Server configuration

Server version: Ubuntu Server 18.04

How did you install the VM? From the script

bug

All 33 comments

Disabling incomaptible apps is not a bug, it's a feature.

I will check the other error.

Nope, everything works here: https://0bin.net/paste/pnWR-AUwXs5NdMit#zFLjwi2nwZS0JK3orexadrKpYiIe-ce69y9ok9rsvCB

I can confirm the following error where script will break:

teamviewer_2018-09-06_21-35-56

@luisBSBDATA Ok, so is that when doing an upgrade from 13.0.6 on Ubuntu 16.04?

Please give me the exact steps to reproduce.

How does your overwrite.cli.url look like?

Nope, clean install from clean reference platform "Ubuntu Server 18.04 LTS 64-bit " according to recommended specs:

Thick provisioned (better performance and easier to maintain)
DHCP available
40 GB HDD for OS
4 vCPU
4 GB RAM

I use this reference VM for some weeks and had never a problem related to the platform. You can get Teamviewer access if u need it :-)

@nxtester That's very strange. I installed 13.0.6 yesterday using the scripts, and today I updated that VM.

So, how can we do the exact same thing and get different results?

Is this during updating or installing?

During second part after first reboot.

During second part after first reboot.

Please be more specific. Do you mean in the startup script?

I the last 3 days I tried every day a new installation w/o success. Errors have been communicated and approved. Sorry, I am not a linux guy. OK, I started "sudo bash nextcloud_install_production.sh" and it went fine until first reboot. Then I logged in and second part started, first explanation about all steps (big information box) and then after a while script stopped by error.

Can do it again, made a snapshot after successful first stage / reboot.

First initial user (standard in reference VM) was "linux", second user made by script was "ncadmin". Script continued then with "ncadmin". Maybe important to know?

This is what I call "stage 2 after first reboot":

putty_2018-09-06_21-55-20

Then:
putty_2018-09-06_22-00-43

Then two questions (keyboard, timezone) and script will break.

I found the error and will fix it.

Thanks for reporting!

@nxtester Can you please path your setup script with the fix in the PR and see it it works?

Disabling incompatible apps is not a bug, it's a feature.

Oh, okay. So I assume that I'll be able to update and activate them from Nextcloud in the future, right?

@nxtester Can you please path your setup script with the fix in the PR and see it it works?

It's already fixed then? I will rollback my VM to a clean state and try again, then I will get back to you. Thanks again!

It's already fixed then? I will rollback my VM to a clean state and try again, then I will get back to you. Thanks again!

Please do!

Checked it and changed script. Error seemes to be fixed, but anyway not possible to finish regularly. Here is the next error where script will break:

putty_2018-09-07_10-05-44

Thanks for your appreciated work!

Tried again and this is what I got:

image

@luisBSBDATA OK, can you please give me the exact steps to reproduce? The fix worked for me.

@luisBSBDATA OK, can you please give me the exact steps to reproduce? The fix worked for me.

  • I rolled back my VM to a clean state.

  • I re-download the "nextcloud_install_production.sh" script and executed it

  • I ran through all the install process until the first reboot, then it failed just after asking me if I wanted to change the timezone. The other error was further than that new one.

@luisBSBDATA But you have to edit the script before you run it. The code isn't in master yet. That's how you test stuff. :)

So please try again and add the fix that I made from the PR

Okay, I thought it was already merged with master. Let me try again then :)

Now that's what I got if I choose to install Passman:

image

Same here.

Great! So the .htaccess issue is gone?

For the other error: https://github.com/nextcloud/server/issues/11070

So the .htaccess issue is gone?

For me I can approve that .htaccess issue was gone after modifying script.

BTW one question: Is there any disadvantage to uncheck all NC apps (lika Passman) and install it later by NC portal?

Great! So the .htaccess issue is gone?

Yeah, thanks one more time @enoch85 for your time and patience

BTW one question: Is there any disadvantage to uncheck all NC apps (lika Passman) and install it later by NC portal?

Im interested on it too

BTW one question: Is there any disadvantage to uncheck all NC apps (lika Passman) and install it later by NC portal?

What the script does is installing the app from App Store via CLI (the Nextcloud built in occ command), so no, there are no difference.

Will release Nextcloud 14 soon!

And guys, THANKS for testing!

Thanks to you, Enoch85. We are only helping a little.

Will release Nextcloud 14 soon!

Soon or sooner? ;-))

Nice, I will install them manually post-installation then. Thank YOU @enoch85, I will keep on posting if I find out something else 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EmilyLove26 picture EmilyLove26  路  6Comments

RKlarmann picture RKlarmann  路  4Comments

smartens picture smartens  路  6Comments

mxschmitt picture mxschmitt  路  9Comments

thejohnha picture thejohnha  路  8Comments