* [gentoo-user] Changed behavior of webapp-config
@ 2015-10-26 20:38 Dan Johansson
2015-10-26 20:56 ` Mick
0 siblings, 1 reply; 11+ messages in thread
From: Dan Johansson @ 2015-10-26 20:38 UTC (permalink / raw
To: gentoo-user
The other day I noticed that the behavior of webapp-config has changed.
I have USE=vhost enabled and I have a directory structure where each
"app" is installed in htdocs in its own v-host like this:
/var/www/app-1.int.dmj.nu/htdocs/
/var/www/app-2.int.dmj.nu/htdocs/
Before I could simply do the following to upgrade an app
# webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
And this would update the app-1 in /var/www/app-1.int.dmj.nu to version
1.2.3
(note, there is NO -d for directory in there)
Doing this now results in this:
* Install dir flag not supplied, defaulting to "app-1".
* Fatal error: Cannot clean!
* Fatal error: No package installed in
/var/www/app-1.int.dmj.nu/htdocs/app-1
* Fatal error(s) - aborting
I have played around a bit and found that if I add "-d ." it does update
the application correct but with some messages (sorry I do not have them
at hand now) about webapp-config not able to "clean" the old version.
And worse still, I then get two "active" entries in the webapp-config DB
(/var/db/webapps/app-1/<version>/installs):
One for the old version:
123456789 0 0 /var/www/app-1.int.dmj.nu/htdocs
And one for the new
0987654321 0 0 /var/www/app-1.int.dmj.nu/htdocs/.
Any suggestions on how to make the "new" webapp-config behave like the
"old" one (short of downgrading of cause)?
KR
--
Dan Johansson
***************************************************
This message is printed on 100% recycled electrons!
***************************************************
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-26 20:38 [gentoo-user] Changed behavior of webapp-config Dan Johansson
@ 2015-10-26 20:56 ` Mick
2015-10-27 14:17 ` J. Roeleveld
2015-10-27 20:10 ` Dan Johansson
0 siblings, 2 replies; 11+ messages in thread
From: Mick @ 2015-10-26 20:56 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1164 bytes --]
On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote:
> The other day I noticed that the behavior of webapp-config has changed.
> I have USE=vhost enabled and I have a directory structure where each
> "app" is installed in htdocs in its own v-host like this:
>
> /var/www/app-1.int.dmj.nu/htdocs/
> /var/www/app-2.int.dmj.nu/htdocs/
>
> Before I could simply do the following to upgrade an app
> # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
>
> And this would update the app-1 in /var/www/app-1.int.dmj.nu to version
> 1.2.3
> (note, there is NO -d for directory in there)
>
> Doing this now results in this:
> * Install dir flag not supplied, defaulting to "app-1".
> * Fatal error: Cannot clean!
> * Fatal error: No package installed in
> /var/www/app-1.int.dmj.nu/htdocs/app-1
> * Fatal error(s) - aborting
Did you try to run it like so:
webapp-config -h app-1.int.dmj.nu -U . 1.2.3
or even better:
webapp-config -U -h app-1.int.dmj.nu 1.2.3
The above error you're getting above points to your call for 'app-1' cause
webapp to assume the directory is '/var/www/app-1.int.dmj.nu/htdocs/app-1'
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-26 20:56 ` Mick
@ 2015-10-27 14:17 ` J. Roeleveld
2015-10-27 20:10 ` Dan Johansson
1 sibling, 0 replies; 11+ messages in thread
From: J. Roeleveld @ 2015-10-27 14:17 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
On Monday, October 26, 2015 08:56:08 PM Mick wrote:
> On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote:
> > The other day I noticed that the behavior of webapp-config has changed.
> > I have USE=vhost enabled and I have a directory structure where each
> > "app" is installed in htdocs in its own v-host like this:
> >
> > /var/www/app-1.int.dmj.nu/htdocs/
> > /var/www/app-2.int.dmj.nu/htdocs/
> >
> > Before I could simply do the following to upgrade an app
> > # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
> >
> > And this would update the app-1 in /var/www/app-1.int.dmj.nu to version
> > 1.2.3
> > (note, there is NO -d for directory in there)
> >
> > Doing this now results in this:
> > * Install dir flag not supplied, defaulting to "app-1".
> > * Fatal error: Cannot clean!
> > * Fatal error: No package installed in
> > /var/www/app-1.int.dmj.nu/htdocs/app-1
> > * Fatal error(s) - aborting
>
> Did you try to run it like so:
>
> webapp-config -h app-1.int.dmj.nu -U . 1.2.3
>
> or even better:
>
> webapp-config -U -h app-1.int.dmj.nu 1.2.3
>
> The above error you're getting above points to your call for 'app-1' cause
> webapp to assume the directory is '/var/www/app-1.int.dmj.nu/htdocs/app-1'
Had the same issue myself.
In the past, I had to specify the application name (app-1) when doing an
upgrade.
I take it that isn't necessary anymore?
Will test that.
--
Joost
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-26 20:56 ` Mick
2015-10-27 14:17 ` J. Roeleveld
@ 2015-10-27 20:10 ` Dan Johansson
2015-10-27 20:56 ` Neil Bothwick
2015-10-28 16:45 ` covici
1 sibling, 2 replies; 11+ messages in thread
From: Dan Johansson @ 2015-10-27 20:10 UTC (permalink / raw
To: gentoo-user
On 26.10.2015 21:56, Mick wrote:
> On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote:
>> The other day I noticed that the behavior of webapp-config has changed.
>> I have USE=vhost enabled and I have a directory structure where each
>> "app" is installed in htdocs in its own v-host like this:
>>
>> /var/www/app-1.int.dmj.nu/htdocs/
>> /var/www/app-2.int.dmj.nu/htdocs/
>>
>> Before I could simply do the following to upgrade an app
>> # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
>>
>> And this would update the app-1 in /var/www/app-1.int.dmj.nu to version
>> 1.2.3
>> (note, there is NO -d for directory in there)
>>
>> Doing this now results in this:
>> * Install dir flag not supplied, defaulting to "app-1".
>> * Fatal error: Cannot clean!
>> * Fatal error: No package installed in
>> /var/www/app-1.int.dmj.nu/htdocs/app-1
>> * Fatal error(s) - aborting
>
> Did you try to run it like so:
>
> webapp-config -h app-1.int.dmj.nu -U . 1.2.3
>
> or even better:
>
> webapp-config -U -h app-1.int.dmj.nu 1.2.3
>
> The above error you're getting above points to your call for 'app-1' cause
> webapp to assume the directory is '/var/www/app-1.int.dmj.nu/htdocs/app-1'
None of the above works. :-(
# webapp-config -U -h app-1.int.dmj.nu 1.2.3
usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
# webapp-config -h app-1.int.dmj.nu -U 1.2.3
usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
# webapp-config -h app-1.int.dmj.nu -U . 1.2.3
* Install dir flag not supplied, defaulting to ".".
* Fatal error: Please emerge app-1/.-1.2.3 first.
* Fatal error(s) - aborting
--
Dan Johansson
***************************************************
This message is printed on 100% recycled electrons!
***************************************************
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-27 20:10 ` Dan Johansson
@ 2015-10-27 20:56 ` Neil Bothwick
2015-10-28 16:45 ` covici
1 sibling, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2015-10-27 20:56 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 845 bytes --]
On Tue, 27 Oct 2015 21:10:20 +0100, Dan Johansson wrote:
> # webapp-config -U -h app-1.int.dmj.nu 1.2.3
> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
>
> # webapp-config -h app-1.int.dmj.nu -U 1.2.3
> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
>
Like it says, -U require two arguments, the application name and the
version. You use to be able to have these at the end of the command line
webapp-config -U -h host -d dir name version
but now they have to follow the -U. This was explained in an
e(log|warn|info) message.
webapp-config -h host -d dir -U name version
--
Neil Bothwick
Anything worth fighting for is worth fighting dirty for.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-27 20:10 ` Dan Johansson
2015-10-27 20:56 ` Neil Bothwick
@ 2015-10-28 16:45 ` covici
2015-10-28 19:48 ` J. Roeleveld
1 sibling, 1 reply; 11+ messages in thread
From: covici @ 2015-10-28 16:45 UTC (permalink / raw
To: gentoo-user
Dan Johansson <dan@dmj.nu> wrote:
> On 26.10.2015 21:56, Mick wrote:
> > On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote:
> >> The other day I noticed that the behavior of webapp-config has changed.
> >> I have USE=vhost enabled and I have a directory structure where each
> >> "app" is installed in htdocs in its own v-host like this:
> >>
> >> /var/www/app-1.int.dmj.nu/htdocs/
> >> /var/www/app-2.int.dmj.nu/htdocs/
> >>
> >> Before I could simply do the following to upgrade an app
> >> # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
> >>
> >> And this would update the app-1 in /var/www/app-1.int.dmj.nu to version
> >> 1.2.3
> >> (note, there is NO -d for directory in there)
> >>
> >> Doing this now results in this:
> >> * Install dir flag not supplied, defaulting to "app-1".
> >> * Fatal error: Cannot clean!
> >> * Fatal error: No package installed in
> >> /var/www/app-1.int.dmj.nu/htdocs/app-1
> >> * Fatal error(s) - aborting
> >
> > Did you try to run it like so:
> >
> > webapp-config -h app-1.int.dmj.nu -U . 1.2.3
> >
> > or even better:
> >
> > webapp-config -U -h app-1.int.dmj.nu 1.2.3
> >
> > The above error you're getting above points to your call for 'app-1' cause
> > webapp to assume the directory is '/var/www/app-1.int.dmj.nu/htdocs/app-1'
>
> None of the above works. :-(
>
> # webapp-config -U -h app-1.int.dmj.nu 1.2.3
> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
>
> # webapp-config -h app-1.int.dmj.nu -U 1.2.3
> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
>
> # webapp-config -h app-1.int.dmj.nu -U . 1.2.3
> * Install dir flag not supplied, defaulting to ".".
> * Fatal error: Please emerge app-1/.-1.2.3 first.
> * Fatal error(s) - aborting
>
The following command worked for me and I don't think webapp-config has
been updated since
webapp-config --secure -d owncloud -h covici.com -U owncloud 8.1.1
Where you can have -I instead of -U and --secure is optional of course.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-28 16:45 ` covici
@ 2015-10-28 19:48 ` J. Roeleveld
2015-10-28 20:10 ` Dan Johansson
2015-10-28 23:01 ` Neil Bothwick
0 siblings, 2 replies; 11+ messages in thread
From: J. Roeleveld @ 2015-10-28 19:48 UTC (permalink / raw
To: gentoo-user
On 28 October 2015 17:45:04 CET, covici@ccs.covici.com wrote:
>Dan Johansson <dan@dmj.nu> wrote:
>
>> On 26.10.2015 21:56, Mick wrote:
>> > On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote:
>> >> The other day I noticed that the behavior of webapp-config has
>changed.
>> >> I have USE=vhost enabled and I have a directory structure where
>each
>> >> "app" is installed in htdocs in its own v-host like this:
>> >>
>> >> /var/www/app-1.int.dmj.nu/htdocs/
>> >> /var/www/app-2.int.dmj.nu/htdocs/
>> >>
>> >> Before I could simply do the following to upgrade an app
>> >> # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
>> >>
>> >> And this would update the app-1 in /var/www/app-1.int.dmj.nu to
>version
>> >> 1.2.3
>> >> (note, there is NO -d for directory in there)
>> >>
>> >> Doing this now results in this:
>> >> * Install dir flag not supplied, defaulting to "app-1".
>> >> * Fatal error: Cannot clean!
>> >> * Fatal error: No package installed in
>> >> /var/www/app-1.int.dmj.nu/htdocs/app-1
>> >> * Fatal error(s) - aborting
>> >
>> > Did you try to run it like so:
>> >
>> > webapp-config -h app-1.int.dmj.nu -U . 1.2.3
>> >
>> > or even better:
>> >
>> > webapp-config -U -h app-1.int.dmj.nu 1.2.3
>> >
>> > The above error you're getting above points to your call for
>'app-1' cause
>> > webapp to assume the directory is
>'/var/www/app-1.int.dmj.nu/htdocs/app-1'
>>
>> None of the above works. :-(
>>
>> # webapp-config -U -h app-1.int.dmj.nu 1.2.3
>> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
>> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
>>
>> # webapp-config -h app-1.int.dmj.nu -U 1.2.3
>> usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
>> webapp-config: error: argument -U/--upgrade: expected 2 argument(s)
>>
>> # webapp-config -h app-1.int.dmj.nu -U . 1.2.3
>> * Install dir flag not supplied, defaulting to ".".
>> * Fatal error: Please emerge app-1/.-1.2.3 first.
>> * Fatal error(s) - aborting
>>
>The following command worked for me and I don't think webapp-config has
>been updated since
>webapp-config --secure -d owncloud -h covici.com -U owncloud 8.1.1
>
>Where you can have -I instead of -U and --secure is optional of course.
The problem is that webapp-config now has the '-d' option as mandatory.
This means installing into the webroot is not easy. (-d "" worked for me, but is annoying)
--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-28 19:48 ` J. Roeleveld
@ 2015-10-28 20:10 ` Dan Johansson
2015-10-28 23:01 ` Neil Bothwick
1 sibling, 0 replies; 11+ messages in thread
From: Dan Johansson @ 2015-10-28 20:10 UTC (permalink / raw
To: gentoo-user
On 28.10.2015 20:48, J. Roeleveld wrote:
>
> The problem is that webapp-config now has the '-d' option as mandatory.
> This means installing into the webroot is not easy. (-d "" worked for me, but is annoying)
Yes, using -d "" did it, and yes it is annoying but it works.
Thanks & KR
--
Dan Johansson
***************************************************
This message is printed on 100% recycled electrons!
***************************************************
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-28 19:48 ` J. Roeleveld
2015-10-28 20:10 ` Dan Johansson
@ 2015-10-28 23:01 ` Neil Bothwick
2015-10-29 7:21 ` J. Roeleveld
1 sibling, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2015-10-28 23:01 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 364 bytes --]
On Wed, 28 Oct 2015 20:48:31 +0100, J. Roeleveld wrote:
> The problem is that webapp-config now has the '-d' option as mandatory.
> This means installing into the webroot is not easy. (-d "" worked for
> me, but is annoying)
What's wrong with -d / ?
--
Neil Bothwick
You know it's cold when you spot a lawyer with his hands in his own
pockets.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-28 23:01 ` Neil Bothwick
@ 2015-10-29 7:21 ` J. Roeleveld
2015-10-29 8:45 ` Neil Bothwick
0 siblings, 1 reply; 11+ messages in thread
From: J. Roeleveld @ 2015-10-29 7:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
On Wednesday, October 28, 2015 11:01:38 PM Neil Bothwick wrote:
> On Wed, 28 Oct 2015 20:48:31 +0100, J. Roeleveld wrote:
> > The problem is that webapp-config now has the '-d' option as mandatory.
> > This means installing into the webroot is not easy. (-d "" worked for
> > me, but is annoying)
>
> What's wrong with -d / ?
Not tried that option.
I still don't see why having to specify "-d" when installing in the web-root
is suddenly necessary.
--
Joost
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Changed behavior of webapp-config
2015-10-29 7:21 ` J. Roeleveld
@ 2015-10-29 8:45 ` Neil Bothwick
0 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2015-10-29 8:45 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
On Thu, 29 Oct 2015 08:21:41 +0100, J. Roeleveld wrote:
> > What's wrong with -d / ?
>
> Not tried that option.
> I still don't see why having to specify "-d" when installing in the
> web-root is suddenly necessary.
It didn't affect me because I hadn't realised it was optional before and
always used it :)
--
Neil Bothwick
Is there another word for synonym?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-10-29 8:46 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 20:38 [gentoo-user] Changed behavior of webapp-config Dan Johansson
2015-10-26 20:56 ` Mick
2015-10-27 14:17 ` J. Roeleveld
2015-10-27 20:10 ` Dan Johansson
2015-10-27 20:56 ` Neil Bothwick
2015-10-28 16:45 ` covici
2015-10-28 19:48 ` J. Roeleveld
2015-10-28 20:10 ` Dan Johansson
2015-10-28 23:01 ` Neil Bothwick
2015-10-29 7:21 ` J. Roeleveld
2015-10-29 8:45 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox