SW Plugin changed from local to composer - how to update? - shopware6

We are using Shopware Paypal Plugin. Now we changed to local installation (uploaded plugin) to an installation via composer.
But bin/console plugin:refresh shows now this:
------------------------------------ --------------------------------------------------------- ------------- ----------------- ----------------------------------------------------------- ----------- -------- -------------
Plugin Label Version Upgrade version Author Installed Active Upgradeable
------------------------------------ --------------------------------------------------------- ------------- ----------------- ----------------------------------------------------------- ----------- -------- -------------
SwagPayPal PayPal-Produkte für Shopware 6 3.5.0 5.3.0 Shopware Yes Yes Yes
------------------------------------ --------------------------------------------------------- ------------- ----------------- ----------------------------------------------------------- ----------- -------- -------------
Is there a "correct" way to fix this? Because from my point of view, the easiest is to just delete the plugin from the table and refresh again.

A console command
bin/console plugin:update -c SwagPayPal
should do the job.
Since the code is already up-to-date thx composer, it will just update the database and run the migrations. If for any reason this doesn't work, you could go the hard way and re-install the plugin like this
bin/console plugin:uninstall --keep-user-data -c SwagPayPal && bin/console plugin:install --activate -c SwagPayPal

I think it would not hurt to delete the entry and refresh, as you suggested.
Also it is worth mentioning that the is a column managed_by_composer in the table plugin which is important to set to 1 in your case. We did this manually via SQL in the past.

Related

Get-AzResourceGroup returns "No tenant found in the context"

I've just opened PowerShell and ran:
> Connect-AzAccount
> Get-AzResourceGroup
And received this error.
Get-AzResourceGroup: No tenant found in the context. Please ensure that the credentials you provided are authorized to access an Azure subscription, then run Connect-AzAccount to login.
> Get-AzSubscription
WARNING: Unable to acquire token for tenant 'Common'
Get-AzSubscription: Could not authenticate with tenant . Please ensure that your account has access to this tenant and log in with Connect-AzAccount
I've not used Azure PowerShell for a year. I copy pasted the URL given to me by the connect command into the same browser as I have my Azure subscription open in and logged in as per usual. I'm the sole admin and user on my Azure sub. Here's my version.
> $PSVersionTable.PSVersion
Major Minor Patch PreReleaseLabel BuildLabel
----- ----- ----- --------------- ----------
7 1 4
I tried to reinstall the Azure PowerShell module but got further strangeness.
> Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
Install-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9711
Line |
9711 | … talledPackages = PackageManagement\Install-Package #PSBoundParameters | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Administrator rights are required to install or update. Log on to the computer with an account that has Administrator rights, and then try again, or install by
| adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator).
Obviously, I'm running as admin and I have specified the CurrentUser scope. I will give up and try the Azure CLI.
Raised an issue on GitHub: https://github.com/Azure/azure-powershell/issues/15842
I think installing the Azure CLI resolved it.
I've literally only done these things since posting.
Installed the Google Cloud CLI and GCP SDK.
Spend 10 hours reading the GCP documentation on a bunch of stuff because I was interested in seeing how green their grass really is.
Tried and failed to install a different Az PS package as request by someone on the Github issue.
Tried and successfully installed the Microsoft.Graph PS package, again as a test requested by my Github friend.
Installed the Azure CLI via MSI.
Read the comment from #BhargaviAnnadevara and tried it and saw that it all worked.

qdbus is Segmentation faulting

I'm using KTimeTracker to monitor my time on different projects. I have a PHP script that periodically runs to give me an idea on how long I've worked in the day.
The PHP script used to connect to KtimeTracker using qdbus to save to file and then use qdbus to
export the CSV file.
For those that wonder why I'm bothering with this setup, I work from home and need to monitor my time to ensure I'm working the right number of hours.
The script worked perfectly well for quite a while but has recently started failing when using qdbus. The simplest call to qdbus is :
qdbus org.kde.ktimetracker /KTimeTracker saveAll
The result of this is
Segmentation fault (core dumped)
qdbus org.kde.ktimetracker /KTimeTracker
Segmentation fault (core dumped)
qdbus org.kde.ktimetracker
/KTimeTracker
/MainApplication
/ktimetracker
/ktimetracker/MainWindow_1
/ktimetracker/MainWindow_1/actions
/ktimetracker/MainWindow_1/actions/file_open
/ktimetracker/MainWindow_1/actions/file_save
/ktimetracker/MainWindow_1/actions/options_configure
/ktimetracker/MainWindow_1/actions/start_new_session
/ktimetracker/MainWindow_1/actions/edit_history
/ktimetracker/MainWindow_1/actions/reset_all_times
/ktimetracker/MainWindow_1/actions/start
/ktimetracker/MainWindow_1/actions/stop
/ktimetracker/MainWindow_1/actions/focusSearchBar
/ktimetracker/MainWindow_1/actions/stopAll
/ktimetracker/MainWindow_1/actions/focustracking
/ktimetracker/MainWindow_1/actions/new_task
/ktimetracker/MainWindow_1/actions/new_sub_task
/ktimetracker/MainWindow_1/actions/delete_task
/ktimetracker/MainWindow_1/actions/edit_task
/ktimetracker/MainWindow_1/actions/edit_task_time
/ktimetracker/MainWindow_1/actions/mark_as_complete
/ktimetracker/MainWindow_1/actions/mark_as_incomplete
/ktimetracker/MainWindow_1/actions/export_dialog
/ktimetracker/MainWindow_1/actions/import_planner
/ktimetracker/MainWindow_1/actions/searchbar
/ktimetracker/MainWindow_1/actions/file_quit
/ktimetracker/MainWindow_1/actions/options_configure_keybinding
/ktimetracker/MainWindow_1/actions/options_show_statusbar
/ktimetracker/MainWindow_1/actions/options_configure_toolbars
/org
/org/kde
/org/kde/ktimetracker
I'm sure that I'm missing something simple but just can't see it. I've spent a few hours already Googling but have come up with nothing.
I don't know if these are of any value
sudo zypper search --provides qdbus
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
---+------------------------+--------------------------------------------------+--------
i+ | libqt5-qdbus | Command line client for communication over D-Bus | package
| libqt5-qdbus-debuginfo | Debug information for package libqt5-qdbus | package
i+ | libqt5-qttools | Qt 5 QtTools Module | package
cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20201114"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
...
develop#bambam:~> bash --version
GNU bash, version 5.0.18(1)-release (x86_64-suse-linux-gnu)
...
Any help will be appreciated.
Cheers
replace qdbus command with qdbus-qt5

httpd is a virtual package provided by multiple packages, you must explicitly select one

I was following the chef tutorial. My workstation is Ubuntu. At the step 'Install the Apache package'.
I wrote a recipe which contains only "package 'httpd'". I was supposed to install Apache after that. However, I got an error:
Error executing action `install` on resource 'apt_package[httpd]'
================================================================================
Chef::Exceptions::Package
-------------------------
httpd is a virtual package provided by multiple packages, you must explicitly select one
Resource Declaration:
---------------------
# In /home/local/ANT/yuqiw/chef-repo/webserver.rb
2: apt_package("httpd")
Compiled Resource:
------------------
# Declared in /home/local/ANT/yuqiw/chef-repo/webserver.rb:2:in `from_file'
apt_package("httpd") do
package_name "httpd"
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :apt_package
cookbook_name "#recipe_files"
recipe_name "/home/local/ANT/yuqiw/chef-repo/webserver.rb"
end
Platform:
---------
x86_64-linux
Can anyone help me out?
The package called httpd on RHEL/CentOS/Fedora is called apache2 in Debian/Ubuntu. At the start of the tutorial you had to pick if you were using Ubuntu or CentOS, you probably picked the incorrect one. Just go back to that screen and click the other link.
service 'apache2' do
action :install
end
Try to use it further in the tutorial.

Asp.net 5 DNX and DNU not working in Windows Server 2008 R2

I have successfully installed the dnvm using commands given here https://github.com/aspnet/home.
Now I am trying dnvm upgrade but somehow it is not working for me. I get the latest version from nuget and I can see it being created to my .dnx\runtimes folder. See following:
C:\Users\Administrator>dnvm upgrade
Determining latest version
Downloading dnx-clr-win-x86.1.0.0-beta4 from https://www.nuget.org/api/v2
Installing to C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4
Adding C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin to process PATH
Adding C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin to user PATH
Updating alias 'default' to 'dnx-clr-win-x86.1.0.0-beta4'
C:\Users\Administrator>dnu
C:\Users\Administrator>
C:\Users\Administrator>dnx
C:\Users\Administrator>
C:\Users\Administrator>dnvm list
Active Version Runtime Architecture Location Alias
------ ------- ------- ------------ -------- -----
* 1.0.0-beta4 clr x86 C:\Users\Administrator\.dnx\runtimes default
dnvm upgrade works ok? but nothing happens when I type dnu, dnx,dnu restore commands. What am I missing ?I am doing it in Windows Server 2008 R2. .Net framework 4.5.2 installed.
Update
I just tried to get latest unstable runtime. When using beta6-12085 the dnu command returns an error: dnx.win32.dll could not be loaded. Last error: 87
C:\Users\Administrator>dnvm upgrade -u
Determining latest version
Downloading dnx-clr-win-x86.1.0.0-beta6-12085 from https://www.myget.org/F/aspnetvnext/api/v2
Installing to C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6-12085
Adding C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6-12085\bin to process PATH
Adding C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6-12085\bin to user PATH
Updating alias 'default' to 'dnx-clr-win-x86.1.0.0-beta6-12085'
C:\Users\Administrator>dnu
dnx.win32.dll could not be loaded. Last error: 87
I had a new install of Windows Server 2008. Installing all the updates fixed the problem!
It seems, dnx compiled on windows 8 hence corresponding "minwin" version binding.
https://blogs.mcafee.com/mcafee-labs/windows-7-kernel-api-refactoring . I got "error 87" on win7 too.

Display what file has been automatically uploaded by PyCharm / IntelliJ-based IDE

There's a nice feature in PyCharm / IntelliJ for automatic upload of changed files to remote machine. However, the message is cryptic:
Automatic upload completed in less than a minute: 1 file transferred (7.7 Kb/s)
It does not say what files were actually uploaded. Can this be configured somehow?
Tools | Deployment | Options (or the same via Settings (Preferences on Mac) | Build, Execution, Deployment | Deployment | Options) -- change "Operations logging" to "Details".